-
Notifications
You must be signed in to change notification settings - Fork 155
Expand file tree
/
Copy pathBUILD.out
More file actions
28 lines (23 loc) · 856 Bytes
/
BUILD.out
File metadata and controls
28 lines (23 loc) · 856 Bytes
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
load("@build_stack_rules_proto//rules:proto_compile.bzl", "proto_compile")
load("@rules_proto//proto:defs.bzl", "proto_library")
# "proto_rule" instantiates the proto_compile rule
# gazelle:proto_rule proto_compile implementation stackb:rules_proto:proto_compile
# "proto_plugin" instantiates the builtin cpp plugin
# gazelle:proto_plugin cpp implementation builtin:cpp
# "proto_language" binds the rule(s) and plugin(s) together
# gazelle:proto_language cpp rule proto_compile
# gazelle:proto_language cpp plugin cpp
proto_library(
name = "example_proto",
srcs = ["example.proto"],
visibility = ["//visibility:public"],
)
proto_compile(
name = "example_cpp_compile",
outputs = [
"example.pb.cc",
"example.pb.h",
],
plugins = ["@build_stack_rules_proto//plugin/builtin:cpp"],
proto = "example_proto",
)