2023-08-31 20:16:50 +08:00
|
|
|
module(name = "google_benchmark", version="1.8.3")
|
2023-06-27 20:03:39 +08:00
|
|
|
|
2023-10-24 20:04:12 +08:00
|
|
|
bazel_dep(name = "bazel_skylib", version = "1.4.2")
|
2023-06-27 20:03:39 +08:00
|
|
|
bazel_dep(name = "platforms", version = "0.0.6")
|
|
|
|
bazel_dep(name = "rules_foreign_cc", version = "0.9.0")
|
|
|
|
bazel_dep(name = "rules_cc", version = "0.0.6")
|
2023-08-01 00:23:27 +08:00
|
|
|
bazel_dep(name = "rules_python", version = "0.24.0", dev_dependency = True)
|
|
|
|
bazel_dep(name = "googletest", version = "1.12.1", repo_name = "com_google_googletest", dev_dependency = True)
|
2023-06-27 20:03:39 +08:00
|
|
|
bazel_dep(name = "libpfm", version = "4.11.0")
|
|
|
|
|
|
|
|
# Register a toolchain for Python 3.9 to be able to build numpy. Python
|
|
|
|
# versions >=3.10 are problematic.
|
|
|
|
# A second reason for this is to be able to build Python hermetically instead
|
|
|
|
# of relying on the changing default version from rules_python.
|
|
|
|
|
2023-08-01 00:23:27 +08:00
|
|
|
python = use_extension("@rules_python//python/extensions:python.bzl", "python", dev_dependency = True)
|
2023-06-27 20:03:39 +08:00
|
|
|
python.toolchain(python_version = "3.9")
|
|
|
|
|
2023-08-01 00:23:27 +08:00
|
|
|
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip", dev_dependency = True)
|
2023-06-27 20:03:39 +08:00
|
|
|
pip.parse(
|
2023-07-18 15:40:54 +08:00
|
|
|
hub_name="tools_pip_deps",
|
|
|
|
python_version = "3.9",
|
2023-06-27 20:03:39 +08:00
|
|
|
requirements_lock="//tools:requirements.txt")
|
|
|
|
use_repo(pip, "tools_pip_deps")
|