blob: 354c97a8a28cd051ec41fefc8e5d9e3c3964981e [file] [log] [blame]
Lalit Maganti83e712a2018-02-05 15:48:00 +00001// These targets are appended to the autogenerated Android.bp by tools/gen_android_bp.
Lalit Magantia88807d2018-03-05 18:21:38 +00002cc_library_static {
3 name: "perfetto_cts_deps",
Lalit Maganti83e712a2018-02-05 15:48:00 +00004 srcs: [
Lalit Maganti83e712a2018-02-05 15:48:00 +00005 "src/base/test/test_task_runner.cc",
Primiano Tuccide82dae2018-06-04 16:17:49 +02006 "src/traced/probes/ftrace/cpu_reader.cc",
7 "src/traced/probes/ftrace/event_info.cc",
8 "src/traced/probes/ftrace/format_parser.cc",
9 "src/traced/probes/ftrace/ftrace_controller.cc",
10 "src/traced/probes/ftrace/ftrace_procfs.cc",
11 "src/traced/probes/ftrace/proto_translation_table.cc",
Isabelle Taylord404ea12018-02-19 17:28:01 +000012 "src/traced/probes/probes_producer.cc",
Lalit Maganti83e712a2018-02-05 15:48:00 +000013 "test/end_to_end_integrationtest.cc",
Lalit Magantic4c3ceb2018-03-29 20:38:13 +010014 "test/fake_producer.cc",
15 "test/task_runner_thread.cc",
Primiano Tucci008cdb92019-07-19 19:52:41 +010016 "test/task_runner_thread_delegates.cc",
Lalit Magantic4c3ceb2018-03-29 20:38:13 +010017 "test/test_helper.cc",
Lalit Maganti83e712a2018-02-05 15:48:00 +000018 ],
Lalit Maganti83e712a2018-02-05 15:48:00 +000019 shared_libs: [
Lalit Maganti83e712a2018-02-05 15:48:00 +000020 "libprotobuf-cpp-lite",
21 ],
Lalit Magantia88807d2018-03-05 18:21:38 +000022 static_libs: [
Primiano Tucci106605c2019-01-08 21:12:58 +000023 "libgmock",
Lalit Maganti61681882018-03-14 15:29:01 +000024 "libgtest",
Lalit Magantia88807d2018-03-05 18:21:38 +000025 "perfetto_src_tracing_ipc",
Primiano Tucci07e104d2018-04-03 20:45:35 +020026 "perfetto_trace_protos",
Lalit Maganti83e712a2018-02-05 15:48:00 +000027 ],
Primiano Tucci8e627442019-08-28 07:58:38 +020028 defaults: [
29 "perfetto_defaults",
Lalit Maganti83e712a2018-02-05 15:48:00 +000030 ],
31}
32
Lalit Magantia88807d2018-03-05 18:21:38 +000033cc_library_static {
34 name: "perfetto_cts_jni_deps",
Lalit Maganti83e712a2018-02-05 15:48:00 +000035 srcs: [
Lalit Maganti83e712a2018-02-05 15:48:00 +000036 "src/base/test/test_task_runner.cc",
37 "test/fake_producer.cc",
Primiano Tucci008cdb92019-07-19 19:52:41 +010038 "test/task_runner_thread_delegates.cc",
Lalit Maganti83e712a2018-02-05 15:48:00 +000039 ],
40 shared_libs: [
Lalit Magantia88807d2018-03-05 18:21:38 +000041 "libprotobuf-cpp-lite",
Lalit Maganti83e712a2018-02-05 15:48:00 +000042 ],
Lalit Magantia88807d2018-03-05 18:21:38 +000043 static_libs: [
Lalit Maganti61681882018-03-14 15:29:01 +000044 "libgtest",
Lalit Magantia88807d2018-03-05 18:21:38 +000045 "perfetto_src_tracing_ipc",
46 ],
Primiano Tucci8e627442019-08-28 07:58:38 +020047 defaults: [
48 "perfetto_defaults",
Lalit Maganti83e712a2018-02-05 15:48:00 +000049 ],
50}
Lalit Maganti6820cb62018-10-05 13:34:22 +010051
Lalit Magantif5d666d2018-10-23 14:23:24 +010052java_library_host {
53 name: "perfetto_config-full",
Lalit Maganti6820cb62018-10-05 13:34:22 +010054 proto: {
Lalit Magantif5d666d2018-10-23 14:23:24 +010055 type: "full",
Lalit Maganti6820cb62018-10-05 13:34:22 +010056 },
57 srcs: [
58 "protos/perfetto/config/perfetto_config.proto",
59 ],
60}
Primiano Tucci0b651b82019-06-03 17:16:23 +010061
62// This sample target shows how to use the perfetto client API from within the
63// Android tree.
64cc_binary {
65 name: "libperfetto_client_example",
66 srcs: [
Primiano Tuccidd5ebc92019-07-25 01:09:37 +010067 "test/client_api_example.cc",
Primiano Tucci0b651b82019-06-03 17:16:23 +010068 ],
69 static_libs: [
70 "libperfetto_client_experimental",
71 "perfetto_src_tracing_ipc",
72 "perfetto_trace_protos",
73 ],
74 shared_libs: [
75 "libprotobuf-cpp-lite",
76 "liblog",
77 ],
Primiano Tucci0b651b82019-06-03 17:16:23 +010078 cflags: [
79 "-DGOOGLE_PROTOBUF_NO_RTTI",
80 "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
Primiano Tucci8e627442019-08-28 07:58:38 +020081 ],
82 defaults: [
83 "perfetto_defaults",
Primiano Tucci0b651b82019-06-03 17:16:23 +010084 ],
85}