blob: f030e8614b6528f4a63d5a2f44c61d0ed9fbfea5 [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(
6 name = "io_bazel_rules_go",
Austin Schuh7c75e582020-11-14 16:41:18 -08007 sha256 = "d1ffd055969c8f8d431e2d439813e42326961d0942bdf734d2c95dc30c369566",
Austin Schuh4ac96a82019-08-14 20:24:23 -07008 urls = [
Austin Schuh7c75e582020-11-14 16:41:18 -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 Schuh4ac96a82019-08-14 20:24:23 -070011 ],
Austin Schuh4ac96a82019-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 Schuh7c75e582020-11-14 16:41:18 -080019
20##### Protobuf
James Kuszmauldac091f2022-03-22 09:35:06 -070021_PROTOBUF_VERSION = "3.15.2"
Austin Schuh7c75e582020-11-14 16:41:18 -080022
23http_archive(
24 name = "com_google_protobuf",
Austin Schuh7c75e582020-11-14 16:41:18 -080025 strip_prefix = "protobuf-" + _PROTOBUF_VERSION,
26 urls = [
27 "https://github.com/protocolbuffers/protobuf/archive/v" + _PROTOBUF_VERSION + ".tar.gz",
28 ],
29)
30
31##### GRPC
James Kuszmauldac091f2022-03-22 09:35:06 -070032_GRPC_VERSION = "1.42.0"
Austin Schuh7c75e582020-11-14 16:41:18 -080033
34http_archive(
35 name = "com_github_grpc_grpc",
Austin Schuh7c75e582020-11-14 16:41:18 -080036 strip_prefix = "grpc-" + _GRPC_VERSION,
37 urls = ["https://github.com/grpc/grpc/archive/v" + _GRPC_VERSION + ".tar.gz"],
38)
39
40load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps")
41
42grpc_deps()
James Kuszmauldac091f2022-03-22 09:35:06 -070043
44load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps")
45
46grpc_extra_deps()
47
48http_archive(
49 name = "build_bazel_rules_nodejs",
50 sha256 = "965ee2492a2b087cf9e0f2ca472aeaf1be2eb650e0cfbddf514b9a7d3ea4b02a",
51 urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/5.2.0/rules_nodejs-5.2.0.tar.gz"],
52)
53
54load("@build_bazel_rules_nodejs//:repositories.bzl", "build_bazel_rules_nodejs_dependencies")
55
56build_bazel_rules_nodejs_dependencies()
57
58load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install")
59
60node_repositories()
61
62yarn_install(
63 name = "npm",
64 exports_directories_only = False,
65 # Unfreeze to add/remove packages.
66 frozen_lockfile = True,
67 package_json = "//:package.json",
68 symlink_node_modules = False,
69 yarn_lock = "//:yarn.lock",
70)