blob: ef14e452d8188dbf81c9beb9271288c88ca9a227 [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.
Primiano Tuccif9551982019-09-06 13:48:01 +01002
Lalit Magantia88807d2018-03-05 18:21:38 +00003cc_library_static {
4 name: "perfetto_cts_deps",
Lalit Maganti83e712a2018-02-05 15:48:00 +00005 srcs: [
Lalit Maganti83e712a2018-02-05 15:48:00 +00006 "src/base/test/test_task_runner.cc",
Primiano Tuccide82dae2018-06-04 16:17:49 +02007 "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 Taylord404ea12018-02-19 17:28:01 +000013 "src/traced/probes/probes_producer.cc",
Lalit Maganti83e712a2018-02-05 15:48:00 +000014 "test/end_to_end_integrationtest.cc",
Lalit Magantic4c3ceb2018-03-29 20:38:13 +010015 "test/fake_producer.cc",
16 "test/task_runner_thread.cc",
Primiano Tucci008cdb92019-07-19 19:52:41 +010017 "test/task_runner_thread_delegates.cc",
Lalit Magantic4c3ceb2018-03-29 20:38:13 +010018 "test/test_helper.cc",
Lalit Maganti83e712a2018-02-05 15:48:00 +000019 ],
Lalit Maganti83e712a2018-02-05 15:48:00 +000020 shared_libs: [
Lalit Maganti83e712a2018-02-05 15:48:00 +000021 "libprotobuf-cpp-lite",
22 ],
Lalit Magantia88807d2018-03-05 18:21:38 +000023 static_libs: [
Primiano Tucci106605c2019-01-08 21:12:58 +000024 "libgmock",
Lalit Maganti61681882018-03-14 15:29:01 +000025 "libgtest",
Primiano Tuccif9551982019-09-06 13:48:01 +010026 "libperfetto_client_experimental",
Primiano Tucci07e104d2018-04-03 20:45:35 +020027 "perfetto_trace_protos",
Lalit Maganti83e712a2018-02-05 15:48:00 +000028 ],
Primiano Tucci8e627442019-08-28 07:58:38 +020029 defaults: [
30 "perfetto_defaults",
Lalit Maganti83e712a2018-02-05 15:48:00 +000031 ],
32}
33
Lalit Magantia88807d2018-03-05 18:21:38 +000034cc_library_static {
35 name: "perfetto_cts_jni_deps",
Lalit Maganti83e712a2018-02-05 15:48:00 +000036 srcs: [
Lalit Maganti83e712a2018-02-05 15:48:00 +000037 "src/base/test/test_task_runner.cc",
38 "test/fake_producer.cc",
Primiano Tucci008cdb92019-07-19 19:52:41 +010039 "test/task_runner_thread_delegates.cc",
Lalit Maganti83e712a2018-02-05 15:48:00 +000040 ],
41 shared_libs: [
Lalit Magantia88807d2018-03-05 18:21:38 +000042 "libprotobuf-cpp-lite",
Lalit Maganti83e712a2018-02-05 15:48:00 +000043 ],
Lalit Magantia88807d2018-03-05 18:21:38 +000044 static_libs: [
Lalit Maganti61681882018-03-14 15:29:01 +000045 "libgtest",
Primiano Tuccif9551982019-09-06 13:48:01 +010046 "libperfetto_client_experimental",
Lalit Magantia88807d2018-03-05 18:21:38 +000047 ],
Primiano Tucci8e627442019-08-28 07:58:38 +020048 defaults: [
49 "perfetto_defaults",
Lalit Maganti83e712a2018-02-05 15:48:00 +000050 ],
51}
Lalit Maganti6820cb62018-10-05 13:34:22 +010052
Lalit Magantif5d666d2018-10-23 14:23:24 +010053java_library_host {
54 name: "perfetto_config-full",
Lalit Maganti6820cb62018-10-05 13:34:22 +010055 proto: {
Lalit Magantif5d666d2018-10-23 14:23:24 +010056 type: "full",
Lalit Maganti6820cb62018-10-05 13:34:22 +010057 },
58 srcs: [
59 "protos/perfetto/config/perfetto_config.proto",
60 ],
61}
Primiano Tucci0b651b82019-06-03 17:16:23 +010062
63// This sample target shows how to use the perfetto client API from within the
64// Android tree.
65cc_binary {
66 name: "libperfetto_client_example",
67 srcs: [
Primiano Tuccidd5ebc92019-07-25 01:09:37 +010068 "test/client_api_example.cc",
Primiano Tucci0b651b82019-06-03 17:16:23 +010069 ],
70 static_libs: [
71 "libperfetto_client_experimental",
Primiano Tucci0b651b82019-06-03 17:16:23 +010072 "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}