2018-08-25 04:43:41 +08:00
|
|
|
include(vcpkg_common_functions)
|
|
|
|
|
2018-10-12 13:03:05 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2018-08-25 04:43:41 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO facebook/wangle
|
2019-01-10 04:31:28 +08:00
|
|
|
REF v2019.01.07.00
|
|
|
|
SHA512 1b4771d92b45fd5e9622985321cfd608510ea13d2f4cb03a4842c52d7253a1b460f825746a315ef0df3b2e37e56abddb5b493b80d383ba327fdbf7294bae193e
|
2018-08-25 04:43:41 +08:00
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
|
|
|
build.patch
|
|
|
|
gflags.patch
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}/wangle"
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTS=OFF
|
2018-10-12 13:03:05 +08:00
|
|
|
-DINCLUDE_INSTALL_DIR:STRING=include
|
2018-08-25 04:43:41 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/wangle")
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE
|
2018-10-12 13:03:05 +08:00
|
|
|
${CURRENT_PACKAGES_DIR}/debug/include
|
2018-08-25 04:43:41 +08:00
|
|
|
${CURRENT_PACKAGES_DIR}/include/wangle/util/test
|
|
|
|
${CURRENT_PACKAGES_DIR}/include/wangle/ssl/test/certs
|
|
|
|
${CURRENT_PACKAGES_DIR}/include/wangle/service/test
|
|
|
|
${CURRENT_PACKAGES_DIR}/include/wangle/deprecated/rx/test
|
|
|
|
)
|
|
|
|
|
|
|
|
# Handle copyright
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/wangle RENAME copyright)
|