aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Googler <noreply@google.com>2017-01-06 21:20:27 +0000
committerGravatar Marcel Hlopko <hlopko@google.com>2017-01-09 10:15:21 +0000
commitfa7e34979b1a10794321b1233e8d6f44a62431fa (patch)
tree45472dcc37ad79210b527811a581ef67609e8392 /src
parent7a12162bdc4411e55b30c10519344fe31458bea0 (diff)
Exclude transitive proto deps of deploy_env binaries from the generated extension registry for the enclosing binary.
-- PiperOrigin-RevId: 143807030 MOS_MIGRATED_REVID=143807030
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/java/proto/GeneratedExtensionRegistryProvider.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/java/proto/GeneratedExtensionRegistryProvider.java b/src/main/java/com/google/devtools/build/lib/rules/java/proto/GeneratedExtensionRegistryProvider.java
index 1c1e04e6a9..9d7fac6ace 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/java/proto/GeneratedExtensionRegistryProvider.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/java/proto/GeneratedExtensionRegistryProvider.java
@@ -18,6 +18,7 @@ import com.google.auto.value.AutoValue;
import com.google.common.base.Verify;
import com.google.devtools.build.lib.actions.Artifact;
import com.google.devtools.build.lib.analysis.TransitiveInfoProvider;
+import com.google.devtools.build.lib.cmdline.Label;
import com.google.devtools.build.lib.collect.nestedset.NestedSet;
import com.google.devtools.build.lib.concurrent.ThreadSafety.Immutable;
@@ -31,6 +32,9 @@ import com.google.devtools.build.lib.concurrent.ThreadSafety.Immutable;
@Immutable
public abstract class GeneratedExtensionRegistryProvider implements TransitiveInfoProvider {
+ /** @return the rule label for which this registry was built. */
+ public abstract Label getGeneratingRuleLabel();
+
/** @return if this registry was generated for lite or full runtime. */
public abstract boolean isLite();
@@ -50,6 +54,10 @@ public abstract class GeneratedExtensionRegistryProvider implements TransitiveIn
/** A builder for {@link GeneratedExtensionRegistryProvider}. */
@AutoValue.Builder
public abstract static class Builder {
+
+ /** Sets the rule label for which this registry was built. */
+ public abstract Builder setGeneratingRuleLabel(Label label);
+
/** Indicates this registry was built for lite runtime if <tt>true</tt>, full otherwise. */
public abstract Builder setLite(boolean lite);