blob: a2db5edf6fbf143bd3db59a71a458c5460259db5 [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: [
5 "src/base/android_task_runner.cc",
6 "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 Magantia88807d2018-03-05 18:21:38 +000020 export_include_dirs: [
21 ".",
Lalit Maganti83e712a2018-02-05 15:48:00 +000022 ],
23 shared_libs: [
Lalit Maganti83e712a2018-02-05 15:48:00 +000024 "libprotobuf-cpp-lite",
25 ],
Lalit Magantia88807d2018-03-05 18:21:38 +000026 static_libs: [
Primiano Tucci106605c2019-01-08 21:12:58 +000027 "libgmock",
Lalit Maganti61681882018-03-14 15:29:01 +000028 "libgtest",
Lalit Magantia88807d2018-03-05 18:21:38 +000029 "perfetto_src_tracing_ipc",
Primiano Tucci07e104d2018-04-03 20:45:35 +020030 "perfetto_trace_protos",
Lalit Maganti83e712a2018-02-05 15:48:00 +000031 ],
Lalit Maganti83e712a2018-02-05 15:48:00 +000032 cflags: [
33 "-DPERFETTO_BUILD_WITH_ANDROID",
34 ],
35}
36
Lalit Magantia88807d2018-03-05 18:21:38 +000037cc_library_static {
38 name: "perfetto_cts_jni_deps",
Lalit Maganti83e712a2018-02-05 15:48:00 +000039 srcs: [
40 "src/base/android_task_runner.cc",
41 "src/base/test/test_task_runner.cc",
42 "test/fake_producer.cc",
Primiano Tucci008cdb92019-07-19 19:52:41 +010043 "test/task_runner_thread_delegates.cc",
Lalit Maganti83e712a2018-02-05 15:48:00 +000044 ],
45 shared_libs: [
Lalit Magantia88807d2018-03-05 18:21:38 +000046 "libprotobuf-cpp-lite",
Lalit Maganti83e712a2018-02-05 15:48:00 +000047 ],
Lalit Magantia88807d2018-03-05 18:21:38 +000048 export_include_dirs: [
49 ".",
50 ],
51 static_libs: [
Lalit Maganti61681882018-03-14 15:29:01 +000052 "libgtest",
Lalit Magantia88807d2018-03-05 18:21:38 +000053 "perfetto_src_tracing_ipc",
54 ],
Lalit Maganti83e712a2018-02-05 15:48:00 +000055 cflags: [
56 "-DPERFETTO_BUILD_WITH_ANDROID",
57 ],
58}
Lalit Maganti6820cb62018-10-05 13:34:22 +010059
Lalit Magantif5d666d2018-10-23 14:23:24 +010060java_library_host {
61 name: "perfetto_config-full",
Lalit Maganti6820cb62018-10-05 13:34:22 +010062 proto: {
Lalit Magantif5d666d2018-10-23 14:23:24 +010063 type: "full",
Lalit Maganti6820cb62018-10-05 13:34:22 +010064 },
65 srcs: [
66 "protos/perfetto/config/perfetto_config.proto",
67 ],
68}
Primiano Tucci0b651b82019-06-03 17:16:23 +010069
70// This sample target shows how to use the perfetto client API from within the
71// Android tree.
72cc_binary {
73 name: "libperfetto_client_example",
74 srcs: [
75 "test/android_client_api_example.cc",
76 ],
77 static_libs: [
78 "libperfetto_client_experimental",
79 "perfetto_src_tracing_ipc",
80 "perfetto_trace_protos",
81 ],
82 shared_libs: [
83 "libprotobuf-cpp-lite",
84 "liblog",
85 ],
86 local_include_dirs: [
87 "include",
88 ],
89 cflags: [
90 "-DGOOGLE_PROTOBUF_NO_RTTI",
91 "-DGOOGLE_PROTOBUF_NO_STATIC_INITIALIZER",
92 "-DPERFETTO_BUILD_WITH_ANDROID",
93 ],
94}