|
|
|
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
|
|
|
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
|
|
|
|
|
|
|
|
def upb_deps():
|
|
|
|
maybe(
|
|
|
|
http_archive,
|
|
|
|
name = "com_google_absl",
|
|
|
|
url = "https://github.com/abseil/abseil-cpp/archive/b9b925341f9e90f5e7aa0cf23f036c29c7e454eb.zip",
|
|
|
|
strip_prefix = "abseil-cpp-b9b925341f9e90f5e7aa0cf23f036c29c7e454eb",
|
|
|
|
sha256 = "bb2a0b57c92b6666e8acb00f4cbbfce6ddb87e83625fb851b0e78db581340617",
|
|
|
|
)
|
|
|
|
|
|
|
|
maybe(
|
|
|
|
http_archive,
|
|
|
|
name = "com_google_protobuf",
|
|
|
|
sha256 = "87407cd28e7a9c95d9f61a098a53cf031109d451a7763e7dd1253abf8b4df422",
|
|
|
|
strip_prefix = "protobuf-3.19.1",
|
|
|
|
urls = [
|
|
|
|
"https://mirror.bazel.build/github.com/protocolbuffers/protobuf/archive/v3.19.1.tar.gz",
|
|
|
|
"https://github.com/protocolbuffers/protobuf/archive/v3.19.1.tar.gz",
|
|
|
|
],
|
|
|
|
patches = [
|
|
|
|
"//bazel:protobuf.patch",
|
|
|
|
],
|
|
|
|
patch_cmds = [
|
|
|
|
"rm python/google/protobuf/__init__.py",
|
|
|
|
"rm python/google/protobuf/pyext/__init__.py",
|
|
|
|
"rm python/google/protobuf/internal/__init__.py",
|
|
|
|
]
|
|
|
|
)
|
|
|
|
|
|
|
|
rules_python_version = "740825b7f74930c62f44af95c9a4c1bd428d2c53" # Latest @ 2021-06-23
|
|
|
|
|
|
|
|
maybe(
|
|
|
|
http_archive,
|
|
|
|
name = "rules_python",
|
|
|
|
strip_prefix = "rules_python-{}".format(rules_python_version),
|
|
|
|
url = "https://github.com/bazelbuild/rules_python/archive/{}.zip".format(rules_python_version),
|
|
|
|
sha256 = "09a3c4791c61b62c2cbc5b2cbea4ccc32487b38c7a2cc8f87a794d7a659cc742",
|
|
|
|
)
|
|
|
|
|
|
|
|
maybe(
|
|
|
|
http_archive,
|
|
|
|
name = "bazel_skylib",
|
|
|
|
strip_prefix = "bazel-skylib-main",
|
|
|
|
urls = ["https://github.com/bazelbuild/bazel-skylib/archive/main.tar.gz"],
|
|
|
|
)
|
|
|
|
|
|
|
|
maybe(
|
|
|
|
http_archive,
|
|
|
|
name = "zlib",
|
|
|
|
build_file = "@com_google_protobuf//:third_party/zlib.BUILD",
|
|
|
|
sha256 = "629380c90a77b964d896ed37163f5c3a34f6e6d897311f1df2a7016355c45eff",
|
|
|
|
strip_prefix = "zlib-1.2.11",
|
|
|
|
url = "https://github.com/madler/zlib/archive/v1.2.11.tar.gz",
|
|
|
|
)
|