perfetto: fix cts binary not running integration tests
Change-Id: I6f017a12cbc40f95266be0765c20a76e1d21c455
diff --git a/Android.bp b/Android.bp
index 16fefe9..aa0101a 100644
--- a/Android.bp
+++ b/Android.bp
@@ -3120,7 +3120,9 @@
"src/ftrace_reader/ftrace_procfs.cc",
"src/ftrace_reader/proto_translation_table.cc",
"src/traced/probes/probes_producer.cc",
+ "test/fake_producer.cc",
"test/fake_consumer.cc",
+ "test/task_runner_thread.cc",
"test/end_to_end_integrationtest.cc",
],
export_include_dirs: [
@@ -3133,6 +3135,9 @@
"perfetto_src_tracing_ipc",
"libgtest_prod",
],
+ cflags: [
+ "-DPERFETTO_BUILD_WITH_ANDROID",
+ ],
}
cc_library_static {
@@ -3151,4 +3156,7 @@
static_libs: [
"perfetto_src_tracing_ipc",
],
+ cflags: [
+ "-DPERFETTO_BUILD_WITH_ANDROID",
+ ],
}
\ No newline at end of file