Changes for statsd integration
- Introduces a dedicated target for our protos.
This will be required by statsd for including
our protos in their config proto.
- Improves error handling when passing the wrong
cmdline arguments.
- Moves the creation of /data/misc/perfetto-traces
to the initrc.
Bug: 71743564
Change-Id: If61d833a57928ddcebcb49d0f82b2490e727b626
diff --git a/BUILD.gn b/BUILD.gn
index 7cc1af7..13a90b2 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -68,6 +68,14 @@
]
}
+ # Used by Android's statsd in /frameworks/base/cmds.
+ static_library("perfetto_protos_lite") {
+ deps = [
+ "gn:default_deps",
+ "protos:lite",
+ ]
+ }
+
if (monolithic_binaries) {
libtraced_shared_target_type = "source_set"
} else {