Jack He | c27d257 | 2018-07-25 12:02:22 -0700 | [diff] [blame] | 1 | cc_library_static { |
| 2 | name: "libbt-common", |
Hansong Zhang | 7972cd5 | 2018-12-12 14:52:00 -0800 | [diff] [blame] | 3 | defaults: [ |
| 4 | "fluoride_defaults", |
| 5 | "clang_file_coverage", |
| 6 | ], |
Jack He | c27d257 | 2018-07-25 12:02:22 -0700 | [diff] [blame] | 7 | host_supported: true, |
Jack He | 959bc33 | 2018-08-15 12:38:37 -0700 | [diff] [blame] | 8 | include_dirs: [ |
| 9 | "system/bt", |
| 10 | "system/bt/stack/include", |
| 11 | ], |
Jack He | c27d257 | 2018-07-25 12:02:22 -0700 | [diff] [blame] | 12 | srcs: [ |
Jack He | 78b69d9 | 2018-11-16 02:59:43 -0800 | [diff] [blame] | 13 | "address_obfuscator.cc", |
Jack He | c27d257 | 2018-07-25 12:02:22 -0700 | [diff] [blame] | 14 | "message_loop_thread.cc", |
Jack He | 959bc33 | 2018-08-15 12:38:37 -0700 | [diff] [blame] | 15 | "metrics.cc", |
Jakub Pawlowski | 5cf0304 | 2018-12-03 16:50:40 +0100 | [diff] [blame] | 16 | "once_timer.cc", |
| 17 | "repeating_timer.cc", |
Jack He | 959bc33 | 2018-08-15 12:38:37 -0700 | [diff] [blame] | 18 | "time_util.cc", |
| 19 | ], |
Jack He | 78b69d9 | 2018-11-16 02:59:43 -0800 | [diff] [blame] | 20 | shared_libs: [ |
| 21 | "libcrypto", |
| 22 | ], |
Jack He | 959bc33 | 2018-08-15 12:38:37 -0700 | [diff] [blame] | 23 | static_libs: [ |
| 24 | "libbt-protos-lite", |
Jack He | c27d257 | 2018-07-25 12:02:22 -0700 | [diff] [blame] | 25 | ], |
| 26 | } |
| 27 | |
| 28 | cc_test { |
| 29 | name: "bluetooth_test_common", |
| 30 | test_suites: ["device-tests"], |
Hansong Zhang | 7972cd5 | 2018-12-12 14:52:00 -0800 | [diff] [blame] | 31 | defaults: [ |
| 32 | "fluoride_defaults", |
| 33 | "clang_coverage_bin", |
| 34 | ], |
Jack He | c27d257 | 2018-07-25 12:02:22 -0700 | [diff] [blame] | 35 | host_supported: true, |
Jack He | 959bc33 | 2018-08-15 12:38:37 -0700 | [diff] [blame] | 36 | include_dirs: [ |
| 37 | "system/bt", |
| 38 | "system/bt/stack/include", |
| 39 | ], |
Jack He | c27d257 | 2018-07-25 12:02:22 -0700 | [diff] [blame] | 40 | srcs : [ |
Jack He | 78b69d9 | 2018-11-16 02:59:43 -0800 | [diff] [blame] | 41 | "address_obfuscator_unittest.cc", |
Jack He | 959bc33 | 2018-08-15 12:38:37 -0700 | [diff] [blame] | 42 | "leaky_bonded_queue_unittest.cc", |
| 43 | "message_loop_thread_unittest.cc", |
| 44 | "metrics_unittest.cc", |
Jakub Pawlowski | 5cf0304 | 2018-12-03 16:50:40 +0100 | [diff] [blame] | 45 | "once_timer_unittest.cc", |
| 46 | "repeating_timer_unittest.cc", |
Hansong Zhang | df14c99 | 2018-10-04 15:04:18 -0700 | [diff] [blame] | 47 | "state_machine_unittest.cc", |
Jack He | 959bc33 | 2018-08-15 12:38:37 -0700 | [diff] [blame] | 48 | "time_util_unittest.cc", |
Jakub Pawlowski | 23478f7 | 2018-08-08 16:32:44 +0200 | [diff] [blame] | 49 | "id_generator_unittest.cc", |
Jack He | 959bc33 | 2018-08-15 12:38:37 -0700 | [diff] [blame] | 50 | ], |
| 51 | shared_libs: [ |
| 52 | "libprotobuf-cpp-lite", |
Jack He | 78b69d9 | 2018-11-16 02:59:43 -0800 | [diff] [blame] | 53 | "libcrypto", |
Jack He | c27d257 | 2018-07-25 12:02:22 -0700 | [diff] [blame] | 54 | ], |
| 55 | static_libs : [ |
Jack He | 959bc33 | 2018-08-15 12:38:37 -0700 | [diff] [blame] | 56 | "libgmock", |
Jack He | c27d257 | 2018-07-25 12:02:22 -0700 | [diff] [blame] | 57 | "libbt-common", |
Jack He | 959bc33 | 2018-08-15 12:38:37 -0700 | [diff] [blame] | 58 | "libbt-protos-lite", |
| 59 | ], |
| 60 | sanitize: { |
| 61 | cfi: false, |
| 62 | }, |
Jack He | c27d257 | 2018-07-25 12:02:22 -0700 | [diff] [blame] | 63 | } |
| 64 | |
| 65 | cc_test { |
| 66 | name: "net_test_performance", |
| 67 | defaults: ["fluoride_defaults"], |
Dan Shi | 491407d | 2019-01-10 10:55:23 -0800 | [diff] [blame] | 68 | test_suites: ["device-tests"], |
Jack He | c27d257 | 2018-07-25 12:02:22 -0700 | [diff] [blame] | 69 | include_dirs: ["system/bt"], |
| 70 | host_supported: true, |
| 71 | srcs: [ |
| 72 | "test/thread_performance_test.cc", |
| 73 | ], |
| 74 | shared_libs: [ |
| 75 | "liblog", |
| 76 | ], |
| 77 | static_libs: [ |
| 78 | "libgmock", |
| 79 | "libosi", |
| 80 | "libbt-common" |
| 81 | ], |
| 82 | } |
| 83 | |
| 84 | cc_benchmark { |
| 85 | name: "bluetooth_benchmark_thread_performance", |
Hansong Zhang | 7972cd5 | 2018-12-12 14:52:00 -0800 | [diff] [blame] | 86 | defaults: [ |
| 87 | "fluoride_defaults", |
| 88 | ], |
| 89 | host_supported: true, |
Jack He | c27d257 | 2018-07-25 12:02:22 -0700 | [diff] [blame] | 90 | include_dirs: ["system/bt"], |
Jack He | c27d257 | 2018-07-25 12:02:22 -0700 | [diff] [blame] | 91 | srcs: [ |
| 92 | "benchmark/thread_performance_benchmark.cc", |
| 93 | ], |
| 94 | shared_libs: [ |
Hansong Zhang | 7972cd5 | 2018-12-12 14:52:00 -0800 | [diff] [blame] | 95 | "libcrypto", |
Jack He | c27d257 | 2018-07-25 12:02:22 -0700 | [diff] [blame] | 96 | "liblog", |
| 97 | ], |
| 98 | static_libs: [ |
| 99 | "libosi", |
| 100 | "libbt-common" |
| 101 | ], |
Jack He | 959bc33 | 2018-08-15 12:38:37 -0700 | [diff] [blame] | 102 | } |
Hansong Zhang | 438b08c | 2018-08-14 14:29:23 -0700 | [diff] [blame] | 103 | |
| 104 | cc_benchmark { |
| 105 | name: "bluetooth_benchmark_timer_performance", |
Hansong Zhang | 7972cd5 | 2018-12-12 14:52:00 -0800 | [diff] [blame] | 106 | defaults: [ |
| 107 | "fluoride_defaults", |
| 108 | ], |
| 109 | host_supported: false, |
Hansong Zhang | 438b08c | 2018-08-14 14:29:23 -0700 | [diff] [blame] | 110 | include_dirs: ["system/bt"], |
| 111 | srcs: [ |
| 112 | "benchmark/timer_performance_benchmark.cc", |
| 113 | ], |
| 114 | shared_libs: [ |
| 115 | "liblog", |
Hansong Zhang | 7972cd5 | 2018-12-12 14:52:00 -0800 | [diff] [blame] | 116 | "libcrypto", |
Hansong Zhang | 438b08c | 2018-08-14 14:29:23 -0700 | [diff] [blame] | 117 | "libprotobuf-cpp-lite", |
Hansong Zhang | 1499636 | 2018-12-12 14:52:00 -0800 | [diff] [blame] | 118 | "libcrypto", |
Hansong Zhang | 438b08c | 2018-08-14 14:29:23 -0700 | [diff] [blame] | 119 | "libcutils", |
| 120 | ], |
| 121 | static_libs: [ |
| 122 | "libosi", |
| 123 | "libbt-common", |
| 124 | "libbt-protos-lite", |
| 125 | ], |
| 126 | } |