vcpkg/ports/libphonenumber/portfile.cmake

35 lines
1.0 KiB
CMake
Raw Normal View History

[libphonenumber] Adding libphonenumber port, pushing changes to get help on error (#28093) * Adding libphonenumber port, pushing changes to get help on error * Added patches to cmake file to work with vcpkg, still facing error & pushing to share code * Added patch to not build shared libs in order to bypass ninja error. Debug build failing so building release only. Pushing for help. * Fixing irregular format vcpkg.json for libphonenumber * Add fix to re2 dependency, and only building release * Fixed debugs builds by turning geocoder off, fixed icu link problems in static builds, and added support for re2 * Skipping linux and osx builds as well as debug builds for x64 static triplets due to time. * Fixing port to incorporate reviews on the PR * Removing changes to triplets * Resolving validate version files by overwriting * Adding changes to address reviews on patches & triplets, add protobuf lite use, and cleaning up code * Resolving validate version files by overwriting * Addressing reviews on dirent and shared lib * Making test lib builds optional and OFF by default * Resolving validate version files by overwriting * Update vcpkg.json to include license Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * Reviewing github bot's messages * Reviewing github bot's messages * Making building tests false as temp solution. * Reviewing github bot's messages Co-authored-by: Trish Lam <trishlam@microsoft.com> Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>
2022-12-13 08:22:49 +08:00
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO google/libphonenumber
REF "v${VERSION}"
SHA512 b1ec99aa952558d2ba26d95d7c1bdfd8169f992b3190cc4236e1ce17e69db50ef2839b2840a9553541e09c7509b77c463a1036f84251844ec71bd5888ef78555
[libphonenumber] Adding libphonenumber port, pushing changes to get help on error (#28093) * Adding libphonenumber port, pushing changes to get help on error * Added patches to cmake file to work with vcpkg, still facing error & pushing to share code * Added patch to not build shared libs in order to bypass ninja error. Debug build failing so building release only. Pushing for help. * Fixing irregular format vcpkg.json for libphonenumber * Add fix to re2 dependency, and only building release * Fixed debugs builds by turning geocoder off, fixed icu link problems in static builds, and added support for re2 * Skipping linux and osx builds as well as debug builds for x64 static triplets due to time. * Fixing port to incorporate reviews on the PR * Removing changes to triplets * Resolving validate version files by overwriting * Adding changes to address reviews on patches & triplets, add protobuf lite use, and cleaning up code * Resolving validate version files by overwriting * Addressing reviews on dirent and shared lib * Making test lib builds optional and OFF by default * Resolving validate version files by overwriting * Update vcpkg.json to include license Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * Reviewing github bot's messages * Reviewing github bot's messages * Making building tests false as temp solution. * Reviewing github bot's messages Co-authored-by: Trish Lam <trishlam@microsoft.com> Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>
2022-12-13 08:22:49 +08:00
HEAD_REF master
PATCHES
fix-re2-identifiers.patch
fix-icui18n-lib-name.patch
fix-find-protobuf.patch
2023-07-27 01:49:15 +08:00
re2-2023-07-01-compat.patch
[libphonenumber] Adding libphonenumber port, pushing changes to get help on error (#28093) * Adding libphonenumber port, pushing changes to get help on error * Added patches to cmake file to work with vcpkg, still facing error & pushing to share code * Added patch to not build shared libs in order to bypass ninja error. Debug build failing so building release only. Pushing for help. * Fixing irregular format vcpkg.json for libphonenumber * Add fix to re2 dependency, and only building release * Fixed debugs builds by turning geocoder off, fixed icu link problems in static builds, and added support for re2 * Skipping linux and osx builds as well as debug builds for x64 static triplets due to time. * Fixing port to incorporate reviews on the PR * Removing changes to triplets * Resolving validate version files by overwriting * Adding changes to address reviews on patches & triplets, add protobuf lite use, and cleaning up code * Resolving validate version files by overwriting * Addressing reviews on dirent and shared lib * Making test lib builds optional and OFF by default * Resolving validate version files by overwriting * Update vcpkg.json to include license Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * Reviewing github bot's messages * Reviewing github bot's messages * Making building tests false as temp solution. * Reviewing github bot's messages Co-authored-by: Trish Lam <trishlam@microsoft.com> Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>
2022-12-13 08:22:49 +08:00
)
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)
[libphonenumber] Adding libphonenumber port, pushing changes to get help on error (#28093) * Adding libphonenumber port, pushing changes to get help on error * Added patches to cmake file to work with vcpkg, still facing error & pushing to share code * Added patch to not build shared libs in order to bypass ninja error. Debug build failing so building release only. Pushing for help. * Fixing irregular format vcpkg.json for libphonenumber * Add fix to re2 dependency, and only building release * Fixed debugs builds by turning geocoder off, fixed icu link problems in static builds, and added support for re2 * Skipping linux and osx builds as well as debug builds for x64 static triplets due to time. * Fixing port to incorporate reviews on the PR * Removing changes to triplets * Resolving validate version files by overwriting * Adding changes to address reviews on patches & triplets, add protobuf lite use, and cleaning up code * Resolving validate version files by overwriting * Addressing reviews on dirent and shared lib * Making test lib builds optional and OFF by default * Resolving validate version files by overwriting * Update vcpkg.json to include license Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * Reviewing github bot's messages * Reviewing github bot's messages * Making building tests false as temp solution. * Reviewing github bot's messages Co-authored-by: Trish Lam <trishlam@microsoft.com> Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>
2022-12-13 08:22:49 +08:00
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
[libphonenumber] Adding libphonenumber port, pushing changes to get help on error (#28093) * Adding libphonenumber port, pushing changes to get help on error * Added patches to cmake file to work with vcpkg, still facing error & pushing to share code * Added patch to not build shared libs in order to bypass ninja error. Debug build failing so building release only. Pushing for help. * Fixing irregular format vcpkg.json for libphonenumber * Add fix to re2 dependency, and only building release * Fixed debugs builds by turning geocoder off, fixed icu link problems in static builds, and added support for re2 * Skipping linux and osx builds as well as debug builds for x64 static triplets due to time. * Fixing port to incorporate reviews on the PR * Removing changes to triplets * Resolving validate version files by overwriting * Adding changes to address reviews on patches & triplets, add protobuf lite use, and cleaning up code * Resolving validate version files by overwriting * Addressing reviews on dirent and shared lib * Making test lib builds optional and OFF by default * Resolving validate version files by overwriting * Update vcpkg.json to include license Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * Reviewing github bot's messages * Reviewing github bot's messages * Making building tests false as temp solution. * Reviewing github bot's messages Co-authored-by: Trish Lam <trishlam@microsoft.com> Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com>
2022-12-13 08:22:49 +08:00
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}")