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. |
| 2 | // TODO(lalitm): find a better way to do this sharing. |
| 3 | |
| 4 | // TODO(lalitm): uncomment these when the CTS tests are to be enabled. |
| 5 | /* |
| 6 | cc_test { |
| 7 | name: "CtsPerfettoTestCases", |
| 8 | srcs: [ |
| 9 | "src/base/android_task_runner.cc", |
| 10 | "src/base/test/test_task_runner.cc", |
| 11 | "src/ftrace_reader/cpu_reader.cc", |
| 12 | "src/ftrace_reader/event_info.cc", |
| 13 | "src/ftrace_reader/format_parser.cc", |
| 14 | "src/ftrace_reader/ftrace_controller.cc", |
| 15 | "src/ftrace_reader/ftrace_procfs.cc", |
| 16 | "src/ftrace_reader/proto_translation_table.cc", |
Isabelle Taylor | d404ea1 | 2018-02-19 17:28:01 +0000 | [diff] [blame] | 17 | "src/traced/probes/probes_producer.cc", |
Lalit Maganti | 83e712a | 2018-02-05 15:48:00 +0000 | [diff] [blame] | 18 | "test/fake_consumer.cc", |
| 19 | "test/end_to_end_integrationtest.cc", |
| 20 | "test/end_to_end_integrationtest_cts.cc", |
| 21 | ], |
| 22 | static_libs: [ |
| 23 | "libgmock", |
| 24 | "libgtest", |
| 25 | "libgtest_main", |
| 26 | "perfetto_src_tracing_ipc", |
| 27 | ], |
| 28 | shared_libs: [ |
| 29 | "libandroid", |
| 30 | "liblog", |
| 31 | "libprotobuf-cpp-lite", |
| 32 | ], |
| 33 | test_suites: [ |
| 34 | "cts", |
| 35 | "vts", |
| 36 | "general-tests", |
| 37 | ], |
| 38 | compile_multilib: "both", |
| 39 | multilib: { |
| 40 | lib32: { |
| 41 | suffix: "32", |
| 42 | }, |
| 43 | lib64: { |
| 44 | suffix: "64", |
| 45 | }, |
| 46 | }, |
| 47 | cflags: [ |
| 48 | "-DPERFETTO_BUILD_WITH_ANDROID", |
| 49 | ], |
| 50 | } |
| 51 | |
| 52 | cc_library_shared { |
| 53 | name: "libperfettocts_jni", |
| 54 | srcs: [ |
| 55 | "src/base/android_task_runner.cc", |
| 56 | "src/base/test/test_task_runner.cc", |
| 57 | "test/fake_producer.cc", |
| 58 | "test/cts/producer/jni/fake_producer_jni.cc", |
| 59 | ], |
| 60 | static_libs: [ |
| 61 | "libprotobuf-cpp-lite", |
| 62 | "perfetto_src_tracing_ipc", |
| 63 | ], |
| 64 | shared_libs: [ |
| 65 | "libandroid", |
| 66 | "liblog", |
| 67 | "libnativehelper_compat_libc++", |
| 68 | ], |
| 69 | compile_multilib: "both", |
| 70 | stl: "libc++_static", |
| 71 | cflags: [ |
| 72 | "-DPERFETTO_BUILD_WITH_ANDROID", |
| 73 | ], |
| 74 | } |
| 75 | */ |