1workspace(name = "com_github_grpc_grpc") 2 3load("//bazel:grpc_deps.bzl", "grpc_deps", "grpc_test_only_deps") 4 5grpc_deps() 6 7grpc_test_only_deps() 8 9load("//bazel:grpc_extra_deps.bzl", "grpc_extra_deps") 10 11grpc_extra_deps() 12 13register_execution_platforms( 14 "//third_party/toolchains:rbe_windows", 15) 16 17register_toolchains( 18 "//third_party/toolchains/bazel_0.26.0_rbe_windows:cc-toolchain-x64_windows", 19) 20 21load("@bazel_toolchains//rules/exec_properties:exec_properties.bzl", "create_exec_properties_dict", "custom_exec_properties") 22 23custom_exec_properties( 24 name = "grpc_custom_exec_properties", 25 constants = { 26 "LARGE_MACHINE": create_exec_properties_dict(gce_machine_type = "n1-standard-8"), 27 }, 28) 29 30load("@bazel_toolchains//rules:rbe_repo.bzl", "rbe_autoconfig") 31 32# Create toolchain configuration for remote execution. 33rbe_autoconfig( 34 name = "rbe_default", 35 exec_properties = create_exec_properties_dict( 36 docker_add_capabilities = "SYS_PTRACE", 37 docker_privileged = True, 38 # n1-highmem-2 is the default (small machine) machine type. Targets 39 # that want to use other machines (such as LARGE_MACHINE) will override 40 # this value. 41 gce_machine_type = "n1-highmem-2", 42 # WARNING: the os_family constraint has only been introduced recently 43 # and older release branches select workers solely based on gce_machine_type. 44 # Worker pools needs to be configured with care to avoid accidentally running 45 # linux jobs on windows pool and vice versa (which would lead to a test breakage) 46 os_family = "Linux", 47 ), 48 # use exec_properties instead of deprecated remote_execution_properties 49 use_legacy_platform_definition = False, 50) 51 52load("@bazel_toolchains//rules:environments.bzl", "clang_env") 53load("@bazel_skylib//lib:dicts.bzl", "dicts") 54 55# Create msan toolchain configuration for remote execution. 56rbe_autoconfig( 57 name = "rbe_msan", 58 env = dicts.add( 59 clang_env(), 60 { 61 "BAZEL_LINKOPTS": "-lc++:-lc++abi:-lm", 62 }, 63 ), 64) 65 66load("@io_bazel_rules_python//python:pip.bzl", "pip_import", "pip_repositories") 67 68pip_import( 69 name = "grpc_python_dependencies", 70 requirements = "@com_github_grpc_grpc//:requirements.bazel.txt", 71) 72 73load("@grpc_python_dependencies//:requirements.bzl", "pip_install") 74 75pip_repositories() 76 77pip_install() 78