blob: d856cc6831f13d18f32c0e112912d37b6a83e9c5 [file] [log] [blame]
Austin Schuhe89fa2d2019-08-14 20:24:23 -07001workspace(name = "com_github_google_flatbuffers")
2
3load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
4
5http_archive(
6 name = "io_bazel_rules_go",
Austin Schuh272c6132020-11-14 16:37:52 -08007 sha256 = "d1ffd055969c8f8d431e2d439813e42326961d0942bdf734d2c95dc30c369566",
Austin Schuhe89fa2d2019-08-14 20:24:23 -07008 urls = [
Austin Schuh272c6132020-11-14 16:37:52 -08009 "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.24.5/rules_go-v0.24.5.tar.gz",
10 "https://github.com/bazelbuild/rules_go/releases/download/v0.24.5/rules_go-v0.24.5.tar.gz",
Austin Schuhe89fa2d2019-08-14 20:24:23 -070011 ],
Austin Schuhe89fa2d2019-08-14 20:24:23 -070012)
13
14load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
15
16go_rules_dependencies()
17
18go_register_toolchains()
Austin Schuh272c6132020-11-14 16:37:52 -080019
20##### Protobuf
21_PROTOBUF_VERSION = "3.6.1"
22
23http_archive(
24 name = "com_google_protobuf",
25 patch_args = ["-p1"],
26 patches = [
27 "//bazel:protobuf_deps_3_6_1.patch",
28 ],
29 strip_prefix = "protobuf-" + _PROTOBUF_VERSION,
30 urls = [
31 "https://github.com/protocolbuffers/protobuf/archive/v" + _PROTOBUF_VERSION + ".tar.gz",
32 ],
33)
34
35##### GRPC
36_GRPC_VERSION = "1.15.1"
37
38http_archive(
39 name = "com_github_grpc_grpc",
40 patch_args = ["-p1"],
41 patches = [
42 "//bazel:grpc_deps_1_15_1.patch",
43 "//bazel:grpc_deps_1_15_1_02.patch",
44 ],
45 strip_prefix = "grpc-" + _GRPC_VERSION,
46 urls = ["https://github.com/grpc/grpc/archive/v" + _GRPC_VERSION + ".tar.gz"],
47)
48
49load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
50
51grpc_deps()