mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-11 16:19:02 +08:00
bdf073a835
* [folly] update to <v2022.10.24.00> * update version * update fizz to the latest version * update version * update mvfst to the latest version * update version * Apply review suggesstion * update version Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
41 lines
1.3 KiB
CMake
41 lines
1.3 KiB
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO facebookincubator/fizz
|
|
REF 47948342be43ddb951e12a53770278be52d479e7 #v2022.10.31.00
|
|
SHA512 b91fbbe008bbd6ee5e865a585cd51f1a1b69360eba32231f0b585b836e5591ee4cc9ffe1d747a82267f21736056fc97932b35212016e614928c13de7c5a64f55
|
|
HEAD_REF master
|
|
PATCHES
|
|
0001-fix-libsodium.patch
|
|
0002-fix-libevent.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")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/include/fizz/tool/test" "${CURRENT_PACKAGES_DIR}/include/fizz/util/test")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|