mirror of
https://github.com/google/benchmark.git
synced 2024-11-28 05:44:40 +00:00
dfd2ae520a
* Add `benchmark_workspace.bzl` function This commit adds a `benchmark_workspace.bzl` function to Google Benchmark. It is intended to be used as a means to pull in Google Benchmark's build dependencies in its own Bazel workspace, as well as in workspaces of downstream projects. * Migrate WORKSPACE to use the newly created benchmark_deps.bzl This commit changes Google Benchmark's own WORKSPACE to use the newly created `benchmark_deps.bzl` function.
23 lines
575 B
Python
23 lines
575 B
Python
workspace(name = "com_github_google_benchmark")
|
|
|
|
load("//:bazel/benchmark_deps.bzl", "benchmark_deps")
|
|
|
|
benchmark_deps()
|
|
|
|
load("@rules_foreign_cc//foreign_cc:repositories.bzl", "rules_foreign_cc_dependencies")
|
|
|
|
rules_foreign_cc_dependencies()
|
|
|
|
load("@rules_python//python:pip.bzl", pip3_install="pip_install")
|
|
|
|
pip3_install(
|
|
name = "py_deps",
|
|
requirements = "//:requirements.txt",
|
|
)
|
|
|
|
new_local_repository(
|
|
name = "python_headers",
|
|
build_file = "@//bindings/python:python_headers.BUILD",
|
|
path = "/usr/include/python3.6", # May be overwritten by setup.py.
|
|
)
|