aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2021-10-20 19:37:27 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2021-10-20 19:37:27 +0000
commitfe751c0f2d72f364d0de9f5ad0490a78a4a36534 (patch)
tree5c82ab31907ed64cb0b61493d4cb6548a2f9967c
parent3e2cdbe0fda25defe1abf99d05e2f462120db5d4 (diff)
parent73c7c3e4638ffdd0bbc79aa904f482f3eb1f8f2c (diff)
downloadchromium-trace-fe751c0f2d72f364d0de9f5ad0490a78a4a36534.tar.gz
Merge "Snap for 7842029 from f3cab41d9aeb83f88e61b1a1f68ccb91d0fb841e to simpleperf-release" into simpleperf-release
-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"],
+}