Skip to content
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
wants to merge 14 commits into
base: dev
Choose a base branch
from
Open

Conversation

Altina-oz
Copy link
Contributor

Google Cloud Platform C++ Client Libraries

@@ -15,6 +15,9 @@ package("google-cloud-cpp")
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
Copy link
Contributor Author

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]

@Altina-oz
Copy link
Contributor Author

checking for SDK version of NDK ... 30
testing to check packages ...
testing to install packages ...
note: the following packages are unsupported on android/armeabi-v7a:
  -> grpc v1.62.1 [from:google-cloud-cpp, license:Apache-2.0]

Wonder why google cloud client cpp is not supported on Android

kill cross|arm and BSD
@Altina-oz
Copy link
Contributor Author

Altina-oz commented Dec 16, 2024

@programdir/core/main.lua:329: @programdir/modules/async/runjobs.lua:325: @programdir/core/sandbox/modules/os.lua:202: cannot change directory /tmp/.xmake1001/241216/xmake-repo/test, not found this directory No such file or directory
@Altina-oz
Copy link
Contributor Author

grpc/grpc#37210
In the Windows 11 SDK 10.0.26100.0, the NAN macro is no longer a compile-time constant, causing issues with certain code constructs like constexpr. This can lead to compilation failures in code relying on NAN being a constant expression.

@Altina-oz Altina-oz closed this Dec 25, 2024
@Altina-oz Altina-oz reopened this Dec 25, 2024
@star-hengxing
Copy link
Contributor

We need to unbundle deps.

[100/1118] C:\Windows\system32\cmd.exe /C "cd /D C:\Users\runneradmin\AppData\Local\.xmake\cache\packages\2412\g\google-cloud-cpp\2.32.0\source\build_8d23c6b5\external\googleapis\src && "C:\Program Files\CMake\bin\cmake.exe" -DCMAKE_MESSAGE_LOG_LEVEL=VERBOSE -P C:/Users/runneradmin/AppData/Local/.xmake/cache/packages/2412/g/google-cloud-cpp/2.32.0/source/build_8d23c6b5/external/googleapis/src/googleapis_download-stamp/download-googleapis_download.cmake && "C:\Program Files\CMake\bin\cmake.exe" -DCMAKE_MESSAGE_LOG_LEVEL=VERBOSE -P C:/Users/runneradmin/AppData/Local/.xmake/cache/packages/2412/g/google-cloud-cpp/2.32.0/source/build_8d23c6b5/external/googleapis/src/googleapis_download-stamp/verify-googleapis_download.cmake && "C:\Program Files\CMake\bin\cmake.exe" -DCMAKE_MESSAGE_LOG_LEVEL=VERBOSE -P C:/Users/runneradmin/AppData/Local/.xmake/cache/packages/2412/g/google-cloud-cpp/2.32.0/source/build_8d23c6b5/external/googleapis/src/googleapis_download-stamp/extract-googleapis_download.cmake && "C:\Program Files\CMake\bin\cmake.exe" -E touch C:/Users/runneradmin/AppData/Local/.xmake/cache/packages/2412/g/google-cloud-cpp/2.32.0/source/build_8d23c6b5/external/googleapis/src/googleapis_download-stamp/googleapis_download-download"
-- Downloading...
   dst='C:/Users/runneradmin/AppData/Local/.xmake/cache/packages/2412/g/google-cloud-cpp/2.32.0/source/build_8d23c6b5/external/googleapis/src/d675ec222c431e3346ba8aaf0027392fe8b3d90c.tar.gz'
   timeout='none'
   inactivity timeout='none'
