Edwin Kempin | 818db93 | 2024-06-03 09:59:54 +0000 | [diff] [blame] | 1 | """ |
| 2 | Bazel definitions for tools. |
| 3 | """ |
| 4 | |
David Ostrovsky | 231e698 | 2024-05-28 19:49:03 +0200 | [diff] [blame] | 5 | load("@bazel_features//:deps.bzl", "bazel_features_deps") |
| 6 | load("@rules_proto//proto:repositories.bzl", "rules_proto_dependencies") |
| 7 | load("@toolchains_protoc//protoc:repositories.bzl", "rules_protoc_dependencies") |
| 8 | load("@toolchains_protoc//protoc:toolchain.bzl", "protoc_toolchains") |
David Ostrovsky | 7f4793d | 2023-12-26 14:40:22 +0100 | [diff] [blame] | 9 | |
| 10 | def gerrit_init(): |
| 11 | """ |
| 12 | Initialize the WORKSPACE for gerrit targets |
| 13 | """ |
David Ostrovsky | 231e698 | 2024-05-28 19:49:03 +0200 | [diff] [blame] | 14 | rules_protoc_dependencies() |
David Ostrovsky | 7f4793d | 2023-12-26 14:40:22 +0100 | [diff] [blame] | 15 | |
David Ostrovsky | 231e698 | 2024-05-28 19:49:03 +0200 | [diff] [blame] | 16 | rules_proto_dependencies() |
David Ostrovsky | 7f4793d | 2023-12-26 14:40:22 +0100 | [diff] [blame] | 17 | |
David Ostrovsky | 231e698 | 2024-05-28 19:49:03 +0200 | [diff] [blame] | 18 | bazel_features_deps() |
| 19 | |
| 20 | protoc_toolchains( |
| 21 | name = "toolchains_protoc_hub", |
| 22 | version = "v25.3", |
| 23 | ) |
| 24 | |
| 25 | native.register_toolchains("//tools:all") |