aboutsummaryrefslogtreecommitdiff
path: root/Android.bp
diff options
context:
space:
mode:
Diffstat (limited to 'Android.bp')
-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"],
+}