-- Using src='https://github.com/googleapis/googleapis/archive/d675ec222c431e3346ba8aaf0027392fe8b3d90c.tar.gz'
-- [download 0% complete]
-- [download 1% complete]
-- [download 2% complete]
-- [download 3% complete]
-- [download 4% complete]
-- [download 5% complete]
-- [download 6% complete]
-- [download 7% complete]
-- [download 8% complete]
-- [download 9% complete]
-- [download 10% complete]
-- [download 11% complete]
-- [download 12% complete]
-- [download 13% complete]
-- [download 14% complete]
-- [download 15% complete]
-- [download 16% complete]
-- [download 17% complete]
-- [download 18% complete]
-- [download 19% complete]
-- [download 20% complete]
-- [download 21% complete]
-- [download 22% complete]
-- [download 23% complete]
-- [download 24% complete]
-- [download 25% complete]
-- [download 26% complete]
-- [download 27% complete]
-- [download 28% complete]
-- [download 29% complete]
-- [download 30% complete]
-- [download 31% complete]
-- [download 32% complete]
-- [download 33% complete]
-- [download 34% complete]
-- [download 35% complete]
-- [download 36% complete]
-- [download 37% complete]
-- [download 38% complete]
-- [download 39% complete]
-- [download 40% complete]
-- [download 41% complete]
-- [download 42% complete]
-- [download 43% complete]
-- [download 44% complete]
-- [download 45% complete]
-- [download 46% complete]
-- [download 47% complete]
-- [download 48% complete]
-- [download 49% complete]
-- [download 50% complete]
-- [download 51% complete]
-- [download 52% complete]
-- [download 53% complete]
-- [download 54% complete]
-- [download 55% complete]
-- [download 56% complete]
-- [download 57% complete]
-- [download 58% complete]
-- [download 59% complete]
-- [download 60% complete]
-- [download 61% complete]
-- [download 62% complete]
-- [download 63% complete]
-- [download 64% complete]
-- [download 65% complete]
-- [download 66% complete]
-- [download 67% complete]
-- [download 68% complete]
-- [download 69% complete]
-- [download 70% complete]
-- [download 71% complete]
-- [download 72% complete]
-- [download 73% complete]
-- [download 74% complete]
-- [download 75% complete]
-- [download 76% complete]
-- [download 77% complete]
-- [download 78% complete]
-- [download 79% complete]
-- [download 80% complete]
-- [download 81% complete]
-- [download 82% complete]
-- [download 83% complete]
-- [download 84% complete]
-- [download 85% complete]
-- [download 86% complete]
-- [download 87% complete]
-- [download 88% complete]
-- [download 89% complete]
-- [download 90% complete]
-- [download 91% complete]
-- [download 92% complete]
-- [download 93% complete]
-- [download 94% complete]
-- [download 95% complete]
-- [download 96% complete]
-- [download 97% complete]
-- [download 98% complete]
-- [download 99% complete]
-- [download 100% complete]
-- verifying file...
       file='C:/Users/runneradmin/AppData/Local/.xmake/cache/packages/2412/g/google-cloud-cpp/2.32.0/source/build_8d23c6b5/external/googleapis/src/d675ec222c431e3346ba8aaf0027392fe8b3d90c.tar.gz'
-- Downloading... done
-- extracting...
     src='C:/Users/runneradmin/AppData/Local/.xmake/cache/packages/2412/g/google-cloud-cpp/2.32.0/source/build_8d23c6b5/external/googleapis/src/d675ec222c431e3346ba8aaf0027392fe8b3d90c.tar.gz'
     dst='C:/Users/runneradmin/AppData/Local/.xmake/cache/packages/2412/g/google-cloud-cpp/2.32.0/source/build_8d23c6b5/external/googleapis/src/googleapis_download'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done

@Altina-oz
Copy link
Contributor Author

We need to unbundle deps.

[100/1118] C:\Windows\system32\cmd.exe /C "cd /D C:\Users\runneradmin\AppData\Local\.xmake\cache\packages\2412\g\google-cloud-cpp\2.32.0\source\build_8d23c6b5\external\googleapis\src && "C:\Program Files\CMake\bin\cmake.exe" -DCMAKE_MESSAGE_LOG_LEVEL=VERBOSE -P C:/Users/runneradmin/AppData/Local/.xmake/cache/packages/2412/g/google-cloud-cpp/2.32.0/source/build_8d23c6b5/external/googleapis/src/googleapis_download-stamp/download-googleapis_download.cmake && "C:\Program Files\CMake\bin\cmake.exe" -DCMAKE_MESSAGE_LOG_LEVEL=VERBOSE -P C:/Users/runneradmin/AppData/Local/.xmake/cache/packages/2412/g/google-cloud-cpp/2.32.0/source/build_8d23c6b5/external/googleapis/src/googleapis_download-stamp/verify-googleapis_download.cmake && "C:\Program Files\CMake\bin\cmake.exe" -DCMAKE_MESSAGE_LOG_LEVEL=VERBOSE -P C:/Users/runneradmin/AppData/Local/.xmake/cache/packages/2412/g/google-cloud-cpp/2.32.0/source/build_8d23c6b5/external/googleapis/src/googleapis_download-stamp/extract-googleapis_download.cmake && "C:\Program Files\CMake\bin\cmake.exe" -E touch C:/Users/runneradmin/AppData/Local/.xmake/cache/packages/2412/g/google-cloud-cpp/2.32.0/source/build_8d23c6b5/external/googleapis/src/googleapis_download-stamp/googleapis_download-download"
-- Downloading...
   dst='C:/Users/runneradmin/AppData/Local/.xmake/cache/packages/2412/g/google-cloud-cpp/2.32.0/source/build_8d23c6b5/external/googleapis/src/d675ec222c431e3346ba8aaf0027392fe8b3d90c.tar.gz'
   timeout='none'
   inactivity timeout='none'
