Lalit Maganti | 83e712a | 2018-02-05 15:48:00 +0000 | [diff] [blame] | 1 | // These targets are appended to the autogenerated Android.bp by tools/gen_android_bp. |
Primiano Tucci | f955198 | 2019-09-06 13:48:01 +0100 | [diff] [blame] | 2 | |
Lalit Maganti | a88807d | 2018-03-05 18:21:38 +0000 | [diff] [blame] | 3 | cc_library_static { |
| 4 | name: "perfetto_cts_deps", |
Lalit Maganti | 83e712a | 2018-02-05 15:48:00 +0000 | [diff] [blame] | 5 | srcs: [ |
Lalit Maganti | 83e712a | 2018-02-05 15:48:00 +0000 | [diff] [blame] | 6 | "src/base/test/test_task_runner.cc", |
Primiano Tucci | de82dae | 2018-06-04 16:17:49 +0200 | [diff] [blame] | 7 | "src/traced/probes/ftrace/cpu_reader.cc", |
| 8 | "src/traced/probes/ftrace/event_info.cc", |
| 9 | "src/traced/probes/ftrace/format_parser.cc", |
| 10 | "src/traced/probes/ftrace/ftrace_controller.cc", |
| 11 | "src/traced/probes/ftrace/ftrace_procfs.cc", |
| 12 | "src/traced/probes/ftrace/proto_translation_table.cc", |
Isabelle Taylor | d404ea1 | 2018-02-19 17:28:01 +0000 | [diff] [blame] | 13 | "src/traced/probes/probes_producer.cc", |
Lalit Maganti | 83e712a | 2018-02-05 15:48:00 +0000 | [diff] [blame] | 14 | "test/end_to_end_integrationtest.cc", |
Lalit Maganti | c4c3ceb | 2018-03-29 20:38:13 +0100 | [diff] [blame] | 15 | "test/fake_producer.cc", |
| 16 | "test/task_runner_thread.cc", |
Primiano Tucci | 008cdb9 | 2019-07-19 19:52:41 +0100 | [diff] [blame] | 17 | "test/task_runner_thread_delegates.cc", |
Lalit Maganti | c4c3ceb | 2018-03-29 20:38:13 +0100 | [diff] [blame] | 18 | "test/test_helper.cc", |
Lalit Maganti | 83e712a | 2018-02-05 15:48:00 +0000 | [diff] [blame] | 19 | ], |
Lalit Maganti | 83e712a | 2018-02-05 15:48:00 +0000 | [diff] [blame] | 20 | shared_libs: [ |
Lalit Maganti | 83e712a | 2018-02-05 15:48:00 +0000 | [diff] [blame] | 21 | "libprotobuf-cpp-lite", |
| 22 | ], |
Lalit Maganti | a88807d | 2018-03-05 18:21:38 +0000 | [diff] [blame] | 23 | static_libs: [ |
Primiano Tucci | 106605c | 2019-01-08 21:12:58 +0000 | [diff] [blame] | 24 | "libgmock", |
Lalit Maganti | 6168188 | 2018-03-14 15:29:01 +0000 | [diff] [blame] | 25 | "libgtest", |
Primiano Tucci | f955198 | 2019-09-06 13:48:01 +0100 | [diff] [blame] | 26 | "libperfetto_client_experimental", |
Primiano Tucci | 07e104d | 2018-04-03 20:45:35 +0200 | [diff] [blame] | 27 | "perfetto_trace_protos", |
Lalit Maganti | 83e712a | 2018-02-05 15:48:00 +0000 | [diff] [blame] | 28 | ], |
Primiano Tucci | 8e62744 | 2019-08-28 07:58:38 +0200 | [diff] [blame] | 29 | defaults: [ |
| 30 | "perfetto_defaults", |
Lalit Maganti | 83e712a | 2018-02-05 15:48:00 +0000 | [diff] [blame] | 31 | ], |
| 32 | } |
| 33 | |
Lalit Maganti | a88807d | 2018-03-05 18:21:38 +0000 | [diff] [blame] | 34 | cc_library_static { |
| 35 | name: "perfetto_cts_jni_deps", |
Lalit Maganti | 83e712a | 2018-02-05 15:48:00 +0000 | [diff] [blame] | 36 | srcs: [ |
Lalit Maganti | 83e712a | 2018-02-05 15:48:00 +0000 | [diff] [blame] | 37 | "src/base/test/test_task_runner.cc", |
| 38 | "test/fake_producer.cc", |
Primiano Tucci | 008cdb9 | 2019-07-19 19:52:41 +0100 | [diff] [blame] | 39 | "test/task_runner_thread_delegates.cc", |
Lalit Maganti | 83e712a | 2018-02-05 15:48:00 +0000 | [diff] [blame] | 40 | ], |
| 41 | shared_libs: [ |
Lalit Maganti | a88807d | 2018-03-05 18:21:38 +0000 | [diff] [blame] | 42 | "libprotobuf-cpp-lite", |
Lalit Maganti | 83e712a | 2018-02-05 15:48:00 +0000 | [diff] [blame] | 43 | ], |
Lalit Maganti | a88807d | 2018-03-05 18:21:38 +0000 | [diff] [blame] | 44 | static_libs: [ |
Lalit Maganti | 6168188 | 2018-03-14 15:29:01 +0000 | [diff] [blame] | 45 | "libgtest", |
Primiano Tucci | f955198 | 2019-09-06 13:48:01 +0100 | [diff] [blame] | 46 | "libperfetto_client_experimental", |
Lalit Maganti | a88807d | 2018-03-05 18:21:38 +0000 | [diff] [blame] | 47 | ], |
Primiano Tucci | 8e62744 | 2019-08-28 07:58:38 +0200 | [diff] [blame] | 48 | defaults: [ |
| 49 | "perfetto_defaults", |
Lalit Maganti | 83e712a | 2018-02-05 15:48:00 +0000 | [diff] [blame] | 50 | ], |
| 51 | } |
Lalit Maganti | 6820cb6 | 2018-10-05 13:34:22 +0100 | [diff] [blame] | 52 | |
Lalit Maganti | f5d666d | 2018-10-23 14:23:24 +0100 | [diff] [blame] | 53 | java_library_host { |
| 54 | name: "perfetto_config-full", |
Lalit Maganti | 6820cb6 | 2018-10-05 13:34:22 +0100 | [diff] [blame] | 55 | proto: { |
Lalit Maganti | f5d666d | 2018-10-23 14:23:24 +0100 | [diff] [blame] | 56 | type: "full", |
Lalit Maganti | 6820cb6 | 2018-10-05 13:34:22 +0100 | [diff] [blame] | 57 | }, |
| 58 | srcs: [ |
| 59 | "protos/perfetto/config/perfetto_config.proto", |
| 60 | ], |
| 61 | } |
Primiano Tucci | 0b651b8 | 2019-06-03 17:16:23 +0100 | [diff] [blame] | 62 | |
| 63 | // This sample target shows how to use the perfetto client API from within the |
| 64 | // Android tree. |
| 65 | cc_binary { |
| 66 | name: "libperfetto_client_example", |
| 67 | srcs: [ |
Primiano Tucci | dd5ebc9 | 2019-07-25 01:09:37 +0100 | [diff] [blame] | 68 | "test/client_api_example.cc", |
Primiano Tucci | 0b651b8 | 2019-06-03 17:16:23 +0100 | [diff] [blame] | 69 | ], |
| 70 | static_libs: [ |
| 71 | "libperfetto_client_experimental", |
Primiano Tucci | 0b651b8 | 2019-06-03 17:16:23 +0100 | [diff] [blame] | 72 | "perfetto_trace_protos", |
| 73 | ], |
| 74 | shared_libs: [ |
| 75 | "libprotobuf-cpp-lite", |
| 76 | "liblog", |
| 77 | ], |
Primiano Tucci | 0b651b8 | 2019-06-03 17:16:23 +0100 | [diff] [blame] | 78 | cflags: [ |
| 79 | "-DGOOGLE_PROTOBUF_NO_RTTI", |
| 80 | "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER", |
Primiano Tucci | 8e62744 | 2019-08-28 07:58:38 +0200 | [diff] [blame] | 81 | ], |
| 82 | defaults: [ |
| 83 | "perfetto_defaults", |
Primiano Tucci | 0b651b8 | 2019-06-03 17:16:23 +0100 | [diff] [blame] | 84 | ], |
| 85 | } |