-
-
Notifications
You must be signed in to change notification settings - Fork 413
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New package: google-cloud-cpp #5991
Open
Altina-oz
wants to merge
9
commits into
xmake-io:dev
Choose a base branch
from
Altina-oz:patch-2
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
3727031
New package: google-cloud-cpp
Altina-oz 64bc9eb
rep
Altina-oz b876c88
Kill android
Altina-oz bfafca5
kill mingw
Altina-oz c81b076
kill Iphoneos
Altina-oz 206bbe0
Update xmake.lua
Altina-oz c3b660b
Update xmake.lua
Altina-oz b55c843
Update xmake.lua
Altina-oz 8e02a80
Ci system error
Altina-oz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
package("google-cloud-cpp") | ||
set_homepage("https://github.com/googleapis/google-cloud-cpp") | ||
set_description("C++ Client Libraries for Google Cloud Services") | ||
set_license("Apache-2.0") | ||
|
||
add_urls("https://github.com/googleapis/google-cloud-cpp/archive/refs/tags/v$(version).tar.gz", | ||
"https://github.com/googleapis/google-cloud-cpp.git") | ||
add_versions("2.32.0","db69dd73ef4af8b2e816d80ded04950036d0e0dccc274f8c3d3ed1d7f5692a1b") | ||
|
||
add_deps("cmake") | ||
add_deps("abseil", "crc32c", "libcurl", "openssl3", "zlib") | ||
add_deps("nlohmann_json", {configs = {cmake = true}}) | ||
|
||
on_check(function (package) | ||
if package:is_plat("android") then | ||
raise("package(google-cloud-cpp) unsupported on android due to package(grpc) is unsupported on android yet.") | ||
end | ||
if package:is_plat("mingw") then | ||
raise("package(google-cloud-cpp) unsupported on android due to package(grpc) is unsupported on mingw yet.") | ||
end | ||
end) | ||
|
||
on_install(function (package) | ||
local configs = { | ||
"-DBUILD_TESTING=OFF", | ||
"-DGOOGLE_CLOUD_CPP_WITH_MOCKS=OFF", | ||
"-DGOOGLE_CLOUD_CPP_ENABLE_MACOS_OPENSSL_CHECK=OFF", | ||
"-DGOOGLE_CLOUD_CPP_ENABLE_WERROR=OFF", | ||
} | ||
import("package.tools.cmake").install(package, configs) | ||
end) | ||
|
||
on_load(function (package) | ||
if package:config("shared") then | ||
package:add("deps","protobuf-cpp",{shared= true}) | ||
package:add("deps","grpc",{shared= true}) | ||
else | ||
package:add("deps","protobuf-cpp") | ||
package:add("deps","grpc") | ||
end | ||
|
||
end) | ||
|
||
on_test(function (package) | ||
assert(package:check_cxxsnippets({test = [[ | ||
#include "google/cloud/version.h" | ||
int test() { | ||
google::cloud::version_string(); | ||
return 0; | ||
} | ||
]]}, {configs = {languages = "c++17"}})) | ||
end) | ||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
checking for Minimal target version of Xcode for macosx (arm64) ... 14.5
note: the following packages are unsupported on mingw/i386:
-> grpc v1.62.1 [from:google-cloud-cpp, license:Apache-2.0]