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
13load("@bazel_toolchains//rules/exec_properties:exec_properties.bzl", "create_rbe_exec_properties_dict", "custom_exec_properties")
14
15custom_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
27load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
28
29http_archive(
30    name = "build_bazel_rules_android",
31    sha256 = "cd06d15dd8bb59926e4d65f9003bfc20f9da4b2519985c27e190cddc8b7a7806",
32    strip_prefix = "rules_android-0.1.1",
33    urls = ["https://github.com/bazelbuild/rules_android/archive/v0.1.1.zip"],
34)
35
36load("//third_party/android:android_configure.bzl", "android_configure")
37
38android_configure(name = "local_config_android")
39
40load("@local_config_android//:android_configure.bzl", "android_workspace")
41
42android_workspace()
43
44# Prevents bazel's '...' expansion from including the following folder.
45# This is required because the BUILD file in the following folder
46# will trigger bazel failure when Android SDK is not configured.
47# The targets in the following folder need to be included in APK and will
48# be invoked by binder transport implementation through JNI.
49local_repository(
50    name = "binder_transport_android_helper",
51    path = "./src/core/ext/transport/binder/java",
52)
53
54# Prevents bazel's '...' expansion from including the following folder.
55# This is required to avoid triggering "Unable to find package for @rules_fuzzing//fuzzing:cc_defs.bzl"
56# error.
57local_repository(
58    name = "ignore_third_party_utf8_range_subtree",
59    path = "third_party/utf8_range",
60)
61
62load("@io_bazel_rules_python//python:pip.bzl", "pip_install")
63
64pip_install(
65    name = "grpc_python_dependencies",
66    requirements = "@com_github_grpc_grpc//:requirements.bazel.txt",
67)
68
69load("@upb//bazel:system_python.bzl", "system_python")
70
71system_python(
72    name = "system_python",
73    minimum_python_version = "3.7",
74)
75
76load("@system_python//:pip.bzl", "pip_parse")
77
78pip_parse(
79    name = "pip_deps",
80    requirements = "@upb//python:requirements.txt",
81    requirements_overrides = {
82        "3.11": "@upb//python:requirements_311.txt",
83    },
84)
85
86http_archive(
87    name = "build_bazel_rules_swift",
88    sha256 = "bf2861de6bf75115288468f340b0c4609cc99cc1ccc7668f0f71adfd853eedb3",
89    url = "https://github.com/bazelbuild/rules_swift/releases/download/1.7.1/rules_swift.1.7.1.tar.gz",
90)
91
92load(
93    "@build_bazel_rules_swift//swift:repositories.bzl",
94    "swift_rules_dependencies",
95)
96
97swift_rules_dependencies()
98
99# TODO: Enable below once https://github.com/bazel-xcode/PodToBUILD/issues/232 is resolved
100#
101#http_archive(
102#    name = "rules_pods",
103#    urls = ["https://github.com/pinterest/PodToBUILD/releases/download/4.1.0-412495/PodToBUILD.zip"],
104#)
105#
106#load(
107#    "@rules_pods//BazelExtensions:workspace.bzl",
108#    "new_pod_repository",
109#)
110#
111#new_pod_repository(
112#    name = "CronetFramework",
113#    is_dynamic_framework = True,
114#    podspec_url = "https://raw.githubusercontent.com/CocoaPods/Specs/master/Specs/2/e/1/CronetFramework/0.0.5/CronetFramework.podspec.json",
115#    url = "https://storage.googleapis.com/grpc-precompiled-binaries/cronet/Cronet.framework-v0.0.5.zip",
116#)
117