-
-
Notifications
You must be signed in to change notification settings - Fork 566
Expand file tree
/
Copy pathBUILD
More file actions
29 lines (24 loc) · 597 Bytes
/
BUILD
File metadata and controls
29 lines (24 loc) · 597 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
29
load(":rule.bzl", "myrule")
package(features = ["foo"])
# features have no specific meaning in Bazel. Each rule can decide how to use
# the features.
# See the documentation:
# https://bazel.build/reference/be/common-definitions#common.features
# in target1, the enabled features are ["foo"]
myrule(
name = "target1",
)
# in target2, the enabled features are ["bar", "foo"]
myrule(
name = "target2",
features = ["bar"],
)
# in target3, the enabled features are ["bar", "baz"]
myrule(
name = "target3",
features = [
"-foo",
"bar",
"baz",
],
)