Mircea Trofin | a5b7971 | 2024-03-04 22:11:30 | [diff] [blame] | 1 | module( |
| 2 | name = "google_benchmark", |
| 3 | version = "1.8.3", |
| 4 | ) |
| 5 | |
| 6 | bazel_dep(name = "bazel_skylib", version = "1.5.0") |
| 7 | bazel_dep(name = "platforms", version = "0.0.7") |
| 8 | bazel_dep(name = "rules_foreign_cc", version = "0.10.1") |
| 9 | bazel_dep(name = "rules_cc", version = "0.0.9") |
| 10 | |
| 11 | bazel_dep(name = "rules_python", version = "0.27.1", dev_dependency = True) |
| 12 | bazel_dep(name = "googletest", version = "1.12.1", dev_dependency = True, repo_name = "com_google_googletest") |
| 13 | |
| 14 | bazel_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 | |
| 21 | python = use_extension("@rules_python//python/extensions:python.bzl", "python", dev_dependency = True) |
| 22 | python.toolchain(python_version = "3.9") |
| 23 | |
| 24 | pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip", dev_dependency = True) |
| 25 | pip.parse( |
| 26 | hub_name = "tools_pip_deps", |
| 27 | python_version = "3.9", |
| 28 | requirements_lock = "//tools:requirements.txt", |
| 29 | ) |
| 30 | use_repo(pip, "tools_pip_deps") |
| 31 | |
| 32 | # -- bazel_dep definitions -- # |