aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Alex Humesky <ahumesky@google.com>2016-06-20 21:01:54 +0000
committerGravatar Philipp Wollermann <philwo@google.com>2016-06-21 09:58:33 +0000
commitaedfc8aec2d086a3400bb9773f59f5d5e3cbfc67 (patch)
tree8be5219e0d841c537df8f4d6328f95e4f25e97b0
parent65ca4a25089b7bf03515a2e1340d955b1225fca7 (diff)
Adds the label of the rule that produced the artifact to the apk manifest.
-- MOS_MIGRATED_REVID=125376859
-rw-r--r--src/main/java/com/google/devtools/build/lib/rules/android/ApkManifestAction.java1
-rw-r--r--src/main/protobuf/apk_manifest.proto2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/android/ApkManifestAction.java b/src/main/java/com/google/devtools/build/lib/rules/android/ApkManifestAction.java
index 3a8294e624..eacd339387 100644
--- a/src/main/java/com/google/devtools/build/lib/rules/android/ApkManifestAction.java
+++ b/src/main/java/com/google/devtools/build/lib/rules/android/ApkManifestAction.java
@@ -217,6 +217,7 @@ public final class ApkManifestAction extends AbstractFileWriteAction {
return ApkManifestOuterClass.Artifact.newBuilder()
.setExecRootPath(artifact.getExecPathString())
.setHash(ByteString.copyFrom(digest))
+ .setLabel(artifact.getOwnerLabel().toString())
.build();
}
diff --git a/src/main/protobuf/apk_manifest.proto b/src/main/protobuf/apk_manifest.proto
index 4b67a8c01c..1bb0f0026c 100644
--- a/src/main/protobuf/apk_manifest.proto
+++ b/src/main/protobuf/apk_manifest.proto
@@ -21,6 +21,8 @@ message Artifact {
// This path is relative to "bazel info execution_root"
string exec_root_path = 1;
bytes hash = 2;
+ // The label of the rule that produced this artifact.
+ string label = 3;
}
message NativeLib {