perfetto: add build file generation script and build files
Bug: 127775946
Change-Id: I8ccbd66b5d17f7615fc22127fefce3cdf68041a4
diff --git a/BUILD.extras b/BUILD.extras
new file mode 100644
index 0000000..b4bf82c
--- /dev/null
+++ b/BUILD.extras
@@ -0,0 +1,37 @@
+genrule(
+ name = "trace_processor_shell_rule",
+ srcs = [
+ ":src_trace_processor_trace_processor_shell_host",
+ ],
+ outs = [
+ "trace_processor_shell",
+ ],
+ cmd = "cp $(location :src_trace_processor_trace_processor_shell_host) $@",
+ executable = 1,
+)
+
+gensignature(
+ name = "trace_processor_shell_sig",
+ srcs = [
+ ":trace_processor_shell",
+ ],
+)
+
+genrule(
+ name = "trace_to_text_rule",
+ srcs = [
+ ":tools_trace_to_text_trace_to_text_host",
+ ],
+ outs = [
+ "trace_to_text",
+ ],
+ cmd = "cp $(location :tools_trace_to_text_trace_to_text_host) $@",
+ executable = 1,
+)
+
+gensignature(
+ name = "trace_to_text_sig",
+ srcs = [
+ ":trace_to_text",
+ ],
+)