|
14 | 14 | # limitations under the License. |
15 | 15 | # |
16 | 16 |
|
17 | | -workspace(name = "com_google_absl") |
| 17 | +workspace(name = "abseil-cpp") |
18 | 18 |
|
19 | 19 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
20 | 20 |
|
21 | 21 | # GoogleTest/GoogleMock framework. Used by most unit-tests. |
22 | 22 | http_archive( |
23 | | - name = "com_google_googletest", |
| 23 | + name = "googletest", |
24 | 24 | sha256 = "7b42b4d6ed48810c5362c265a17faebe90dc2373c885e5216439d37927f02926", |
25 | 25 | strip_prefix = "googletest-1.15.2", |
26 | 26 | # Keep this URL in sync with the version in ci/cmake_common.sh and |
27 | 27 | # ci/windows_msvc_cmake.bat. |
28 | 28 | urls = ["https://github.com/google/googletest/releases/download/v1.15.2/googletest-1.15.2.tar.gz"], |
| 29 | + # Now that Abseil is using the canonical names from the Bazel Central Registry, map |
| 30 | + # GoogleTest's old names to the new canonical names. |
| 31 | + repo_mapping = { |
| 32 | + "@com_google_absl": "@", |
| 33 | + "@com_googlesource_code_re2": "@re2", |
| 34 | + }, |
29 | 35 | ) |
30 | 36 |
|
31 | 37 | # RE2 (the regular expression library used by GoogleTest) |
32 | 38 | http_archive( |
33 | | - name = "com_googlesource_code_re2", |
| 39 | + name = "re2", |
34 | 40 | sha256 = "eb2df807c781601c14a260a507a5bb4509be1ee626024cb45acbd57cb9d4032b", |
35 | 41 | strip_prefix = "re2-2024-07-02", |
36 | 42 | urls = ["https://github.com/google/re2/releases/download/2024-07-02/re2-2024-07-02.tar.gz"], |
37 | | - repo_mapping = {"@abseil-cpp": "@com_google_absl"}, |
38 | 43 | ) |
39 | 44 |
|
40 | 45 | # Google benchmark. |
41 | 46 | http_archive( |
42 | | - name = "com_github_google_benchmark", |
43 | | - sha256 = "6bc180a57d23d4d9515519f92b0c83d61b05b5bab188961f36ac7b06b0d9e9ce", |
44 | | - strip_prefix = "benchmark-1.8.3", |
45 | | - urls = ["https://github.com/google/benchmark/archive/refs/tags/v1.8.3.tar.gz"], |
| 47 | + name = "google_benchmark", |
| 48 | + sha256 = "d26789a2b46d8808a48a4556ee58ccc7c497fcd4c0af9b90197674a81e04798a", |
| 49 | + strip_prefix = "benchmark-1.8.5", |
| 50 | + urls = ["https://github.com/google/benchmark/archive/refs/tags/v1.8.5.tar.gz"], |
46 | 51 | ) |
47 | 52 |
|
48 | 53 | # Bazel Skylib. |
49 | 54 | http_archive( |
50 | 55 | name = "bazel_skylib", |
51 | | - sha256 = "cd55a062e763b9349921f0f5db8c3933288dc8ba4f76dd9416aac68acee3cb94", |
52 | | - urls = ["https://github.com/bazelbuild/bazel-skylib/releases/download/1.5.0/bazel-skylib-1.5.0.tar.gz"], |
| 56 | + sha256 = "bc283cdfcd526a52c3201279cda4bc298652efa898b10b4db0837dc51652756f", |
| 57 | + urls = ["https://github.com/bazelbuild/bazel-skylib/releases/download/1.7.1/bazel-skylib-1.7.1.tar.gz"], |
| 58 | +) |
| 59 | + |
| 60 | +# C++ rules for Bazel |
| 61 | +http_archive( |
| 62 | + name = "rules_cc", |
| 63 | + urls = ["https://github.com/bazelbuild/rules_cc/releases/download/0.1.0/rules_cc-0.1.0.tar.gz"], |
| 64 | + sha256 = "4b12149a041ddfb8306a8fd0e904e39d673552ce82e4296e96fac9cbf0780e59", |
| 65 | + strip_prefix = "rules_cc-0.1.0", |
53 | 66 | ) |
54 | 67 |
|
55 | 68 | # Bazel platform rules. |
|
0 commit comments