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