|
|
|
#
|
|
|
|
# Copyright 2019 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.
|
|
|
|
#
|
|
|
|
|
|
|
|
workspace(name = "com_google_absl")
|
|
|
|
|
|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|
|
|
|
|
|
|
# GoogleTest/GoogleMock framework. Used by most unit-tests.
|
|
|
|
http_archive(
|
|
|
|
name = "com_google_googletest", # 2022-06-16T20:18:32Z
|
|
|
|
sha256 = "a1d3123179024258f9c399d45da3e0b09c4aaf8d2c041466ce5b4793a8929f23",
|
|
|
|
strip_prefix = "googletest-86add13493e5c881d7e4ba77fb91c1f57752b3a4",
|
|
|
|
# Keep this URL in sync with ABSL_GOOGLETEST_COMMIT in ci/cmake_common.sh.
|
|
|
|
urls = ["https://github.com/google/googletest/archive/86add13493e5c881d7e4ba77fb91c1f57752b3a4.zip"],
|
|
|
|
)
|
|
|
|
|
|
|
|
# RE2 (the regular expression library used by GoogleTest)
|
|
|
|
# Note this must use a commit from the `abseil` branch of the RE2 project.
|
|
|
|
# https://github.com/google/re2/tree/abseil
|
|
|
|
http_archive(
|
|
|
|
name = "com_googlesource_code_re2", # 2022-04-08
|
|
|
|
sha256 = "906d0df8ff48f8d3a00a808827f009a840190f404559f649cb8e4d7143255ef9",
|
|
|
|
strip_prefix = "re2-a276a8c738735a0fe45a6ee590fe2df69bcf4502",
|
|
|
|
urls = ["https://github.com/google/re2/archive/a276a8c738735a0fe45a6ee590fe2df69bcf4502.zip"],
|
|
|
|
)
|
|
|
|
|
|
|
|
# Google benchmark.
|
|
|
|
http_archive(
|
|
|
|
name = "com_github_google_benchmark", # 2021-09-20T09:19:51Z
|
|
|
|
sha256 = "62e2f2e6d8a744d67e4bbc212fcfd06647080de4253c97ad5c6749e09faf2cb0",
|
|
|
|
strip_prefix = "benchmark-0baacde3618ca617da95375e0af13ce1baadea47",
|
|
|
|
urls = ["https://github.com/google/benchmark/archive/0baacde3618ca617da95375e0af13ce1baadea47.zip"],
|
|
|
|
)
|
|
|
|
|
Export of internal Abseil changes
--
8c9dd24a6fbf9ed10ae81f9fa0bc2168558a9700 by Abseil Team <absl-team@google.com>:
Improve WebAssembly detection when using Bazel.
Unfortunately, the --cpu values are not standardized, and both
--cpu=wasm and --cpu=wasm32 are used in the wild. Most notably,
Emscripten's Bazel rules use --cpu=wasm, which was missing.
While there, add support for @platforms//cpu:{wasm32,wasm64}.
This change adds a dependency on @bazel_skylib, which requires
adding the following http_archive() rule to the WORKSPACE file:
http_archive(
name = "bazel_skylib",
urls = ["https://github.com/bazelbuild/bazel-skylib/releases/download/1.2.1/bazel-skylib-1.2.1.tar.gz"],
sha256 = "f7be3474d42aae265405a592bb7da8e171919d74c16f082a5457840f06054728",
)
PiperOrigin-RevId: 436815546
Change-Id: I4e1946070c6964abb12259f25a546f2d24e0992a
--
59514589043d9b0734a01f7aa7bc354f5b495eab by Abseil Team <absl-team@google.com>:
Fix some typos that slipped through.
PiperOrigin-RevId: 436777566
Change-Id: Ibf5c54e2671c749dc87d2bd5d36dcd220ce347d4
GitOrigin-RevId: 8c9dd24a6fbf9ed10ae81f9fa0bc2168558a9700
3 years ago
|
|
|
# Bazel Skylib.
|
|
|
|
http_archive(
|
|
|
|
name = "bazel_skylib",
|
|
|
|
urls = ["https://github.com/bazelbuild/bazel-skylib/releases/download/1.2.1/bazel-skylib-1.2.1.tar.gz"],
|
|
|
|
sha256 = "f7be3474d42aae265405a592bb7da8e171919d74c16f082a5457840f06054728",
|
|
|
|
)
|
|
|
|
|
|
|
|
# Bazel platform rules.
|
|
|
|
http_archive(
|
|
|
|
name = "platforms",
|
|
|
|
sha256 = "b601beaf841244de5c5a50d2b2eddd34839788000fa1be4260ce6603ca0d8eb7",
|
|
|
|
strip_prefix = "platforms-98939346da932eef0b54cf808622f5bb0928f00b",
|
|
|
|
urls = ["https://github.com/bazelbuild/platforms/archive/98939346da932eef0b54cf808622f5bb0928f00b.zip"],
|
|
|
|
)
|