xref: /aosp_15_r20/external/google-benchmark/MODULE.bazel (revision dbb99499c3810fa1611fa2242a2fc446be01a57c)
1module(
2    name = "google_benchmark",
3    version = "1.9.0",
4)
5
6bazel_dep(name = "bazel_skylib", version = "1.5.0")
7bazel_dep(name = "platforms", version = "0.0.8")
8bazel_dep(name = "rules_foreign_cc", version = "0.10.1")
9bazel_dep(name = "rules_cc", version = "0.0.9")
10
11bazel_dep(name = "rules_python", version = "0.31.0", dev_dependency = True)
12bazel_dep(name = "googletest", version = "1.12.1", dev_dependency = True, repo_name = "com_google_googletest")
13
14bazel_dep(name = "libpfm", version = "4.11.0")
15
16# Register a toolchain for Python 3.9 to be able to build numpy. Python
17# versions >=3.10 are problematic.
18# A second reason for this is to be able to build Python hermetically instead
19# of relying on the changing default version from rules_python.
20
21python = use_extension("@rules_python//python/extensions:python.bzl", "python", dev_dependency = True)
22python.toolchain(python_version = "3.8")
23python.toolchain(python_version = "3.9")
24python.toolchain(python_version = "3.10")
25python.toolchain(python_version = "3.11")
26python.toolchain(
27    is_default = True,
28    python_version = "3.12",
29)
30
31pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip", dev_dependency = True)
32pip.parse(
33    hub_name = "tools_pip_deps",
34    python_version = "3.9",
35    requirements_lock = "//tools:requirements.txt",
36)
37use_repo(pip, "tools_pip_deps")
38
39# -- bazel_dep definitions -- #
40
41bazel_dep(name = "nanobind_bazel", version = "2.1.0", dev_dependency = True)
42