• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1%YAML 1.2
2--- |
3    # Copyright 2025 the gRPC authors.
4    #
5    # Licensed under the Apache License, Version 2.0 (the "License");
6    # you may not use this file except in compliance with the License.
7    # You may obtain a copy of the License at
8    #
9    #     http://www.apache.org/licenses/LICENSE-2.0
10    #
11    # Unless required by applicable law or agreed to in writing, software
12    # distributed under the License is distributed on an "AS IS" BASIS,
13    # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14    # See the License for the specific language governing permissions and
15    # limitations under the License.
16
17    module(
18        name = "grpc",
19        version = "${settings.cpp_version}",
20        compatibility_level = 1,
21        repo_name = "com_github_grpc_grpc",
22    )
23
24    bazel_dep(name = "abseil-cpp", version = "20240722.0", repo_name = "com_google_absl")
25    bazel_dep(name = "apple_support", version = "1.17.1", repo_name = "build_bazel_apple_support")
26    bazel_dep(name = "bazel_skylib", version = "1.7.1")
27    bazel_dep(name = "boringssl", version = "0.20241024.0")  # mistmatched 20241211
28    bazel_dep(name = "c-ares", version = "1.15.0", repo_name = "com_github_cares_cares")  # mistmatched 1.19.1
29    bazel_dep(name = "envoy_api", version = "0.0.0-20241214-918efc9")  # mistmatched 20250106
30    bazel_dep(name = "googleapis", version = "0.0.0-20240819-fe8ba054a", repo_name = "com_google_googleapis")
31    bazel_dep(name = "opentelemetry-cpp", version = "1.16.0", repo_name = "io_opentelemetry_cpp")  # mistmached 1.18.0
32    bazel_dep(name = "platforms", version = "0.0.10")
33    bazel_dep(name = "protobuf", version = "29.0", repo_name = "com_google_protobuf")
34    bazel_dep(name = "re2", version = "2024-07-02", repo_name = "com_googlesource_code_re2")  # mistmached 2022-04-01
35    bazel_dep(name = "rules_apple", version = "3.16.0", repo_name = "build_bazel_rules_apple")
36    bazel_dep(name = "rules_cc", version = "0.0.17")
37    bazel_dep(name = "rules_proto", version = "7.0.2")
38    bazel_dep(name = "xds", version = "0.0.0-20240423-555b57e", repo_name = "com_github_cncf_xds")  # mismatched 20231116
39    bazel_dep(name = "zlib", version = "1.3.1.bcr.3")
40
41    grpc_repo_deps_ext = use_extension("//bazel:grpc_deps.bzl", "grpc_repo_deps_ext")
42    use_repo(
43        grpc_repo_deps_ext,
44        "google_cloud_cpp",
45    )
46
47    switched_rules = use_extension("@com_google_googleapis//:extensions.bzl", "switched_rules")
48    switched_rules.use_languages(
49        cc = True,
50        grpc = True,
51        python = True,
52    )
53
54    bazel_dep(name = "rules_python", version = "0.37.1")
55
56    PYTHON_VERSIONS = [
57        "3.8",
58        "3.9",
59        "3.10",
60        "3.11",
61        "3.12",
62        "3.13",
63    ]
64
65    python = use_extension("@rules_python//python/extensions:python.bzl", "python")
66
67    [
68        python.toolchain(
69            is_default = python_version == PYTHON_VERSIONS[-1],
70            python_version = python_version,
71        )
72        for python_version in PYTHON_VERSIONS
73    ]
74
75    pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
76
77    [
78        pip.parse(
79            hub_name = "grpc_python_dependencies",
80            python_version = python_version,
81            requirements_lock = "//:requirements.bazel.txt",
82        )
83        for python_version in PYTHON_VERSIONS
84    ]
85
86    use_repo(pip, "grpc_python_dependencies")
87
88    bazel_dep(name = "cython", version = "3.0.11-1")
89