aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/main/java/com/google/devtools/build/lib/rules/proto/SupportData.java
diff options
context:
space:
mode:
authorGravatar elenairina <elenairina@google.com>2018-02-16 08:07:42 -0800
committerGravatar Copybara-Service <copybara-piper@google.com>2018-02-16 08:09:06 -0800
commit15a4362cabd1699f488e42377bde9b27ad8943d0 (patch)
tree49dadf4b06a9d2ae1967d62aa174e7464b03a28a /src/main/java/com/google/devtools/build/lib/rules/proto/SupportData.java
parent8d4f813031002ecb4cdab0d11159df8f9bc9eebb (diff)
Add "proto_source_root" flag to proto_library.
Fixes #4544. RELNOTES: Add "proto_source_root" flag to proto_library. PiperOrigin-RevId: 185997723
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/rules/proto/SupportData.java')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/proto/SupportData.java10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/proto/SupportData.java b/src/main/java/com/google/devtools/build/lib/rules/proto/SupportData.java
index da35d13c34..9e02d190d5 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/proto/SupportData.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/proto/SupportData.java
@@ -33,9 +33,11 @@ public abstract class SupportData {
ImmutableList<Artifact> protoSources,
NestedSet<Artifact> protosInDirectDeps,
NestedSet<Artifact> transitiveImports,
+ NestedSet<String> transitiveProtoPathFlags,
boolean hasProtoSources) {
return new AutoValue_SupportData(
- nonWeakDepsPredicate, protoSources, transitiveImports, protosInDirectDeps, hasProtoSources);
+ nonWeakDepsPredicate, protoSources, transitiveImports, protosInDirectDeps,
+ transitiveProtoPathFlags, hasProtoSources);
}
public abstract Predicate<TransitiveInfoCollection> getNonWeakDepsPredicate();
@@ -49,6 +51,12 @@ public abstract class SupportData {
*/
public abstract NestedSet<Artifact> getProtosInDirectDeps();
+ /**
+ * Directories of .proto sources collected from the transitive closure, each prefixed with
+ * {@code --proto_path}. These flags will be passed to {@code protoc} in the specified oreder.
+ */
+ public abstract NestedSet<String> getTransitiveProtoPathFlags();
+
public abstract boolean hasProtoSources();
SupportData() {}