WORKSPACE 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. # Copyright 2021 the V8 project authors. All rights reserved.
  2. # Use of this source code is governed by a BSD-style license that can be
  3. # found in the LICENSE file.
  4. workspace(name = "v8")
  5. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
  6. http_archive(
  7. name = "bazel_skylib",
  8. sha256 = "1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c",
  9. urls = [
  10. "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz",
  11. "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz",
  12. ],
  13. )
  14. load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")
  15. bazel_skylib_workspace()
  16. http_archive(
  17. name = "rules_python",
  18. sha256 = "a30abdfc7126d497a7698c29c46ea9901c6392d6ed315171a6df5ce433aa4502",
  19. strip_prefix = "rules_python-0.6.0",
  20. url = "https://github.com/bazelbuild/rules_python/archive/0.6.0.tar.gz",
  21. )
  22. load("@rules_python//python:pip.bzl", "pip_install")
  23. pip_install(
  24. name = "v8_python_deps",
  25. extra_pip_args = ["--require-hashes"],
  26. requirements = "//:bazel/requirements.txt",
  27. )
  28. new_local_repository(
  29. name = "com_googlesource_chromium_zlib",
  30. build_file = "bazel/BUILD.zlib",
  31. path = "third_party/zlib",
  32. )
  33. bind(
  34. name = "zlib",
  35. actual = "@com_googlesource_chromium_zlib//:zlib",
  36. )
  37. bind(
  38. name = "zlib_compression_utils",
  39. actual = "@com_googlesource_chromium_zlib//:zlib_compression_utils",
  40. )
  41. new_local_repository(
  42. name = "com_googlesource_chromium_icu",
  43. build_file = "bazel/BUILD.icu",
  44. path = "third_party/icu",
  45. )
  46. bind(
  47. name = "icu",
  48. actual = "@com_googlesource_chromium_icu//:icu",
  49. )
  50. new_local_repository(
  51. name = "com_googlesource_chromium_base_trace_event_common",
  52. build_file = "bazel/BUILD.trace_event_common",
  53. path = "base/trace_event/common",
  54. )
  55. bind(
  56. name = "base_trace_event_common",
  57. actual = "@com_googlesource_chromium_base_trace_event_common//:trace_event_common",
  58. )