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 { |
Lalit Maganti | a88807d | 2018-03-05 18:21:38 +0000 | [diff] [blame] | 4 | name: "perfetto_cts_jni_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", |
| 7 | "test/fake_producer.cc", |
Primiano Tucci | 008cdb9 | 2019-07-19 19:52:41 +0100 | [diff] [blame] | 8 | "test/task_runner_thread_delegates.cc", |
Lalit Maganti | 83e712a | 2018-02-05 15:48:00 +0000 | [diff] [blame] | 9 | ], |
| 10 | shared_libs: [ |
Lalit Maganti | a88807d | 2018-03-05 18:21:38 +0000 | [diff] [blame] | 11 | "libprotobuf-cpp-lite", |
Lalit Maganti | 83e712a | 2018-02-05 15:48:00 +0000 | [diff] [blame] | 12 | ], |
Lalit Maganti | a88807d | 2018-03-05 18:21:38 +0000 | [diff] [blame] | 13 | static_libs: [ |
Lalit Maganti | 6168188 | 2018-03-14 15:29:01 +0000 | [diff] [blame] | 14 | "libgtest", |
Primiano Tucci | f955198 | 2019-09-06 13:48:01 +0100 | [diff] [blame] | 15 | "libperfetto_client_experimental", |
Lalit Maganti | a88807d | 2018-03-05 18:21:38 +0000 | [diff] [blame] | 16 | ], |
Primiano Tucci | 8e62744 | 2019-08-28 07:58:38 +0200 | [diff] [blame] | 17 | defaults: [ |
| 18 | "perfetto_defaults", |
Lalit Maganti | 83e712a | 2018-02-05 15:48:00 +0000 | [diff] [blame] | 19 | ], |
| 20 | } |
Lalit Maganti | 6820cb6 | 2018-10-05 13:34:22 +0100 | [diff] [blame] | 21 | |
Lalit Maganti | f5d666d | 2018-10-23 14:23:24 +0100 | [diff] [blame] | 22 | java_library_host { |
| 23 | name: "perfetto_config-full", |
Lalit Maganti | 6820cb6 | 2018-10-05 13:34:22 +0100 | [diff] [blame] | 24 | proto: { |
Lalit Maganti | f5d666d | 2018-10-23 14:23:24 +0100 | [diff] [blame] | 25 | type: "full", |
Lalit Maganti | 6820cb6 | 2018-10-05 13:34:22 +0100 | [diff] [blame] | 26 | }, |
| 27 | srcs: [ |
| 28 | "protos/perfetto/config/perfetto_config.proto", |
| 29 | ], |
| 30 | } |
Primiano Tucci | 0b651b8 | 2019-06-03 17:16:23 +0100 | [diff] [blame] | 31 | |
| 32 | // This sample target shows how to use the perfetto client API from within the |
| 33 | // Android tree. |
| 34 | cc_binary { |
| 35 | name: "libperfetto_client_example", |
| 36 | srcs: [ |
Primiano Tucci | dd5ebc9 | 2019-07-25 01:09:37 +0100 | [diff] [blame] | 37 | "test/client_api_example.cc", |
Primiano Tucci | 0b651b8 | 2019-06-03 17:16:23 +0100 | [diff] [blame] | 38 | ], |
| 39 | static_libs: [ |
| 40 | "libperfetto_client_experimental", |
Primiano Tucci | 0b651b8 | 2019-06-03 17:16:23 +0100 | [diff] [blame] | 41 | "perfetto_trace_protos", |
| 42 | ], |
| 43 | shared_libs: [ |
| 44 | "libprotobuf-cpp-lite", |
| 45 | "liblog", |
| 46 | ], |
Primiano Tucci | 0b651b8 | 2019-06-03 17:16:23 +0100 | [diff] [blame] | 47 | cflags: [ |
| 48 | "-DGOOGLE_PROTOBUF_NO_RTTI", |
| 49 | "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER", |
Primiano Tucci | 8e62744 | 2019-08-28 07:58:38 +0200 | [diff] [blame] | 50 | ], |
| 51 | defaults: [ |
| 52 | "perfetto_defaults", |
Primiano Tucci | 0b651b8 | 2019-06-03 17:16:23 +0100 | [diff] [blame] | 53 | ], |
| 54 | } |
Hector Dearman | 92d7d11 | 2019-12-05 15:19:57 +0000 | [diff] [blame] | 55 | |
| 56 | cc_library_static { |
| 57 | name: "libstatslog_perfetto", |
| 58 | generated_sources: ["statslog_perfetto.cpp"], |
| 59 | generated_headers: ["statslog_perfetto.h"], |
| 60 | cflags: [ |
| 61 | "-Wall", |
| 62 | "-Werror", |
| 63 | ], |
| 64 | export_generated_headers: ["statslog_perfetto.h"], |
| 65 | shared_libs: [ |
| 66 | "libcutils", |
| 67 | "liblog", |
| 68 | "libstatssocket", |
| 69 | "libutils", |
| 70 | ], |
| 71 | } |
| 72 | |
| 73 | genrule { |
| 74 | name: "statslog_perfetto.h", |
| 75 | tools: ["stats-log-api-gen"], |
| 76 | cmd: "$(location stats-log-api-gen) --header $(genDir)/statslog_perfetto.h --module perfetto --namespace perfetto,android_internal", |
| 77 | out: [ |
| 78 | "statslog_perfetto.h", |
| 79 | ], |
| 80 | } |
| 81 | |
| 82 | genrule { |
| 83 | name: "statslog_perfetto.cpp", |
| 84 | tools: ["stats-log-api-gen"], |
| 85 | cmd: "$(location stats-log-api-gen) --cpp $(genDir)/statslog_perfetto.cpp --module perfetto --namespace perfetto,android_internal --importHeader statslog_perfetto.h", |
| 86 | out: [ |
| 87 | "statslog_perfetto.cpp", |
| 88 | ], |
| 89 | } |