WORKSPACE 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. workspace(name = "com_github_grpc_grpc")
  2. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
  3. load("//bazel:grpc_deps.bzl", "grpc_deps", "grpc_test_only_deps")
  4. load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository")
  5. grpc_deps()
  6. grpc_test_only_deps()
  7. register_execution_platforms(
  8. "//third_party/toolchains:local",
  9. "//third_party/toolchains:local_large",
  10. )
  11. http_archive(
  12. name = "cython",
  13. build_file = "//third_party:cython.BUILD",
  14. sha256 = "d68138a2381afbdd0876c3cb2a22389043fa01c4badede1228ee073032b07a27",
  15. strip_prefix = "cython-c2b80d87658a8525ce091cbe146cb7eaa29fed5c",
  16. urls = [
  17. "https://github.com/cython/cython/archive/c2b80d87658a8525ce091cbe146cb7eaa29fed5c.tar.gz",
  18. ],
  19. )
  20. load("//third_party/py:python_configure.bzl", "python_configure")
  21. python_configure(name = "local_config_python")
  22. git_repository(
  23. name = "io_bazel_rules_python",
  24. commit = "8b5d0683a7d878b28fffe464779c8a53659fc645",
  25. remote = "https://github.com/bazelbuild/rules_python.git",
  26. )
  27. load("@io_bazel_rules_python//python:pip.bzl", "pip_repositories", "pip_import")
  28. pip_repositories()
  29. pip_import(
  30. name = "grpc_python_dependencies",
  31. requirements = "//:requirements.bazel.txt",
  32. )
  33. load("@grpc_python_dependencies//:requirements.bzl", "pip_install")
  34. pip_install()
  35. # NOTE(https://github.com/pubref/rules_protobuf/pull/196): Switch to upstream repo after this gets merged.
  36. git_repository(
  37. name = "org_pubref_rules_protobuf",
  38. remote = "https://github.com/ghostwriternr/rules_protobuf",
  39. tag = "v0.8.2.1-alpha",
  40. )
  41. load("@org_pubref_rules_protobuf//python:rules.bzl", "py_proto_repositories")
  42. py_proto_repositories()
  43. load("@bazel_toolchains//rules:rbe_repo.bzl", "rbe_autoconfig")
  44. # Create toolchain configuration for remote execution.
  45. rbe_autoconfig(
  46. name = "rbe_default",
  47. )
  48. load("@bazel_toolchains//rules:environments.bzl", "clang_env")
  49. load("@bazel_skylib//lib:dicts.bzl", "dicts")
  50. # Create msan toolchain configuration for remote execution.
  51. rbe_autoconfig(
  52. name = "rbe_msan",
  53. env = dicts.add(
  54. clang_env(),
  55. {
  56. "BAZEL_LINKOPTS": "-lc++:-lc++abi:-lm",
  57. },
  58. ),
  59. )