mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-11 21:49:01 +08:00
41d944f701
* [getdns/flint] Update to the latest version * [getdns/flint] Update to the latest version * [flint] Add unsupported on uwp * Update version files * [flint] Handle dllimport macro in header files * [arb] Update to 2.21.0 * [arb] Update to 2.2.1 and use upstream CMakeLists.txt * [arb] App patch * Update versions/a-/arb.json
49 lines
1.5 KiB
CMake
49 lines
1.5 KiB
CMake
vcpkg_fail_port_install(ON_TARGET "uwp")
|
|
|
|
set(GETDNS_VERSION 1.7.0)
|
|
set(GETDNS_HASH d09b8bdd0b4a3df2d25b9689166226da83a5a7eb2c7436487dc637539ac6077624a4d66cf684c4e6c4911561872c6bd191af3afd90d275b1662e4c6c47773ef6)
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" GETDNS_ENABLE_STATIC)
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" GETDNS_ENABLE_SHARED)
|
|
|
|
vcpkg_download_distfile(ARCHIVE
|
|
URLS "https://getdnsapi.net/dist/getdns-${GETDNS_VERSION}.tar.gz"
|
|
FILENAME "getdns-${GETDNS_VERSION}.tar.gz"
|
|
SHA512 ${GETDNS_HASH}
|
|
)
|
|
|
|
vcpkg_extract_source_archive_ex(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
ARCHIVE ${ARCHIVE}
|
|
REF ${GETDNS_VERSION}
|
|
)
|
|
|
|
vcpkg_check_features(
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
libevent BUILD_LIBEVENT2
|
|
libuv BUILD_LIBUV
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
DISABLE_PARALLEL_CONFIGURE
|
|
OPTIONS
|
|
-DBUILD_GETDNS_QUERY=OFF
|
|
-DBUILD_GETDNS_SERVER_MON=OFF
|
|
-DENABLE_STATIC=${GETDNS_ENABLE_STATIC}
|
|
-DENABLE_SHARED=${GETDNS_ENABLE_SHARED}
|
|
${FEATURE_OPTIONS}
|
|
-DBUILD_TESTING=OFF
|
|
-DENABLE_STUB_ONLY=ON #if setting ON, it will require libunbound to build on Unix platform.
|
|
)
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
|
|
vcpkg_fixup_pkgconfig() |