-
Notifications
You must be signed in to change notification settings - Fork 155
Expand file tree
/
Copy pathBUILD.bazel
More file actions
81 lines (73 loc) · 2.21 KB
/
BUILD.bazel
File metadata and controls
81 lines (73 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
load("@bazel_gazelle//:def.bzl", "gazelle", "gazelle_binary")
load("@build_stack_rules_proto//rules:proto_gazelle.bzl", "proto_gazelle")
load("@npm_ts_proto//:defs.bzl", "npm_link_all_packages")
exports_files([
"rules_proto_config.yaml",
"MODULE.bazel",
])
# ----------------------------------------------------
# Gazelle
# ----------------------------------------------------
# gazelle:prefix github.com/stackb/rules_proto/v4
# gazelle:exclude vendor
# gazelle:exclude node_modules
# gazelle:go_generate_proto false
# ProTip: `bazel run //:gazelle` for go-only deps
gazelle(
name = "gazelle",
external = "static",
)
gazelle_binary(
name = "gazelle-protobuf",
languages = [
# NOTE: order matters here. Gazelle will respect the ordering of
# languages which will impact the population of 'OtherGen', so
# //language/protobuf MUST come after language/proto.
"@bazel_gazelle//language/go",
"@bazel_gazelle//language/proto",
"//language/protobuf",
],
visibility = ["//visibility:public"],
)
# ProTip: `bazel run //:proto_gazelle` for this extension
proto_gazelle(
name = "proto_gazelle",
cfgs = ["//:rules_proto_config.yaml"],
external = "static",
gazelle = "//:gazelle-protobuf",
imports = [
"@googleapis//:imports.csv",
"@protobufapis//:imports.csv",
],
)
# ----------------------------------------------------
# Test-Related
# ----------------------------------------------------
filegroup(
name = "all_files",
testonly = True,
srcs = [
"BUILD.bazel",
"MODULE.bazel",
"go.mod",
"go.sum",
"maven_akka_install.json",
"maven_scala_install.json",
"maven_zio_install.json",
"package.json",
"//cmd/gazelle:all_files",
"//cmd/gencopy:all_files",
"//extensions:all_files",
"//language/proto_go_modules:all_files",
"//language/protobuf:all_files",
"//pkg:all_files",
"//plugin:all_files",
"//rules:all_files",
"//third_party:all_files",
"//toolchain:all_files",
] + glob(["vendor/**/*"]),
visibility = ["//visibility:public"],
)
npm_link_all_packages(
name = "node_modules",
)