mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 20:29:00 +08:00
0fa8459cf3
* [inih] Use meson build, bump version
* [inih] Versioning
* Specify c++11 to meson to fix osx?
* [inih] Version
* Restore line endings
* Version
* Address review comments
- Removed CMake package versioning
- Wasn't that useful as upstream don't use semver
- Use straight configure_file to install CMake package config
- Make cpp feature default
- Prefer PkgConfig usage
* Version
* Actually delete the CMakeList
* Version
* separate C and C++ library usage
* Version
* Remove unofficial CMake config
* Revert "Remove unofficial CMake config"
This reverts commit 94ff6a9032
.
* Take Javier's suggestion
45 lines
1.2 KiB
CMake
45 lines
1.2 KiB
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO benhoyt/inih
|
|
REF r57
|
|
SHA512 9f758df876df54ed7e228fd82044f184eefbe47e806cd1e6d62e1b0ea28e2c08e67fa743042d73b4baef0b882480e6afe2e72878b175822eb2bdbb6d89c0e411
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_check_features(
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
cpp with_INIReader
|
|
)
|
|
|
|
if(NOT DEFINED VCPKG_BUILD_TYPE OR VCPKG_BUILD_TYPE STREQUAL "debug")
|
|
set(INIH_CONFIG_DEBUG ON)
|
|
else()
|
|
set(INIH_CONFIG_DEBUG OFF)
|
|
endif()
|
|
|
|
# Install unofficial CMake package
|
|
configure_file("${CMAKE_CURRENT_LIST_DIR}/unofficial-inihConfig.cmake.in" "${CURRENT_PACKAGES_DIR}/share/unofficial-inih/unofficial-inihConfig.cmake" @ONLY)
|
|
|
|
# meson build
|
|
string(REPLACE "OFF" "false" FEATURE_OPTIONS "${FEATURE_OPTIONS}")
|
|
string(REPLACE "ON" "true" FEATURE_OPTIONS "${FEATURE_OPTIONS}")
|
|
|
|
vcpkg_configure_meson(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
"${FEATURE_OPTIONS}"
|
|
"-Dcpp_std=c++11"
|
|
)
|
|
|
|
vcpkg_install_meson()
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE.txt")
|
|
|
|
configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)
|