Skip to content

Commit

Permalink
[google-cloud-cpp] Consolidate all google-cloud* packages (#11698)
Browse files Browse the repository at this point in the history
* [google-cloud-cpp] Consolidate all google-cloud* packages

Starting with the v1.14.0 release all google-cloud* packages and the
googleapis package are kept in a single repository and released
simultaneously.

* Update CI baseline.

google-cloud-cpp used to inherit failures from googleapis, which
indicates these are (probably) problems in the generated protobuf/grpc
code.
  • Loading branch information
coryan authored Jun 3, 2020
1 parent 0243e00 commit 0dbc334
Show file tree
Hide file tree
Showing 10 changed files with 21 additions and 128 deletions.
11 changes: 3 additions & 8 deletions ports/google-cloud-cpp-common/CONTROL
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
Source: google-cloud-cpp-common
Version: 0.25.0
Build-Depends: grpc, googleapis
Description: Base C++ Libraries for Google Cloud Platform APIs
Homepage: https://github.com/googleapis/google-cloud-cpp-common

Feature: test
Description: Build test
Build-Depends: gtest
Version: alias
Build-Depends: google-cloud-cpp
Description: Deprecated, use google-cloud-cpp instead
31 changes: 1 addition & 30 deletions ports/google-cloud-cpp-common/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,30 +1 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO googleapis/google-cloud-cpp-common
REF v0.25.0
SHA512 074294e8b824d7f2b9d6d4051f4fbb28ca83166aad98ff000348abb238488b1c957726d901dae041bf50aa23ab368da5cf1d23ad42454f9ad07153976c0a29fe
HEAD_REF master)

vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
test BUILD_TESTING
)

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
DISABLE_PARALLEL_CONFIGURE
OPTIONS
${FEATURE_OPTIONS}
-DGOOGLE_CLOUD_CPP_ENABLE_MACOS_OPENSSL_CHECK=OFF)

vcpkg_install_cmake(ADD_BIN_TO_PATH)

file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake TARGET_PATH share)

file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)

vcpkg_copy_pdbs()
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
7 changes: 3 additions & 4 deletions ports/google-cloud-cpp-spanner/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
Source: google-cloud-cpp-spanner
Version: 1.1.0
Build-Depends: grpc, googleapis, google-cloud-cpp-common
Description: C++ Client Library for Google Cloud Spanner.
Homepage: https://github.com/googleapis/google-cloud-cpp-spanner
Version: alias
Build-Depends: google-cloud-cpp
Description: Deprecated, use google-cloud-cpp instead
30 changes: 1 addition & 29 deletions ports/google-cloud-cpp-spanner/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,29 +1 @@
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO googleapis/google-cloud-cpp-spanner
REF v1.1.0
SHA512 00141418a01ff55cf2228e3f59a49e49bc35e28da958a7817964976196bb6019e5f04e2d9ceacc758d649c8cc91d35df14aec23f9e8fa4044cfaa67115dc6e69
HEAD_REF master
)

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
DISABLE_PARALLEL_CONFIGURE
OPTIONS
-DGOOGLE_CLOUD_CPP_ENABLE_MACOS_OPENSSL_CHECK=OFF
-DBUILD_TESTING=OFF
)

vcpkg_install_cmake(ADD_BIN_TO_PATH)

file(REMOVE_RECURSE
${CURRENT_PACKAGES_DIR}/debug/include
${CURRENT_PACKAGES_DIR}/debug/share)
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake TARGET_PATH share)

file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)

vcpkg_copy_pdbs()
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
13 changes: 0 additions & 13 deletions ports/google-cloud-cpp/0001-fix-x86-build.patch

This file was deleted.

5 changes: 3 additions & 2 deletions ports/google-cloud-cpp/CONTROL
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Source: google-cloud-cpp
Version: 0.21.0
Build-Depends: grpc, curl[ssl], crc32c, googleapis, google-cloud-cpp-common
Version: 1.14.0
Build-Depends: abseil, grpc, curl[ssl], crc32c
Description: C++ Client Libraries for Google Cloud Platform APIs.
Homepage: https://github.com/googleapis/google-cloud-cpp
Supports: !uwp
8 changes: 3 additions & 5 deletions ports/google-cloud-cpp/portfile.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,18 @@ vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO googleapis/google-cloud-cpp
REF v0.21.0
SHA512 744c7a14c31966df1f1383ad5804428807babf53079ed96514367f145eb38b4b90be3e0f9c6f16deb9269c754fd5a44e898e5afb77f6f749ba968605d79b8397
REF v1.14.0
SHA512 73ab8fd6167616ff0671c15b59afe0a0c8816badd873293d3645b46f74d5f4dfc7f89de84019c5933c132c3d061456067f686f72c1c5e775d9e8a3dae3cdc63f
HEAD_REF master
PATCHES
0001-fix-x86-build.patch
)

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
DISABLE_PARALLEL_CONFIGURE
OPTIONS
-DGOOGLE_CLOUD_CPP_DEPENDENCY_PROVIDER=package
-DGOOGLE_CLOUD_CPP_ENABLE_MACOS_OPENSSL_CHECK=OFF
-DGOOGLE_CLOUD_CPP_ENABLE_WERROR=OFF
-DBUILD_TESTING=OFF
)

Expand Down
8 changes: 3 additions & 5 deletions ports/googleapis/CONTROL
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
Source: googleapis
Version: 0.9.0
Build-Depends: grpc, protobuf
Description: C++ Proto Libraries for Google APIs.
Homepage: https://github.com/googleapis/cpp-cmakefiles
Supports: !uwp
Version: alias
Build-Depends: google-cloud-cpp
Description: Deprecated, use google-cloud-cpp instead.
29 changes: 1 addition & 28 deletions ports/googleapis/portfile.cmake
Original file line number Diff line number Diff line change
@@ -1,28 +1 @@
vcpkg_fail_port_install(ON_TARGET "uwp")

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO googleapis/cpp-cmakefiles
REF v0.9.0
SHA512 74791d0ae2fcac0a1acdc255e65f7ca46de8b5129f5b9b066efd0d83c5b3bf61e41b9c3ec6924cfbfb77e5496fa9e2db113f8d17dcc0740058bb19f4d1115f18
HEAD_REF master
)

vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
)

vcpkg_install_cmake(ADD_BIN_TO_PATH)

file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake TARGET_PATH share)

file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)

vcpkg_copy_pdbs()

file(COPY ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
7 changes: 3 additions & 4 deletions scripts/ci.baseline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -552,10 +552,9 @@ gmmlib:x64-uwp=fail
gmmlib:x64-windows=fail
gmmlib:x64-windows-static=fail
gmmlib:x86-windows=fail
googleapis:arm64-windows=fail
googleapis:arm-uwp=fail
googleapis:x64-uwp=fail
google-cloud-cpp-spanner:x86-windows=fail
google-cloud-cpp:arm64-windows=fail
google-cloud-cpp:arm-uwp=fail
google-cloud-cpp:x64-uwp=fail
gppanel:x64-osx=fail
gperf:x64-uwp=fail
gperf:arm-uwp=fail
Expand Down

0 comments on commit 0dbc334

Please sign in to comment.