aboutsummaryrefslogtreecommitdiff
path: root/third_party/abseil-cpp/ci/cmake_common.sh
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-04-14 03:06:47 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2022-04-14 03:06:47 +0000
commit320792352b5889a37d981409fc8e10e64181cbb7 (patch)
tree2ce94d7f0804ccb77d1fa9b2a1bca00eecdff1e2 /third_party/abseil-cpp/ci/cmake_common.sh
parentf60eaea2240ba9e1c508e8e0c91d39ee9fc47be5 (diff)
parent6c9587948173932b64d97c288a947e43d2a2ac14 (diff)
downloadwebrtc-320792352b5889a37d981409fc8e10e64181cbb7.tar.gz
Snap for 8451773 from 6c9587948173932b64d97c288a947e43d2a2ac14 to tm-d3-releaseandroid-13.0.0_r57android13-d3-s1-release
Change-Id: Ibc896b3201a77f16e8ea2748b78c3f896b22b7a5
Diffstat (limited to 'third_party/abseil-cpp/ci/cmake_common.sh')
-rw-r--r--third_party/abseil-cpp/ci/cmake_common.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/third_party/abseil-cpp/ci/cmake_common.sh b/third_party/abseil-cpp/ci/cmake_common.sh
new file mode 100644
index 0000000000..51f310693e
--- /dev/null
+++ b/third_party/abseil-cpp/ci/cmake_common.sh
@@ -0,0 +1,25 @@
+# Copyright 2020 The Abseil Authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# The commit of GoogleTest to be used in the CMake tests in this directory.
+# Keep this in sync with the commit in the WORKSPACE file.
+readonly ABSL_GOOGLETEST_COMMIT="8d51ffdfab10b3fba636ae69bc03da4b54f8c235"
+
+# Avoid depending on GitHub by looking for a cached copy of the commit first.
+if [[ -r "${KOKORO_GFILE_DIR:-}/distdir/${ABSL_GOOGLETEST_COMMIT}.zip" ]]; then
+ DOCKER_EXTRA_ARGS="--mount type=bind,source=${KOKORO_GFILE_DIR}/distdir,target=/distdir,readonly ${DOCKER_EXTRA_ARGS:-}"
+ ABSL_GOOGLETEST_DOWNLOAD_URL="file:///distdir/${ABSL_GOOGLETEST_COMMIT}.zip"
+else
+ ABSL_GOOGLETEST_DOWNLOAD_URL="https://github.com/google/googletest/archive/${ABSL_GOOGLETEST_COMMIT}.zip"
+fi