WORKSPACE 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. workspace(name = "com_github_google_benchmark")
  2. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
  3. http_archive(
  4. name = "rules_cc",
  5. strip_prefix = "rules_cc-a508235df92e71d537fcbae0c7c952ea6957a912",
  6. urls = ["https://github.com/bazelbuild/rules_cc/archive/a508235df92e71d537fcbae0c7c952ea6957a912.zip"],
  7. sha256 = "d7dc12c1d5bc1a87474de8e3d17b7731a4dcebcfb8aa3990fe8ac7734ef12f2f",
  8. )
  9. http_archive(
  10. name = "com_google_absl",
  11. sha256 = "f41868f7a938605c92936230081175d1eae87f6ea2c248f41077c8f88316f111",
  12. strip_prefix = "abseil-cpp-20200225.2",
  13. urls = ["https://github.com/abseil/abseil-cpp/archive/20200225.2.tar.gz"],
  14. )
  15. http_archive(
  16. name = "com_google_googletest",
  17. strip_prefix = "googletest-3f0cf6b62ad1eb50d8736538363d3580dd640c3e",
  18. urls = ["https://github.com/google/googletest/archive/3f0cf6b62ad1eb50d8736538363d3580dd640c3e.zip"],
  19. sha256 = "8f827dd550db8b4fdf73904690df0be9fccc161017c9038a724bc9a0617a1bc8",
  20. )
  21. http_archive(
  22. name = "pybind11",
  23. build_file = "@//bindings/python:pybind11.BUILD",
  24. sha256 = "1eed57bc6863190e35637290f97a20c81cfe4d9090ac0a24f3bbf08f265eb71d",
  25. strip_prefix = "pybind11-2.4.3",
  26. urls = ["https://github.com/pybind/pybind11/archive/v2.4.3.tar.gz"],
  27. )
  28. new_local_repository(
  29. name = "python_headers",
  30. build_file = "@//bindings/python:python_headers.BUILD",
  31. path = "/usr/include/python3.6", # May be overwritten by setup.py.
  32. )
  33. http_archive(
  34. name = "rules_python",
  35. url = "https://github.com/bazelbuild/rules_python/releases/download/0.1.0/rules_python-0.1.0.tar.gz",
  36. sha256 = "b6d46438523a3ec0f3cead544190ee13223a52f6a6765a29eae7b7cc24cc83a0",
  37. )
  38. load("@rules_python//python:pip.bzl", pip3_install="pip_install")
  39. pip3_install(
  40. name = "py_deps",
  41. requirements = "//:requirements.txt",
  42. )