This is an automated email from the ASF dual-hosted git repository.

sollhui pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new d657d621ad6 [chore](thirdparty) Add Google Cloud C++ OAuth2 dependency 
(#68268)
d657d621ad6 is described below

commit d657d621ad67cfb4ded0512bbdb3c38d0d7f8f59
Author: hui lai <[email protected]>
AuthorDate: Tue Sep 22 14:37:23 2026 +0800

    [chore](thirdparty) Add Google Cloud C++ OAuth2 dependency (#68268)
    
    ### What problem does this PR solve?
    
    Add Google Cloud C++ v2.45.0 with the OAuth2 authentication components
    enabled, static libraries, and examples, tests, and mocks disabled.
    Register its source archive, checksum, default build step, and source
    cleanup mapping. The Google Cloud Storage SDK is excluded.
    
    ### Release note
    
    None
    
    ### Check List (For Author)
    
    - Test:
    - [x] Manual test: `bash -n thirdparty/build-thirdparty.sh` and `bash -n
    thirdparty/vars.sh` passed.
    - [x] Verified the original patch applies cleanly and reversing it
    restores both exact master blobs; added-line whitespace checks passed.
    - Full third-party compilation was not run locally. Build and link
    validation remain for CI.
    - Behavior changed:
    - [x] Yes. The default third-party build now includes Google Cloud C++
    OAuth2. No Doris runtime code changes.
    - Does this need documentation?
        - [x] No.
---
 thirdparty/CHANGELOG.md        |  6 ++++++
 thirdparty/build-thirdparty.sh | 23 +++++++++++++++++++++++
 thirdparty/vars.sh             |  9 +++++++++
 3 files changed, 38 insertions(+)

diff --git a/thirdparty/CHANGELOG.md b/thirdparty/CHANGELOG.md
index f0df535e5f6..81b7324e6ce 100644
--- a/thirdparty/CHANGELOG.md
+++ b/thirdparty/CHANGELOG.md
@@ -2,6 +2,12 @@
 
 This file contains version of the third-party dependency libraries in the 
build-env image. The docker build-env image is apache/doris, and the tag is 
`build-env-${version}`
 
+## 20260921
+
+- Added: google-cloud-cpp 2.45.0 for OAuth2 authentication. Build static 
auth/common
+  REST components only, with the Google Cloud Storage SDK, examples, tests, 
and mocks
+  excluded.
+
 ## 20260911
 
 - Modified: libunwind 1.6.2 -> 1.8.3. 1.6.2 hard-codes a 4 KiB page size in the
diff --git a/thirdparty/build-thirdparty.sh b/thirdparty/build-thirdparty.sh
index d0b19c01622..8d31bedf68b 100755
--- a/thirdparty/build-thirdparty.sh
+++ b/thirdparty/build-thirdparty.sh
@@ -1902,6 +1902,27 @@ build_nlohmann_json() {
     "${BUILD_SYSTEM}" install
 }
 
+build_google_cloud_cpp() {
+    check_if_source_exist "${GOOGLE_CLOUD_CPP_SOURCE}"
+    cd "${TP_SOURCE_DIR}/${GOOGLE_CLOUD_CPP_SOURCE}"
+
+    rm -rf "${BUILD_DIR}"
+    "${CMAKE_CMD}" -G "${GENERATOR}" -B "${BUILD_DIR}" \
+        -DCMAKE_BUILD_TYPE=Release \
+        -DCMAKE_INSTALL_PREFIX="${TP_INSTALL_DIR}" \
+        -DCMAKE_PREFIX_PATH="${TP_INSTALL_DIR}" \
+        -DCMAKE_POSITION_INDEPENDENT_CODE=ON \
+        -DBUILD_SHARED_LIBS=OFF \
+        -DBUILD_TESTING=OFF \
+        -DGOOGLE_CLOUD_CPP_ENABLE=oauth2 \
+        -DGOOGLE_CLOUD_CPP_ENABLE_EXAMPLES=OFF \
+        -DGOOGLE_CLOUD_CPP_ENABLE_WERROR=OFF \
+        -DGOOGLE_CLOUD_CPP_WITH_MOCKS=OFF
+
+    "${CMAKE_CMD}" --build "${BUILD_DIR}" -j "${PARALLEL}"
+    "${CMAKE_CMD}" --install "${BUILD_DIR}" --prefix "${TP_INSTALL_DIR}"
+}
+
 # sse2neon
 build_sse2neon() {
     check_if_source_exist "${SSE2NEON_SOURCE}"
@@ -2468,6 +2489,7 @@ if [[ "${#packages[@]}" -eq 0 ]]; then
         benchmark
         simdjson
         nlohmann_json
+        google_cloud_cpp
         libbacktrace
         sse2neon
         xxhash
@@ -2562,6 +2584,7 @@ cleanup_package_source() {
         benchmark)       src_var="BENCHMARK_SOURCE" ;;
         simdjson)        src_var="SIMDJSON_SOURCE" ;;
         nlohmann_json)   src_var="NLOHMANN_JSON_SOURCE" ;;
+        google_cloud_cpp) src_var="GOOGLE_CLOUD_CPP_SOURCE" ;;
         libbacktrace)    src_var="LIBBACKTRACE_SOURCE" ;;
         sse2neon)        src_var="SSE2NEON_SOURCE" ;;
         xxhash)          src_var="XXHASH_SOURCE" ;;
diff --git a/thirdparty/vars.sh b/thirdparty/vars.sh
index c0d4e0079e9..81fc179acdf 100644
--- a/thirdparty/vars.sh
+++ b/thirdparty/vars.sh
@@ -481,6 +481,14 @@ NLOHMANN_JSON_NAME=json-3.10.1.tar.gz
 NLOHMANN_JSON_SOURCE=json-3.10.1
 NLOHMANN_JSON_MD5SUM="7b369d567afc0dffdcf5800fd9abb836"
 
+# Google Cloud C++ OAuth2 authentication library. Only the auth/common REST
+# components are built; the Google Cloud Storage SDK is intentionally excluded.
+GOOGLE_CLOUD_CPP_DOWNLOAD="https://github.com/googleapis/google-cloud-cpp/archive/refs/tags/v2.45.0.tar.gz";
+GOOGLE_CLOUD_CPP_FALLBACK_DOWNLOAD="https://codeload.github.com/googleapis/google-cloud-cpp/tar.gz/refs/tags/v2.45.0";
+GOOGLE_CLOUD_CPP_NAME="google-cloud-cpp-2.45.0.tar.gz"
+GOOGLE_CLOUD_CPP_SOURCE="google-cloud-cpp-2.45.0"
+GOOGLE_CLOUD_CPP_MD5SUM="3cc131764cd9009c20407d7b67afcf6e"
+
 # libbacktrace
 
LIBBACKTRACE_DOWNLOAD="https://codeload.github.com/ianlancetaylor/libbacktrace/zip/2446c66076480ce07a6bd868badcbceb3eeecc2e";
 LIBBACKTRACE_NAME=libbacktrace-2446c66076480ce07a6bd868badcbceb3eeecc2e.zip
@@ -674,6 +682,7 @@ export TP_ARCHIVES=(
     'XSIMD'
     'SIMDJSON'
     'NLOHMANN_JSON'
+    'GOOGLE_CLOUD_CPP'
     'LIBBACKTRACE'
     'SSE2NEON'
     'XXHASH'


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to