mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-26 05:49:00 +08:00
a67ca6b1ea
* [libphonenumber] Bump to 8.13.17 & fix linux and macOS build * update version database * fix windows icui18n lib name * update version database * fix patches * update version database * fix ci.baseline.txt
35 lines
1.0 KiB
CMake
35 lines
1.0 KiB
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO google/libphonenumber
|
|
REF "v${VERSION}"
|
|
SHA512 b1ec99aa952558d2ba26d95d7c1bdfd8169f992b3190cc4236e1ce17e69db50ef2839b2840a9553541e09c7509b77c463a1036f84251844ec71bd5888ef78555
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-re2-identifiers.patch
|
|
fix-icui18n-lib-name.patch
|
|
fix-find-protobuf.patch
|
|
re2-2023-07-01-compat.patch
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}/cpp"
|
|
OPTIONS
|
|
-DREGENERATE_METADATA=OFF
|
|
-DUSE_RE2=ON
|
|
-DBUILD_GEOCODER=OFF
|
|
-DUSE_PROTOBUF_LITE=ON
|
|
-DBUILD_SHARED_LIBS=OFF
|
|
-DBUILD_TESTING=OFF)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|