From aedfc8aec2d086a3400bb9773f59f5d5e3cbfc67 Mon Sep 17 00:00:00 2001 From: Alex Humesky Date: Mon, 20 Jun 2016 21:01:54 +0000 Subject: Adds the label of the rule that produced the artifact to the apk manifest. -- MOS_MIGRATED_REVID=125376859 --- .../com/google/devtools/build/lib/rules/android/ApkManifestAction.java | 1 + src/main/protobuf/apk_manifest.proto | 2 ++ 2 files changed, 3 insertions(+) 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 { -- cgit v1.2.3