perfetto: add script to strip binary in Android tree
Change-Id: I75c7cda5eba7de74d6395d10f19dacaa6a4ec3dc
diff --git a/Android.bp b/Android.bp
index 1639e3e..7e336d0 100644
--- a/Android.bp
+++ b/Android.bp
@@ -8091,4 +8091,30 @@
out: [
"statslog_perfetto.cpp",
],
+}
+
+cc_genrule {
+ name: "trace_processor_shell.stripped",
+ device_supported: false,
+ host_supported: true,
+ cmd: "$(location tools/strip_android_host_binary.py) $(in) -o $(out)",
+ enabled: false,
+ compile_multilib: "64",
+ tool_files: [
+ "tools/strip_android_host_binary.py",
+ ],
+ dist: {
+ targets: [
+ "sdk_repo",
+ ],
+ },
+ target: {
+ linux: {
+ out: [
+ "trace_processor_shell.stripped",
+ ],
+ srcs: [":trace_processor_shell"],
+ enabled: true,
+ },
+ },
}
\ No newline at end of file