diff options
| author | Carlos O'Ryan <coryan@users.noreply.github.com> | 2019-08-07 19:43:35 -0400 |
|---|---|---|
| committer | Victor Romero <romerosanchezv@gmail.com> | 2019-08-07 16:43:35 -0700 |
| commit | 65cb5cd00cba333e3a41433058e42a114f61fb78 (patch) | |
| tree | 57b4ec111646e6225ac181d66a0f80419a2f4af5 /ports/googleapis | |
| parent | c89dcc15a9b93b022990c972b7e0beb8d20b6629 (diff) | |
| download | vcpkg-65cb5cd00cba333e3a41433058e42a114f61fb78.tar.gz vcpkg-65cb5cd00cba333e3a41433058e42a114f61fb78.zip | |
Update google-cloud-cpp to 0.12.0. (#7557)
* Add googleapis proto libraries port.
Compile protos from github.com/googleapis/googleapis into C++ libraries.
* Updated google-cloud-cpp to 0.12.0
* [google-cloud-cpp] Fix flaky build
Diffstat (limited to 'ports/googleapis')
| -rw-r--r-- | ports/googleapis/CONTROL | 5 | ||||
| -rw-r--r-- | ports/googleapis/portfile.cmake | 32 | ||||
| -rw-r--r-- | ports/googleapis/usage | 6 |
3 files changed, 43 insertions, 0 deletions
diff --git a/ports/googleapis/CONTROL b/ports/googleapis/CONTROL new file mode 100644 index 000000000..b77e35eed --- /dev/null +++ b/ports/googleapis/CONTROL @@ -0,0 +1,5 @@ +Source: googleapis +Version: 0.1.1 +Build-Depends: grpc, protobuf +Description: C++ Proto Libraries for Google APIs. +Homepage: https://github.com/googleapis/cpp-cmakefiles diff --git a/ports/googleapis/portfile.cmake b/ports/googleapis/portfile.cmake new file mode 100644 index 000000000..684b4cbdb --- /dev/null +++ b/ports/googleapis/portfile.cmake @@ -0,0 +1,32 @@ +include(vcpkg_common_functions) + +if (VCPKG_TARGET_IS_UWP) + message(FATAL_ERROR "Package `googleapis` doesn't support UWP") +endif() + +vcpkg_check_linkage(ONLY_STATIC_LIBRARY) + +vcpkg_from_github( + OUT_SOURCE_PATH SOURCE_PATH + REPO googleapis/cpp-cmakefiles + REF v0.1.1 + SHA512 e23af2d0d36d4e13da761473b78b958326b9c7fd4aaf0c4b6742ae498b65aafe73976f7c858365b041aa667f280c10eca6df7e87644c260fc022ec4eee7a7bc6 + 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/googleapis RENAME copyright) + +vcpkg_copy_pdbs() + +file(COPY ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}) diff --git a/ports/googleapis/usage b/ports/googleapis/usage new file mode 100644 index 000000000..00ca628e5 --- /dev/null +++ b/ports/googleapis/usage @@ -0,0 +1,6 @@ +The package googleapis is compatible with built-in CMake targets: + + find_package(googleapis CONFIG REQUIRED) + + # Then link against the proto libraries that you want to use, for example: + target_link_libraries(main PRIVATE googleapis-c++::bigtable_protos gRPC::grpc gRPC::grpc++) |
