Nathaniel Brough | 82cf687 | 2021-02-16 15:51:57 +0800 | [diff] [blame] | 1 | # Copyright 2021 The Pigweed Authors |
Rob Mohr | be98ead | 2019-11-14 07:16:40 -0800 | [diff] [blame] | 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 4 | # use this file except in compliance with the License. You may obtain a copy of |
| 5 | # the License at |
| 6 | # |
| 7 | # https://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 | # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 | # License for the specific language governing permissions and limitations under |
| 13 | # the License. |
Matthew Soulanille | 376d797 | 2020-06-01 15:50:07 -0700 | [diff] [blame] | 14 | |
| 15 | workspace( |
| 16 | name = "pigweed", |
| 17 | managed_directories = {"@npm": ["node_modules"]}, |
| 18 | ) |
| 19 | |
Matthew Soulanille | 376d797 | 2020-06-01 15:50:07 -0700 | [diff] [blame] | 20 | load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
Nathaniel Brough | 82cf687 | 2021-02-16 15:51:57 +0800 | [diff] [blame] | 21 | load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") |
Nathaniel Brough | 68ef2a5 | 2021-07-16 13:51:19 +0800 | [diff] [blame] | 22 | load("//pw_env_setup/bazel/cipd_setup:cipd_rules.bzl", "pigweed_deps") |
| 23 | |
| 24 | # Setup CIPD client and packages. |
| 25 | # Required by: pigweed. |
| 26 | # Used by modules: all. |
| 27 | pigweed_deps() |
| 28 | |
| 29 | load("@cipd_deps//:cipd_init.bzl", "cipd_init") |
| 30 | |
| 31 | cipd_init() |
Nathaniel Brough | 82cf687 | 2021-02-16 15:51:57 +0800 | [diff] [blame] | 32 | |
Nathaniel Brough | f91e763 | 2021-07-26 17:12:14 +0800 | [diff] [blame] | 33 | # Set up Python support. |
Ted Pudlik | e4b6945 | 2022-02-04 23:52:03 +0000 | [diff] [blame] | 34 | # Required by: rules_fuzzing, com_github_nanopb_nanopb. |
Nathaniel Brough | b6b90d0 | 2021-05-11 11:32:17 +0800 | [diff] [blame] | 35 | # Used in modules: None. |
| 36 | http_archive( |
| 37 | name = "rules_python", |
Ted Pudlik | e4b6945 | 2022-02-04 23:52:03 +0000 | [diff] [blame] | 38 | sha256 = "a30abdfc7126d497a7698c29c46ea9901c6392d6ed315171a6df5ce433aa4502", |
| 39 | strip_prefix = "rules_python-0.6.0", |
| 40 | url = "https://github.com/bazelbuild/rules_python/archive/0.6.0.tar.gz", |
Nathaniel Brough | b6b90d0 | 2021-05-11 11:32:17 +0800 | [diff] [blame] | 41 | ) |
| 42 | |
Nathaniel Brough | f91e763 | 2021-07-26 17:12:14 +0800 | [diff] [blame] | 43 | # Set up Starlark library. |
Nathaniel Brough | a1113be | 2021-03-07 09:05:41 +0800 | [diff] [blame] | 44 | # Required by: io_bazel_rules_go, com_google_protobuf. |
| 45 | # Used in modules: None. |
| 46 | # This must be instantiated before com_google_protobuf as protobuf_deps() pulls |
| 47 | # in an older version of bazel_skylib. However io_bazel_rules_go requires a |
| 48 | # newer version. |
| 49 | http_archive( |
| 50 | name = "bazel_skylib", |
| 51 | sha256 = "1c531376ac7e5a180e0237938a2536de0c54d93f5c278634818e0efc952dd56c", |
| 52 | urls = [ |
| 53 | "https://github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz", |
| 54 | "https://mirror.bazel.build/github.com/bazelbuild/bazel-skylib/releases/download/1.0.3/bazel-skylib-1.0.3.tar.gz", |
| 55 | ], |
| 56 | ) |
| 57 | |
| 58 | load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace") |
| 59 | |
| 60 | bazel_skylib_workspace() |
| 61 | |
Nathaniel Brough | f91e763 | 2021-07-26 17:12:14 +0800 | [diff] [blame] | 62 | # Set up upstream googletest and googlemock. |
| 63 | # Required by: Pigweed. |
| 64 | # Used in modules: //pw_analog, //pw_i2c. |
| 65 | http_archive( |
| 66 | name = "com_google_googletest", |
| 67 | sha256 = "9dc9157a9a1551ec7a7e43daea9a694a0bb5fb8bec81235d8a1e6ef64c716dcb", |
| 68 | strip_prefix = "googletest-release-1.10.0", |
| 69 | urls = [ |
| 70 | "https://mirror.bazel.build/github.com/google/googletest/archive/release-1.10.0.tar.gz", |
| 71 | "https://github.com/google/googletest/archive/release-1.10.0.tar.gz", |
| 72 | ], |
| 73 | ) |
| 74 | |
| 75 | # Set up host hermetic host toolchain. |
Nathaniel Brough | b44d95e | 2021-07-15 10:39:47 +0800 | [diff] [blame] | 76 | # Required by: All cc targets. |
| 77 | # Used in modules: All cc targets. |
| 78 | git_repository( |
| 79 | name = "rules_cc_toolchain", |
Nathaniel Brough | f9cc041 | 2021-08-17 09:32:32 +0800 | [diff] [blame] | 80 | commit = "80b51ba81f14eebe06684efa25261f6dc46e9b29", |
Nathaniel Brough | a7dd32e | 2021-12-13 15:30:02 +0800 | [diff] [blame] | 81 | remote = "https://github.com/bazelembedded/rules_cc_toolchain.git", |
Nathaniel Brough | b44d95e | 2021-07-15 10:39:47 +0800 | [diff] [blame] | 82 | ) |
| 83 | |
| 84 | load("@rules_cc_toolchain//:rules_cc_toolchain_deps.bzl", "rules_cc_toolchain_deps") |
| 85 | |
| 86 | rules_cc_toolchain_deps() |
| 87 | |
| 88 | load("@rules_cc_toolchain//cc_toolchain:cc_toolchain.bzl", "register_cc_toolchains") |
| 89 | |
| 90 | register_cc_toolchains() |
| 91 | |
Nathaniel Brough | f91e763 | 2021-07-26 17:12:14 +0800 | [diff] [blame] | 92 | # Set up Protobuf rules. |
Nathaniel Brough | a1113be | 2021-03-07 09:05:41 +0800 | [diff] [blame] | 93 | # Required by: pigweed, com_github_bazelbuild_buildtools. |
| 94 | # Used in modules: //pw_protobuf. |
| 95 | http_archive( |
| 96 | name = "com_google_protobuf", |
Anthony DiGirolamo | d63bd74 | 2021-08-19 16:13:30 -0700 | [diff] [blame] | 97 | sha256 = "c6003e1d2e7fefa78a3039f19f383b4f3a61e81be8c19356f85b6461998ad3db", |
| 98 | strip_prefix = "protobuf-3.17.3", |
| 99 | url = "https://github.com/protocolbuffers/protobuf/archive/v3.17.3.tar.gz", |
Nathaniel Brough | a1113be | 2021-03-07 09:05:41 +0800 | [diff] [blame] | 100 | ) |
| 101 | |
| 102 | load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") |
| 103 | |
| 104 | protobuf_deps() |
| 105 | |
Nathaniel Brough | f91e763 | 2021-07-26 17:12:14 +0800 | [diff] [blame] | 106 | # Set up tools to build custom GRPC rules. |
Nathaniel Brough | b4f4e7a | 2021-05-06 14:49:55 +0800 | [diff] [blame] | 107 | # Required by: pigweed. |
Nathaniel Brough | f91e763 | 2021-07-26 17:12:14 +0800 | [diff] [blame] | 108 | # Used in modules: //pw_protobuf. |
Nathaniel Brough | 9d9a20d | 2020-08-04 16:46:56 +0800 | [diff] [blame] | 109 | http_archive( |
| 110 | name = "rules_proto_grpc", |
Jared Weinstein | 27ab4e1 | 2021-08-16 14:52:33 -0700 | [diff] [blame] | 111 | sha256 = "7954abbb6898830cd10ac9714fbcacf092299fda00ed2baf781172f545120419", |
| 112 | strip_prefix = "rules_proto_grpc-3.1.1", |
| 113 | urls = ["https://github.com/rules-proto-grpc/rules_proto_grpc/archive/3.1.1.tar.gz"], |
Nathaniel Brough | 9d9a20d | 2020-08-04 16:46:56 +0800 | [diff] [blame] | 114 | ) |
| 115 | |
Nathaniel Brough | b4f4e7a | 2021-05-06 14:49:55 +0800 | [diff] [blame] | 116 | load( |
| 117 | "@rules_proto_grpc//:repositories.bzl", |
| 118 | "rules_proto_grpc_repos", |
| 119 | "rules_proto_grpc_toolchains", |
| 120 | ) |
Nathaniel Brough | 9d9a20d | 2020-08-04 16:46:56 +0800 | [diff] [blame] | 121 | |
| 122 | rules_proto_grpc_toolchains() |
| 123 | |
| 124 | rules_proto_grpc_repos() |
| 125 | |
Ted Pudlik | e4b6945 | 2022-02-04 23:52:03 +0000 | [diff] [blame] | 126 | # Set up Protobuf rules. |
| 127 | # Required by: pigweed, com_github_bazelbuild_buildtools. |
| 128 | # Used in modules: //pw_protobuf. |
| 129 | http_archive( |
| 130 | name = "com_google_protobuf", |
| 131 | sha256 = "c6003e1d2e7fefa78a3039f19f383b4f3a61e81be8c19356f85b6461998ad3db", |
| 132 | strip_prefix = "protobuf-3.17.3", |
| 133 | url = "https://github.com/protocolbuffers/protobuf/archive/v3.17.3.tar.gz", |
| 134 | ) |
| 135 | |
| 136 | load("@com_google_protobuf//:protobuf_deps.bzl", "protobuf_deps") |
| 137 | |
| 138 | protobuf_deps() |
| 139 | |
| 140 | # Setup Nanopb protoc plugin. |
| 141 | # Required by: Pigweed. |
| 142 | # Used in modules: pw_protobuf. |
| 143 | git_repository( |
| 144 | name = "com_github_nanopb_nanopb", |
| 145 | commit = "e601fca6d9ed7fb5c09e2732452753b2989f128b", |
| 146 | remote = "https://github.com/nanopb/nanopb.git", |
| 147 | ) |
| 148 | |
| 149 | load("@com_github_nanopb_nanopb//:nanopb_deps.bzl", "nanopb_deps") |
| 150 | |
| 151 | nanopb_deps() |
| 152 | |
| 153 | load("@com_github_nanopb_nanopb//:python_deps.bzl", "nanopb_python_deps") |
| 154 | |
| 155 | nanopb_python_deps() |
| 156 | |
| 157 | load("@com_github_nanopb_nanopb//:nanopb_workspace.bzl", "nanopb_workspace") |
| 158 | |
| 159 | nanopb_workspace() |
| 160 | |
Nathaniel Brough | f91e763 | 2021-07-26 17:12:14 +0800 | [diff] [blame] | 161 | # Set up Bazel platforms. |
Nathaniel Brough | a1113be | 2021-03-07 09:05:41 +0800 | [diff] [blame] | 162 | # Required by: pigweed. |
Nathaniel Brough | f91e763 | 2021-07-26 17:12:14 +0800 | [diff] [blame] | 163 | # Used in modules: //pw_build, (Assorted modules via select statements). |
Nathaniel Brough | c2d5781 | 2021-04-18 22:52:00 +0800 | [diff] [blame] | 164 | git_repository( |
| 165 | name = "platforms", |
| 166 | commit = "d4c9d7f51a7c403814b60f66d20eeb425fbaaacb", |
| 167 | remote = "https://github.com/bazelbuild/platforms.git", |
| 168 | ) |
| 169 | |
Nathaniel Brough | f91e763 | 2021-07-26 17:12:14 +0800 | [diff] [blame] | 170 | # Set up NodeJs rules. |
| 171 | # Required by: pigweed. |
| 172 | # Used in modules: //pw_web_ui. |
Matthew Soulanille | 376d797 | 2020-06-01 15:50:07 -0700 | [diff] [blame] | 173 | http_archive( |
Nathaniel Brough | b44d95e | 2021-07-15 10:39:47 +0800 | [diff] [blame] | 174 | name = "build_bazel_rules_nodejs", |
Paul Mathieu | 6ce4802 | 2021-09-14 10:36:10 -0700 | [diff] [blame] | 175 | sha256 = "b32a4713b45095e9e1921a7fcb1adf584bc05959f3336e7351bcf77f015a2d7c", |
| 176 | urls = ["https://github.com/bazelbuild/rules_nodejs/releases/download/4.1.0/rules_nodejs-4.1.0.tar.gz"], |
Matthew Soulanille | 376d797 | 2020-06-01 15:50:07 -0700 | [diff] [blame] | 177 | ) |
Nathaniel Brough | 82cf687 | 2021-02-16 15:51:57 +0800 | [diff] [blame] | 178 | |
| 179 | # Get the latest LTS version of Node. |
| 180 | load( |
| 181 | "@build_bazel_rules_nodejs//:index.bzl", |
| 182 | "node_repositories", |
| 183 | "yarn_install", |
| 184 | ) |
| 185 | |
Matthew Soulanille | 376d797 | 2020-06-01 15:50:07 -0700 | [diff] [blame] | 186 | node_repositories(package_json = ["//:package.json"]) |
| 187 | |
Matthew Soulanille | 376d797 | 2020-06-01 15:50:07 -0700 | [diff] [blame] | 188 | yarn_install( |
| 189 | name = "npm", |
| 190 | package_json = "//:package.json", |
| 191 | yarn_lock = "//:yarn.lock", |
| 192 | ) |
| 193 | |
Nathaniel Brough | f91e763 | 2021-07-26 17:12:14 +0800 | [diff] [blame] | 194 | # Set up web-testing rules. |
| 195 | # Required by: pigweed. |
| 196 | # Used in modules: //pw_web_ui. |
Nathaniel Brough | 9d9a20d | 2020-08-04 16:46:56 +0800 | [diff] [blame] | 197 | http_archive( |
| 198 | name = "io_bazel_rules_webtesting", |
| 199 | sha256 = "9bb461d5ef08e850025480bab185fd269242d4e533bca75bfb748001ceb343c3", |
| 200 | urls = ["https://github.com/bazelbuild/rules_webtesting/releases/download/0.3.3/rules_webtesting.tar.gz"], |
Nathaniel Brough | 82cf687 | 2021-02-16 15:51:57 +0800 | [diff] [blame] | 201 | ) |
| 202 | |
Nathaniel Brough | 9d9a20d | 2020-08-04 16:46:56 +0800 | [diff] [blame] | 203 | load("@io_bazel_rules_webtesting//web:repositories.bzl", "web_test_repositories") |
| 204 | |
Matthew Soulanille | 5e78acf | 2020-06-08 10:58:29 -0700 | [diff] [blame] | 205 | web_test_repositories() |
| 206 | |
Nathaniel Brough | 82cf687 | 2021-02-16 15:51:57 +0800 | [diff] [blame] | 207 | load( |
| 208 | "@io_bazel_rules_webtesting//web/versioned:browsers-0.3.2.bzl", |
| 209 | "browser_repositories", |
| 210 | ) |
Matthew Soulanille | 5e78acf | 2020-06-08 10:58:29 -0700 | [diff] [blame] | 211 | |
| 212 | browser_repositories( |
| 213 | chromium = True, |
| 214 | firefox = True, |
| 215 | ) |
| 216 | |
Nathaniel Brough | f91e763 | 2021-07-26 17:12:14 +0800 | [diff] [blame] | 217 | # Set up embedded C/C++ toolchains. |
Nathaniel Brough | a1113be | 2021-03-07 09:05:41 +0800 | [diff] [blame] | 218 | # Required by: pigweed. |
| 219 | # Used in modules: //pw_polyfill, //pw_build (all pw_cc* targets). |
Nathaniel Brough | 82cf687 | 2021-02-16 15:51:57 +0800 | [diff] [blame] | 220 | git_repository( |
| 221 | name = "bazel_embedded", |
Nathaniel Brough | b371831 | 2021-09-16 08:26:34 +0800 | [diff] [blame] | 222 | commit = "17c93d5fa52c4c78860b8bbd327325fba6c85555", |
Nathaniel Brough | a7dd32e | 2021-12-13 15:30:02 +0800 | [diff] [blame] | 223 | remote = "https://github.com/bazelembedded/bazel-embedded.git", |
Nathaniel Brough | 82cf687 | 2021-02-16 15:51:57 +0800 | [diff] [blame] | 224 | ) |
| 225 | |
| 226 | # Instantiate Pigweed configuration for embedded toolchain, |
| 227 | # this must be called before bazel_embedded_deps. |
| 228 | load( |
| 229 | "//pw_build:pigweed_toolchain_upstream.bzl", |
| 230 | "toolchain_upstream_deps", |
| 231 | ) |
| 232 | |
| 233 | toolchain_upstream_deps() |
| 234 | |
| 235 | # Configure bazel_embedded toolchains and platforms. |
| 236 | load( |
| 237 | "@bazel_embedded//:bazel_embedded_deps.bzl", |
| 238 | "bazel_embedded_deps", |
| 239 | ) |
| 240 | |
| 241 | bazel_embedded_deps() |
| 242 | |
| 243 | load( |
| 244 | "@bazel_embedded//platforms:execution_platforms.bzl", |
| 245 | "register_platforms", |
| 246 | ) |
| 247 | |
| 248 | register_platforms() |
| 249 | |
| 250 | # Fetch gcc-arm-none-eabi compiler and register for toolchain |
| 251 | # resolution. |
| 252 | load( |
| 253 | "@bazel_embedded//toolchains/compilers/gcc_arm_none_eabi:gcc_arm_none_repository.bzl", |
| 254 | "gcc_arm_none_compiler", |
| 255 | ) |
| 256 | |
| 257 | gcc_arm_none_compiler() |
| 258 | |
| 259 | load( |
| 260 | "@bazel_embedded//toolchains/gcc_arm_none_eabi:gcc_arm_none_toolchain.bzl", |
| 261 | "register_gcc_arm_none_toolchain", |
| 262 | ) |
| 263 | |
| 264 | register_gcc_arm_none_toolchain() |
| 265 | |
Nathaniel Brough | a1113be | 2021-03-07 09:05:41 +0800 | [diff] [blame] | 266 | # Registers platforms for use with toolchain resolution |
Nathaniel Brough | ce91098 | 2021-02-16 15:51:57 +0800 | [diff] [blame] | 267 | register_execution_platforms("//pw_build/platforms:all") |
Nathaniel Brough | a1113be | 2021-03-07 09:05:41 +0800 | [diff] [blame] | 268 | |
Nathaniel Brough | f91e763 | 2021-07-26 17:12:14 +0800 | [diff] [blame] | 269 | # Set up Golang toolchain rules. |
Nathaniel Brough | a1113be | 2021-03-07 09:05:41 +0800 | [diff] [blame] | 270 | # Required by: bazel_gazelle, com_github_bazelbuild_buildtools. |
| 271 | # Used in modules: None. |
| 272 | http_archive( |
| 273 | name = "io_bazel_rules_go", |
| 274 | sha256 = "d1ffd055969c8f8d431e2d439813e42326961d0942bdf734d2c95dc30c369566", |
| 275 | urls = [ |
| 276 | "https://mirror.bazel.build/github.com/bazelbuild/rules_go/releases/download/v0.24.5/rules_go-v0.24.5.tar.gz", |
| 277 | "https://github.com/bazelbuild/rules_go/releases/download/v0.24.5/rules_go-v0.24.5.tar.gz", |
| 278 | ], |
| 279 | ) |
| 280 | |
| 281 | load( |
| 282 | "@io_bazel_rules_go//go:deps.bzl", |
| 283 | "go_register_toolchains", |
| 284 | "go_rules_dependencies", |
| 285 | ) |
| 286 | |
| 287 | go_rules_dependencies() |
| 288 | |
| 289 | go_register_toolchains() |
| 290 | |
Nathaniel Brough | f91e763 | 2021-07-26 17:12:14 +0800 | [diff] [blame] | 291 | # Set up bazel package manager for golang. |
Nathaniel Brough | a1113be | 2021-03-07 09:05:41 +0800 | [diff] [blame] | 292 | # Required by: com_github_bazelbuild_buildtools. |
Nathaniel Brough | f91e763 | 2021-07-26 17:12:14 +0800 | [diff] [blame] | 293 | # Used in modules: None. |
Nathaniel Brough | a1113be | 2021-03-07 09:05:41 +0800 | [diff] [blame] | 294 | http_archive( |
| 295 | name = "bazel_gazelle", |
| 296 | sha256 = "b85f48fa105c4403326e9525ad2b2cc437babaa6e15a3fc0b1dbab0ab064bc7c", |
| 297 | urls = [ |
| 298 | "https://mirror.bazel.build/github.com/bazelbuild/bazel-gazelle/releases/download/v0.22.2/bazel-gazelle-v0.22.2.tar.gz", |
| 299 | "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.22.2/bazel-gazelle-v0.22.2.tar.gz", |
| 300 | ], |
| 301 | ) |
| 302 | |
| 303 | load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies") |
| 304 | |
| 305 | gazelle_dependencies() |
| 306 | |
Nathaniel Brough | f91e763 | 2021-07-26 17:12:14 +0800 | [diff] [blame] | 307 | # Set up bazel buildtools (bazel linter and formatter). |
| 308 | # Required by: pigweed. |
Nathaniel Brough | a1113be | 2021-03-07 09:05:41 +0800 | [diff] [blame] | 309 | # Used in modules: //:all (bazel specific tools). |
| 310 | http_archive( |
| 311 | name = "com_github_bazelbuild_buildtools", |
| 312 | sha256 = "c28eef4d30ba1a195c6837acf6c75a4034981f5b4002dda3c5aa6e48ce023cf1", |
| 313 | strip_prefix = "buildtools-4.0.1", |
| 314 | url = "https://github.com/bazelbuild/buildtools/archive/4.0.1.tar.gz", |
| 315 | ) |
Nathaniel Brough | fc95cca | 2021-04-18 22:20:26 +0800 | [diff] [blame] | 316 | |
| 317 | load("//pw_build:target_config.bzl", "pigweed_config") |
| 318 | |
| 319 | # Configure Pigweeds backend. |
| 320 | pigweed_config( |
| 321 | name = "pigweed_config", |
| 322 | build_file = "//targets:default_config.BUILD", |
| 323 | ) |
Nathaniel Brough | b6b90d0 | 2021-05-11 11:32:17 +0800 | [diff] [blame] | 324 | |
Nathaniel Brough | f91e763 | 2021-07-26 17:12:14 +0800 | [diff] [blame] | 325 | # Set up rules for fuzz testing. |
Nathaniel Brough | b6b90d0 | 2021-05-11 11:32:17 +0800 | [diff] [blame] | 326 | # Required by: pigweed. |
Nathaniel Brough | f91e763 | 2021-07-26 17:12:14 +0800 | [diff] [blame] | 327 | # Used in modules: //pw_protobuf, //pw_tokenizer, //pw_fuzzer. |
Nathaniel Brough | b6b90d0 | 2021-05-11 11:32:17 +0800 | [diff] [blame] | 328 | http_archive( |
| 329 | name = "rules_fuzzing", |
| 330 | sha256 = "94f25c7a18db0502ace26a3ef7d0a25fd7c195c4e9770ddd1b1ec718e8936091", |
| 331 | strip_prefix = "rules_fuzzing-0.1.3", |
| 332 | urls = ["https://github.com/bazelbuild/rules_fuzzing/archive/v0.1.3.zip"], |
| 333 | ) |
| 334 | |
| 335 | load("@rules_fuzzing//fuzzing:repositories.bzl", "rules_fuzzing_dependencies") |
| 336 | |
| 337 | rules_fuzzing_dependencies() |
| 338 | |
| 339 | load("@rules_fuzzing//fuzzing:init.bzl", "rules_fuzzing_init") |
| 340 | |
| 341 | rules_fuzzing_init() |
Paul Mathieu | 29f5e73 | 2021-10-05 18:04:09 -0700 | [diff] [blame] | 342 | |
| 343 | # esbuild setup |
| 344 | load("@build_bazel_rules_nodejs//toolchains/esbuild:esbuild_repositories.bzl", "esbuild_repositories") |
| 345 | |
| 346 | esbuild_repositories(npm_repository = "npm") # Note, npm is the default value for npm_repository |
Wyatt Hepler | 3b4f89a | 2021-12-06 16:18:53 -0800 | [diff] [blame] | 347 | |
| 348 | RULES_JVM_EXTERNAL_TAG = "2.8" |
| 349 | |
| 350 | RULES_JVM_EXTERNAL_SHA = "79c9850690d7614ecdb72d68394f994fef7534b292c4867ce5e7dec0aa7bdfad" |
| 351 | |
| 352 | http_archive( |
| 353 | name = "rules_jvm_external", |
| 354 | sha256 = RULES_JVM_EXTERNAL_SHA, |
| 355 | strip_prefix = "rules_jvm_external-%s" % RULES_JVM_EXTERNAL_TAG, |
| 356 | url = "https://github.com/bazelbuild/rules_jvm_external/archive/%s.zip" % RULES_JVM_EXTERNAL_TAG, |
| 357 | ) |
| 358 | |
| 359 | load("@rules_jvm_external//:defs.bzl", "maven_install") |
| 360 | |
| 361 | # Pull in packages for the pw_rpc Java client with Maven. |
| 362 | maven_install( |
| 363 | artifacts = [ |
| 364 | "com.google.auto.value:auto-value:1.8.2", |
| 365 | "com.google.auto.value:auto-value-annotations:1.8.2", |
| 366 | "com.google.code.findbugs:jsr305:3.0.2", |
| 367 | "com.google.flogger:flogger:0.7.1", |
| 368 | "com.google.flogger:flogger-system-backend:0.7.1", |
| 369 | "com.google.guava:guava:31.0.1-jre", |
| 370 | "com.google.truth:truth:1.1.3", |
| 371 | "org.mockito:mockito-core:4.1.0", |
| 372 | ], |
| 373 | repositories = [ |
| 374 | "https://maven.google.com/", |
| 375 | "https://jcenter.bintray.com/", |
| 376 | "https://repo1.maven.org/maven2", |
| 377 | ], |
| 378 | ) |