mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-13 20:21:38 +08:00
dc965d08df
* update version * update version
31 lines
920 B
CMake
31 lines
920 B
CMake
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO google/libphonenumber
|
|
REF "v${VERSION}"
|
|
SHA512 e685bb9501104527ceec9af7ac424a5f642f6960454fe5a6f10f5e6555bb6d52b68a0465c5475162e8a1ac20a0b1bfb68bd4587ffae64dc017a5c8a5efc5b09f
|
|
HEAD_REF master
|
|
PATCHES
|
|
fix-re2-identifiers.patch
|
|
fix-icui18n-lib-name.patch
|
|
fix-find-protobuf.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_copy_pdbs()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|