blob: 5b364e0989ffca1fbd1d3eb02b35b73d42c097ac [file] [log] [blame]
Austin Schuh4ac96a82019-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(
Austin Schuha1d006e2022-09-14 21:50:42 -07006 name = "platforms",
7 sha256 = "379113459b0feaf6bfbb584a91874c065078aa673222846ac765f86661c27407",
Austin Schuh4ac96a82019-08-14 20:24:23 -07008 urls = [
Austin Schuha1d006e2022-09-14 21:50:42 -07009 "https://mirror.bazel.build/github.com/bazelbuild/platforms/releases/download/0.0.5/platforms-0.0.5.tar.gz",
10 "https://github.com/bazelbuild/platforms/releases/download/0.0.5/platforms-0.0.5.tar.gz",
Austin Schuh4ac96a82019-08-14 20:24:23 -070011 ],
Austin Schuh4ac96a82019-08-14 20:24:23 -070012)
13
Austin Schuha1d006e2022-09-14 21:50:42 -070014http_archive(
15 name = "build_bazel_rules_swift",
16 sha256 = "a2fd565e527f83fb3f9eb07eb9737240e668c9242d3bc318712efa54a7deda97",
17 url = "https://github.com/bazelbuild/rules_swift/releases/download/0.27.0/rules_swift.0.27.0.tar.gz",
18)
19
20load(
21 "@build_bazel_rules_swift//swift:repositories.bzl",
22 "swift_rules_dependencies",
23)
24
25swift_rules_dependencies()
26
27load(
28 "@build_bazel_rules_swift//swift:extras.bzl",
29 "swift_rules_extra_dependencies",
30)
31
32swift_rules_extra_dependencies()
33
34http_archive(
35 name = "io_bazel_rules_go",
36 sha256 = "16e9fca53ed6bd4ff4ad76facc9b7b651a89db1689a2877d6fd7b82aa824e366",
37 urls = [
38 "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.34.0/rules_go-v0.34.0.zip",
39 "https://github.com/bazelbuild/rules_go/releases/download/v0.34.0/rules_go-v0.34.0.zip",
40 ],
41)
42
43load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies")
Austin Schuh4ac96a82019-08-14 20:24:23 -070044
45go_rules_dependencies()
46
Austin Schuh7c75e582020-11-14 16:41:18 -080047##### Protobuf
James Kuszmauldac091f2022-03-22 09:35:06 -070048_PROTOBUF_VERSION = "3.15.2"
Austin Schuh7c75e582020-11-14 16:41:18 -080049
50http_archive(
51 name = "com_google_protobuf",
Austin Schuh7c75e582020-11-14 16:41:18 -080052 strip_prefix = "protobuf-" + _PROTOBUF_VERSION,
53 urls = [
54 "https://github.com/protocolbuffers/protobuf/archive/v" + _PROTOBUF_VERSION + ".tar.gz",
55 ],
56)
57
58##### GRPC
James Kuszmaul65541cb2022-11-08 14:53:47 -080059_GRPC_VERSION = "1.49.0" # https://github.com/grpc/grpc/releases/tag/v1.48.0
Austin Schuh7c75e582020-11-14 16:41:18 -080060
61http_archive(
62 name = "com_github_grpc_grpc",
James Kuszmaul65541cb2022-11-08 14:53:47 -080063 patch_args = ["-p1"],
64 patches = ["//grpc:build_grpc_with_cxx14.patch"],
65 sha256 = "15715e1847cc9e42014f02c727dbcb48e39dbdb90f79ad3d66fe4361709ff935",
Austin Schuh7c75e582020-11-14 16:41:18 -080066 strip_prefix = "grpc-" + _GRPC_VERSION,
Austin Schuha1d006e2022-09-14 21:50:42 -070067 urls = ["https://github.com/grpc/grpc/archive/refs/tags/v" + _GRPC_VERSION + ".tar.gz"],
Austin Schuh7c75e582020-11-14 16:41:18 -080068)
69
70load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
71
72grpc_deps()
James Kuszmauldac091f2022-03-22 09:35:06 -070073
74load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps")
75
76grpc_extra_deps()
77
Austin Schuha1d006e2022-09-14 21:50:42 -070078# rules_go from https://github.com/bazelbuild/rules_go/releases/tag/v0.34.0
James Kuszmauldac091f2022-03-22 09:35:06 -070079http_archive(
80 name = "build_bazel_rules_nodejs",
81 sha256 = "965ee2492a2b087cf9e0f2ca472aeaf1be2eb650e0cfbddf514b9a7d3ea4b02a",
82 urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.2.0/rules_nodejs-5.2.0.tar.gz"],
83)
84
85load("@build_bazel_rules_nodejs//:repositories.bzl", "build_bazel_rules_nodejs_dependencies")
86
87build_bazel_rules_nodejs_dependencies()
88
89load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install")
90
91node_repositories()
92
93yarn_install(
94 name = "npm",
95 exports_directories_only = False,
96 # Unfreeze to add/remove packages.
97 frozen_lockfile = True,
98 package_json = "//:package.json",
99 symlink_node_modules = False,
100 yarn_lock = "//:yarn.lock",
101)