From 0e2da46d5e56d5b4c7ed1ad41d21dd1ecdf9203a Mon Sep 17 00:00:00 2001 From: kaipi Date: Fri, 13 Oct 2017 18:39:14 +0200 Subject: Update documentation on objc_proto_library rule, and disable the passing of direct files into the deps attribute, only proto_library and objc_proto_library targets are allowed. PiperOrigin-RevId: 172107133 --- .../build/lib/rules/objc/ObjcProtoLibraryRule.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/main/java/com/google/devtools/build/lib/rules') diff --git a/src/main/java/com/google/devtools/build/lib/rules/objc/ObjcProtoLibraryRule.java b/src/main/java/com/google/devtools/build/lib/rules/objc/ObjcProtoLibraryRule.java index 5a209c878e..a6ef17df8e 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/objc/ObjcProtoLibraryRule.java +++ b/src/main/java/com/google/devtools/build/lib/rules/objc/ObjcProtoLibraryRule.java @@ -34,6 +34,7 @@ import com.google.devtools.build.lib.rules.apple.AppleConfiguration; import com.google.devtools.build.lib.rules.cpp.CppConfiguration; import com.google.devtools.build.lib.rules.proto.ProtoSourceFileBlacklist; import com.google.devtools.build.lib.util.FileType; +import com.google.devtools.build.lib.util.FileTypeSet; /** * Rule definition for objc_proto_library. @@ -66,19 +67,18 @@ public class ObjcProtoLibraryRule implements RuleDefinition { */ .override( attr("deps", LABEL_LIST) + .allowedFileTypes(FileTypeSet.NO_FILE) .allowedRuleClasses("proto_library", "objc_proto_library") - .aspect(objcProtoAspect) - .legacyAllowAnyFileType()) + .aspect(objcProtoAspect)) /* - Whether to use the new protobuf compiler and runtime for this target. If you enable this - option without passing portable_proto_filters, it will generate a filter file for all the - protos that passed through proto_library targets as deps. + This attribute is deprecated. It currently is a noop. */ .add(attr(USES_PROTOBUF_ATTR, BOOLEAN).value(true)) /* - List of portable proto filters to be passed on to the protobuf compiler. This attribute - cannot be used together with the options_file, output_cpp, per_proto_includes and - use_objc_header_names attributes. + List of portable proto filters to be passed on to the protobuf compiler. If no filter files + are passed, one will be generated that whitelists every proto file listed in the + proto_library dependencies (i.e. proto files depended through other objc_proto_library + won't be automatically whitelisted). */ .add( attr(PORTABLE_PROTO_FILTERS_ATTR, LABEL_LIST) -- cgit v1.2.3