llvm-project
32 строки · 1.2 Кб
1module(
2name = "google_benchmark",
3version = "1.8.3",
4)
5
6bazel_dep(name = "bazel_skylib", version = "1.5.0")
7bazel_dep(name = "platforms", version = "0.0.7")
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.27.1", 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.9")
23
24pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip", dev_dependency = True)
25pip.parse(
26hub_name = "tools_pip_deps",
27python_version = "3.9",
28requirements_lock = "//tools:requirements.txt",
29)
30use_repo(pip, "tools_pip_deps")
31
32# -- bazel_dep definitions -- #
33