Austin Schuh | 4ac96a8 | 2019-08-14 20:24:23 -0700 | [diff] [blame] | 1 | workspace(name = "com_github_google_flatbuffers") |
| 2 | |
| 3 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| 4 | |
| 5 | http_archive( |
Austin Schuh | a1d006e | 2022-09-14 21:50:42 -0700 | [diff] [blame] | 6 | name = "platforms", |
| 7 | sha256 = "379113459b0feaf6bfbb584a91874c065078aa673222846ac765f86661c27407", |
Austin Schuh | 4ac96a8 | 2019-08-14 20:24:23 -0700 | [diff] [blame] | 8 | urls = [ |
Austin Schuh | a1d006e | 2022-09-14 21:50:42 -0700 | [diff] [blame] | 9 | "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 Schuh | 4ac96a8 | 2019-08-14 20:24:23 -0700 | [diff] [blame] | 11 | ], |
Austin Schuh | 4ac96a8 | 2019-08-14 20:24:23 -0700 | [diff] [blame] | 12 | ) |
| 13 | |
Austin Schuh | a1d006e | 2022-09-14 21:50:42 -0700 | [diff] [blame] | 14 | http_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 | |
| 20 | load( |
| 21 | "@build_bazel_rules_swift//swift:repositories.bzl", |
| 22 | "swift_rules_dependencies", |
| 23 | ) |
| 24 | |
| 25 | swift_rules_dependencies() |
| 26 | |
| 27 | load( |
| 28 | "@build_bazel_rules_swift//swift:extras.bzl", |
| 29 | "swift_rules_extra_dependencies", |
| 30 | ) |
| 31 | |
| 32 | swift_rules_extra_dependencies() |
| 33 | |
| 34 | http_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 | |
| 43 | load("@io_bazel_rules_go//go:deps.bzl", "go_rules_dependencies") |
Austin Schuh | 4ac96a8 | 2019-08-14 20:24:23 -0700 | [diff] [blame] | 44 | |
| 45 | go_rules_dependencies() |
| 46 | |
Austin Schuh | 7c75e58 | 2020-11-14 16:41:18 -0800 | [diff] [blame] | 47 | ##### Protobuf |
James Kuszmaul | dac091f | 2022-03-22 09:35:06 -0700 | [diff] [blame] | 48 | _PROTOBUF_VERSION = "3.15.2" |
Austin Schuh | 7c75e58 | 2020-11-14 16:41:18 -0800 | [diff] [blame] | 49 | |
| 50 | http_archive( |
| 51 | name = "com_google_protobuf", |
Austin Schuh | 7c75e58 | 2020-11-14 16:41:18 -0800 | [diff] [blame] | 52 | 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 Kuszmaul | 65541cb | 2022-11-08 14:53:47 -0800 | [diff] [blame] | 59 | _GRPC_VERSION = "1.49.0" # https://github.com/grpc/grpc/releases/tag/v1.48.0 |
Austin Schuh | 7c75e58 | 2020-11-14 16:41:18 -0800 | [diff] [blame] | 60 | |
| 61 | http_archive( |
| 62 | name = "com_github_grpc_grpc", |
James Kuszmaul | 65541cb | 2022-11-08 14:53:47 -0800 | [diff] [blame] | 63 | patch_args = ["-p1"], |
| 64 | patches = ["//grpc:build_grpc_with_cxx14.patch"], |
| 65 | sha256 = "15715e1847cc9e42014f02c727dbcb48e39dbdb90f79ad3d66fe4361709ff935", |
Austin Schuh | 7c75e58 | 2020-11-14 16:41:18 -0800 | [diff] [blame] | 66 | strip_prefix = "grpc-" + _GRPC_VERSION, |
Austin Schuh | a1d006e | 2022-09-14 21:50:42 -0700 | [diff] [blame] | 67 | urls = ["https://github.com/grpc/grpc/archive/refs/tags/v" + _GRPC_VERSION + ".tar.gz"], |
Austin Schuh | 7c75e58 | 2020-11-14 16:41:18 -0800 | [diff] [blame] | 68 | ) |
| 69 | |
| 70 | load("@com_github_grpc_grpc//bazel:grpc_deps.bzl", "grpc_deps") |
| 71 | |
| 72 | grpc_deps() |
James Kuszmaul | dac091f | 2022-03-22 09:35:06 -0700 | [diff] [blame] | 73 | |
| 74 | load("@com_github_grpc_grpc//bazel:grpc_extra_deps.bzl", "grpc_extra_deps") |
| 75 | |
| 76 | grpc_extra_deps() |
| 77 | |
Austin Schuh | a1d006e | 2022-09-14 21:50:42 -0700 | [diff] [blame] | 78 | # rules_go from https://github.com/bazelbuild/rules_go/releases/tag/v0.34.0 |
James Kuszmaul | dac091f | 2022-03-22 09:35:06 -0700 | [diff] [blame] | 79 | http_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 | |
| 85 | load("@build_bazel_rules_nodejs//:repositories.bzl", "build_bazel_rules_nodejs_dependencies") |
| 86 | |
| 87 | build_bazel_rules_nodejs_dependencies() |
| 88 | |
| 89 | load("@build_bazel_rules_nodejs//:index.bzl", "node_repositories", "yarn_install") |
| 90 | |
| 91 | node_repositories() |
| 92 | |
| 93 | yarn_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 | ) |