Debian Codegraph @

WORKSPACE

raw
1 workspace(name = "com_github_grpc_grpc")
2
3 load("//bazel:grpc_deps.bzl", "grpc_deps", "grpc_test_only_deps")
4
5 grpc_deps()
6
7 grpc_test_only_deps()
8
9 load("//bazel:grpc_extra_deps.bzl", "grpc_extra_deps")
10
11 grpc_extra_deps()
12
13 load("@bazel_toolchains//rules/exec_properties:exec_properties.bzl", "create_rbe_exec_properties_dict", "custom_exec_properties")
14
15 custom_exec_properties(
16 name = "grpc_custom_exec_properties",
17 constants = {
18 "LARGE_MACHINE": create_rbe_exec_properties_dict(
19 labels = {
20 "os": "ubuntu",
21 "machine_size": "large",
22 },
23 ),
24 },
25 )
26
27 load("@bazel_toolchains//rules:rbe_repo.bzl", "rbe_autoconfig")
28
29 # Create toolchain configuration for remote execution.
30 rbe_autoconfig(
31 name = "rbe_default",
32 exec_properties = create_rbe_exec_properties_dict(
33 docker_add_capabilities = "SYS_PTRACE",
34 docker_privileged = True,
35 labels = {
36 "os": "ubuntu",
37 "machine_size": "small",
38 },
39 os_family = "Linux",
40 ),
41 # use exec_properties instead of deprecated remote_execution_properties
42 use_legacy_platform_definition = False,
43 )
44
45 load("@bazel_toolchains//rules:environments.bzl", "clang_env")
46 load("@bazel_skylib//lib:dicts.bzl", "dicts")
47 load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
48
49 http_archive(
50 name = "build_bazel_rules_android",
51 sha256 = "cd06d15dd8bb59926e4d65f9003bfc20f9da4b2519985c27e190cddc8b7a7806",
52 strip_prefix = "rules_android-0.1.1",
53 urls = ["https://github.com/bazelbuild/rules_android/archive/v0.1.1.zip"],
54 )
55
56 load("//third_party/android:android_configure.bzl", "android_configure")
57
58 android_configure(name = "local_config_android")
59
60 load("@local_config_android//:android_configure.bzl", "android_workspace")
61
62 android_workspace()
63
64 # Prevents bazel's '...' expansion from including the following folder.
65 # This is required because the BUILD file in the following folder
66 # will trigger bazel failure when Android SDK is not configured.
67 # The targets in the following folder need to be included in APK and will
68 # be invoked by binder transport implementation through JNI.
69 local_repository(
70 name = "binder_transport_android_helper",
71 path = "./src/core/ext/transport/binder/java",
72 )
73
74 # Create msan toolchain configuration for remote execution.
75 rbe_autoconfig(
76 name = "rbe_msan",
77 env = dicts.add(
78 clang_env(),
79 {
80 "BAZEL_LINKOPTS": "-lc++:-lc++abi:-lm",
81 },
82 ),
83 )
84
85 load("@io_bazel_rules_python//python:pip.bzl", "pip_install")
86
87 pip_install(
88 name = "grpc_python_dependencies",
89 requirements = "@com_github_grpc_grpc//:requirements.bazel.txt",
90 )
91
92 http_archive(
93 name = "build_bazel_rules_swift",
94 sha256 = "12057b7aa904467284eee640de5e33853e51d8e31aae50b3fb25d2823d51c6b8",
95 url = "https://github.com/bazelbuild/rules_swift/releases/download/1.0.0/rules_swift.1.0.0.tar.gz",
96 )
97
98 http_archive(
99 name = "rules_pods",
100 urls = ["https://github.com/pinterest/PodToBUILD/releases/download/4.1.0-412495/PodToBUILD.zip"],
101 )
102
103 load(
104 "@build_bazel_rules_swift//swift:repositories.bzl",
105 "swift_rules_dependencies",
106 )
107 load(
108 "@rules_pods//BazelExtensions:workspace.bzl",
109 "new_pod_repository",
110 )
111
112 swift_rules_dependencies()
113
114 new_pod_repository(
115 name = "CronetFramework",
116 is_dynamic_framework = True,
117 podspec_url = "https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/2/e/1/CronetFramework/0.0.5/CronetFramework.podspec.json",
118 url = "https://storage.googleapis.com/grpc-precompiled-binaries/cronet/Cronet.framework-v0.0.5.zip",
119 )