-- Using src='https://github.com/googleapis/googleapis/archive/d675ec222c431e3346ba8aaf0027392fe8b3d90c.tar.gz'
-- [download 0% complete]
-- [download 1% complete]
-- [download 2% complete]
-- [download 3% complete]
-- [download 4% complete]
-- [download 5% complete]
-- [download 6% complete]
-- [download 7% complete]
-- [download 8% complete]
-- [download 9% complete]
-- [download 10% complete]
-- [download 11% complete]
-- [download 12% complete]
-- [download 13% complete]
-- [download 14% complete]
-- [download 15% complete]
-- [download 16% complete]
-- [download 17% complete]
-- [download 18% complete]
-- [download 19% complete]
-- [download 20% complete]
-- [download 21% complete]
-- [download 22% complete]
-- [download 23% complete]
-- [download 24% complete]
-- [download 25% complete]
-- [download 26% complete]
-- [download 27% complete]
-- [download 28% complete]
-- [download 29% complete]
-- [download 30% complete]
-- [download 31% complete]
-- [download 32% complete]
-- [download 33% complete]
-- [download 34% complete]
-- [download 35% complete]
-- [download 36% complete]
-- [download 37% complete]
-- [download 38% complete]
-- [download 39% complete]
-- [download 40% complete]
-- [download 41% complete]
-- [download 42% complete]
-- [download 43% complete]
-- [download 44% complete]
-- [download 45% complete]
-- [download 46% complete]
-- [download 47% complete]
-- [download 48% complete]
-- [download 49% complete]
-- [download 50% complete]
-- [download 51% complete]
-- [download 52% complete]
-- [download 53% complete]
-- [download 54% complete]
-- [download 55% complete]
-- [download 56% complete]
-- [download 57% complete]
-- [download 58% complete]
-- [download 59% complete]
-- [download 60% complete]
-- [download 61% complete]
-- [download 62% complete]
-- [download 63% complete]
-- [download 64% complete]
-- [download 65% complete]
-- [download 66% complete]
-- [download 67% complete]
-- [download 68% complete]
-- [download 69% complete]
-- [download 70% complete]
-- [download 71% complete]
-- [download 72% complete]
-- [download 73% complete]
-- [download 74% complete]
-- [download 75% complete]
-- [download 76% complete]
-- [download 77% complete]
-- [download 78% complete]
-- [download 79% complete]
-- [download 80% complete]
-- [download 81% complete]
-- [download 82% complete]
-- [download 83% complete]
-- [download 84% complete]
-- [download 85% complete]
-- [download 86% complete]
-- [download 87% complete]
-- [download 88% complete]
-- [download 89% complete]
-- [download 90% complete]
-- [download 91% complete]
-- [download 92% complete]
-- [download 93% complete]
-- [download 94% complete]
-- [download 95% complete]
-- [download 96% complete]
-- [download 97% complete]
-- [download 98% complete]
-- [download 99% complete]
-- [download 100% complete]
-- verifying file...
       file='C:/Users/runneradmin/AppData/Local/.xmake/cache/packages/2412/g/google-cloud-cpp/2.32.0/source/build_8d23c6b5/external/googleapis/src/d675ec222c431e3346ba8aaf0027392fe8b3d90c.tar.gz'
-- Downloading... done
-- extracting...
     src='C:/Users/runneradmin/AppData/Local/.xmake/cache/packages/2412/g/google-cloud-cpp/2.32.0/source/build_8d23c6b5/external/googleapis/src/d675ec222c431e3346ba8aaf0027392fe8b3d90c.tar.gz'
     dst='C:/Users/runneradmin/AppData/Local/.xmake/cache/packages/2412/g/google-cloud-cpp/2.32.0/source/build_8d23c6b5/external/googleapis/src/googleapis_download'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done

can I have an example for how to do this

@star-hengxing
Copy link
Contributor

@star-hengxing star-hengxing linked an issue Dec 26, 2024 that may be closed by this pull request

on_load(function (package)
if package:config("shared") then
package:add("deps","protobuf-cpp",{shared= true})
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add spaces " , "

{configs = {shared = true}}

if package:is_plat("wasm") then
raise("package(google-cloud-cpp) unsupported on wasm due to package(grpc) is unsupported on wasm yet.")
end
if package:is_plat("mingw") then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we just use

on_install("linux", "windows", ...)

to limit platforms instead of on_check

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

是否可以加入google的api客户端库
3 participants