aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2016-10-17 22:15:07 +0000
committerGravatar Philipp Wollermann <philwo@google.com>2016-10-18 10:57:11 +0000
commit1c876de10e81e63d8f65cb001b6db4f5c66ea3f3 (patch)
tree205f9a81d43ec73c50e83fc607e53bf4d2a5198b
parentdc818aca6e11817bb31a2f30cc310b170d7a268d (diff)
Allow .protodevel files in srcs of proto_library.
-- MOS_MIGRATED_REVID=136402597
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/proto/BazelProtoLibraryRule.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/proto/BazelProtoLibraryRule.java b/src/main/java/com/google/devtools/build/lib/rules/proto/BazelProtoLibraryRule.java
index 1f8b223b1f..c005efec9f 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/proto/BazelProtoLibraryRule.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/proto/BazelProtoLibraryRule.java
@@ -69,16 +69,16 @@ public final class BazelProtoLibraryRule implements RuleDefinition {
<!-- #END_BLAZE_RULE.ATTRIBUTE --> */
.override(attr("deps", LABEL_LIST).allowedRuleClasses("proto_library").allowedFileTypes())
/* <!-- #BLAZE_RULE(proto_library).ATTRIBUTE(srcs) -->
- The list of <code>.proto</code> files that are processed to create the target.
- This is usually a non empty list. One usecase where <code>srcs</code> can be
- empty is an <i>alias-library</i>. This is a proto_library rule having one or
- more other proto_library in <code>deps</code>. This pattern can be used to
- e.g. export a public api under a persistent name.
+ The list of <code>.proto</code> and <code>.protodevel</code> files that are
+ processed to create the target. This is usually a non empty list. One usecase
+ where <code>srcs</code> can be empty is an <i>alias-library</i>. This is a
+ proto_library rule having one or more other proto_library in <code>deps</code>.
+ This pattern can be used to e.g. export a public api under a persistent name.
<!-- #END_BLAZE_RULE.ATTRIBUTE --> */
.add(
attr("srcs", LABEL_LIST)
.direct_compile_time_input()
- .allowedFileTypes(FileType.of(".proto")))
+ .allowedFileTypes(FileType.of(".proto"), FileType.of(".protodevel")))
.advertiseProvider(ProtoSourcesProvider.class)
.build();
}