mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-17 14:37:50 +08:00
44 lines
1.4 KiB
CMake
44 lines
1.4 KiB
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO facebookincubator/fizz
|
|
REF "v${VERSION}"
|
|
SHA512 8377a28763c5b049135714d45e352850aa6db807cd4c367003fb0a917714a4dddeb857e8b3bfc07aac15b6bb385495e5f8d1d6eb04d04a57d1ff71801f0cb097
|
|
HEAD_REF main
|
|
PATCHES
|
|
fix-build.patch
|
|
)
|
|
|
|
# Prefer installed config files
|
|
file(REMOVE
|
|
"${SOURCE_PATH}/fizz/cmake/FindGMock.cmake"
|
|
"${SOURCE_PATH}/fizz/cmake/FindGflags.cmake"
|
|
"${SOURCE_PATH}/fizz/cmake/FindGlog.cmake"
|
|
"${SOURCE_PATH}/fizz/cmake/FindLibevent.cmake"
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}/fizz"
|
|
OPTIONS
|
|
-DBUILD_TESTS=OFF
|
|
-DBUILD_EXAMPLES=OFF
|
|
-DINCLUDE_INSTALL_DIR:STRING=include
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/fizz)
|
|
vcpkg_copy_pdbs()
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/fizz/fizz-config.cmake" "lib/cmake/fizz" "share/fizz")
|
|
|
|
file(REMOVE_RECURSE
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
"${CURRENT_PACKAGES_DIR}/include/fizz/crypto/aead/test/facebook"
|
|
"${CURRENT_PACKAGES_DIR}/include/fizz/record/test/facebook"
|
|
"${CURRENT_PACKAGES_DIR}/include/fizz/server/test/facebook"
|
|
"${CURRENT_PACKAGES_DIR}/include/fizz/tool/test"
|
|
"${CURRENT_PACKAGES_DIR}/include/fizz/util/test")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|