blob: b7078572402664dcda6a5482c09f6712e691bd18 [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
Austin Schuha1d006e2022-09-14 21:50:42 -070059_GRPC_VERSION = "1.48.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",
Austin Schuh7c75e582020-11-14 16:41:18 -080063 strip_prefix = "grpc-" + _GRPC_VERSION,
Austin Schuha1d006e2022-09-14 21:50:42 -070064 urls = ["https://github.com/grpc/grpc/archive/refs/tags/v" + _GRPC_VERSION + ".tar.gz"],
Austin Schuh7c75e582020-11-14 16:41:18 -080065)
66
67load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
68
69grpc_deps()
James Kuszmauldac091f2022-03-22 09:35:06 -070070
71load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps")
72
73grpc_extra_deps()
74
Austin Schuha1d006e2022-09-14 21:50:42 -070075# rules_go from https://github.com/bazelbuild/rules_go/releases/tag/v0.34.0
James Kuszmauldac091f2022-03-22 09:35:06 -070076http_archive(
77 name = "build_bazel_rules_nodejs",
78 sha256 = "965ee2492a2b087cf9e0f2ca472aeaf1be2eb650e0cfbddf514b9a7d3ea4b02a",
79 urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.2.0/rules_nodejs-5.2.0.tar.gz"],
80)
81
82load("@build_bazel_rules_nodejs//:repositories.bzl", "build_bazel_rules_nodejs_dependencies")
83
84build_bazel_rules_nodejs_dependencies()
85
86load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install")
87
88node_repositories()
89
90yarn_install(
91 name = "npm",
92 exports_directories_only = False,
93 # Unfreeze to add/remove packages.
94 frozen_lockfile = True,
95 package_json = "//:package.json",
96 symlink_node_modules = False,
97 yarn_lock = "//:yarn.lock",
98)