aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-10-20 19:22:42 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-10-20 19:22:42 +0000
commitabbe8f91c0a918d892072fb44e2c79aef25ffe4e (patch)
tree5c82ab31907ed64cb0b61493d4cb6548a2f9967c
parent3e2cdbe0fda25defe1abf99d05e2f462120db5d4 (diff)
parentf3cab41d9aeb83f88e61b1a1f68ccb91d0fb841e (diff)
downloadchromium-trace-abbe8f91c0a918d892072fb44e2c79aef25ffe4e.tar.gz
Snap for 7842029 from f3cab41d9aeb83f88e61b1a1f68ccb91d0fb841e to simpleperf-release
Change-Id: I41c8ed5b4feab412176e99d0f7275fd21ba43428
-rw-r--r--Android.bp19
1 files changed, 19 insertions, 0 deletions
diff --git a/Android.bp b/Android.bp
new file mode 100644
index 00000000..95dc658d
--- /dev/null
+++ b/Android.bp
@@ -0,0 +1,19 @@
+genrule {
+ name: "systrace-sdk-zip",
+ visibility: ["//development/build"],
+ tools: ["soong_zip"],
+ // TODO: Use $(in) or similar, but bash cmdline limits are a problem
+ // (Use implement a version of $(in) that works with rspfile?)
+ cmd: "$(location soong_zip) -o $(out) -P systrace -C $$(dirname $(location systrace.py)) " +
+ "-D $$(dirname $(location systrace.py))/catapult " +
+ "-f $(location systrace.py) " +
+ "-f $(location NOTICE) " +
+ "-f $(location UPSTREAM_REVISION)",
+ srcs: [
+ "catapult/**/*",
+ "systrace.py",
+ "NOTICE",
+ "UPSTREAM_REVISION",
+ ],
+ out: ["output.zip"],
+}