blob: 0ca31ab2ff5556caf6343ad2af14d597d77f9a85 [file] [edit]
# Copyright 2024 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.
# https://bazel.build/external/overview#bzlmod
module(
name = "abseil-cpp",
version = "head",
)
cc_configure = use_extension(
"@rules_cc//cc:extensions.bzl",
"cc_configure_extension",
dev_dependency = True,
)
use_repo(cc_configure, "local_config_cc")
bazel_dep(name = "rules_cc", version = "0.2.22")
bazel_dep(name = "bazel_skylib", version = "1.9.2")
bazel_dep(name = "platforms", version = "1.1.0")
bazel_dep(
name = "google_benchmark",
version = "1.9.5",
dev_dependency = True,
)
bazel_dep(
name = "rules_foreign_cc",
version = "0.16.0",
dev_dependency = True,
)
bazel_dep(
name = "rules_shell",
version = "0.6.1",
dev_dependency = True,
)
foreign_cc_tools = use_extension(
"@rules_foreign_cc//foreign_cc:extensions.bzl",
"tools",
dev_dependency = True,
)
foreign_cc_tools.cmake(mode = "system")
foreign_cc_tools.ninja(mode = "system")
foreign_cc_tools.make(mode = "system")
foreign_cc_tools.pkgconfig(mode = "system")
http_file = use_repo_rule(
"@bazel_tools//tools/build_defs/repo:http.bzl",
"http_file",
)
http_file(
name = "googletest_archive",
dev_dependency = True,
downloaded_file_path = "googletest-1.18.0.tar.gz",
sha256 = "6e3191c1455468b3fc35a417fb565c1c5071aee1b7e7f85e30cf48a98d37d8b5",
urls = ["https://github.com/google/googletest/releases/download/v1.18.0/googletest-1.18.0.tar.gz"],
)
# Note: Googletest is NOT a dev_dependency. Some Abseil test utilities
# intended to be used by Abseil users depend on GoogleTest.
bazel_dep(
name = "googletest",
version = "1.18.0",
)
# Note: Gloop is NOT a dev_dependency, but should never be used directly. It is only included here
# so that we can give visibility into Abseil internals.
bazel_dep(
name = "gloop",
version = "20260708.rc1",
repo_name = "do_not_use_for_gloop_visibility_only",
)
bazel_dep(name = "docker_toolchain", version = "0.1", dev_dependency = True)
local_path_override(
module_name = "docker_toolchain",
path = "ci/docker_toolchain",
)