| cc_library_static { |
| name: "libbt-common", |
| defaults: ["fluoride_defaults"], |
| host_supported: true, |
| include_dirs: [ |
| "system/bt", |
| "system/bt/stack/include", |
| ], |
| srcs: [ |
| "address_obfuscator.cc", |
| "timer.cc", |
| "message_loop_thread.cc", |
| "metrics.cc", |
| "time_util.cc", |
| ], |
| shared_libs: [ |
| "libcrypto", |
| ], |
| static_libs: [ |
| "libbt-protos-lite", |
| ], |
| } |
| |
| cc_test { |
| name: "bluetooth_test_common", |
| test_suites: ["device-tests"], |
| defaults: ["fluoride_defaults"], |
| host_supported: true, |
| include_dirs: [ |
| "system/bt", |
| "system/bt/stack/include", |
| ], |
| srcs : [ |
| "address_obfuscator_unittest.cc", |
| "timer_unittest.cc", |
| "leaky_bonded_queue_unittest.cc", |
| "message_loop_thread_unittest.cc", |
| "metrics_unittest.cc", |
| "state_machine_unittest.cc", |
| "time_util_unittest.cc", |
| ], |
| shared_libs: [ |
| "libprotobuf-cpp-lite", |
| "libcrypto", |
| ], |
| static_libs : [ |
| "libgmock", |
| "libbt-common", |
| "libbt-protos-lite", |
| ], |
| sanitize: { |
| cfi: false, |
| }, |
| } |
| |
| cc_test { |
| name: "net_test_performance", |
| defaults: ["fluoride_defaults"], |
| include_dirs: ["system/bt"], |
| host_supported: true, |
| srcs: [ |
| "test/thread_performance_test.cc", |
| ], |
| shared_libs: [ |
| "liblog", |
| ], |
| static_libs: [ |
| "libgmock", |
| "libosi", |
| "libbt-common" |
| ], |
| } |
| |
| cc_benchmark { |
| name: "bluetooth_benchmark_thread_performance", |
| defaults: ["fluoride_defaults"], |
| include_dirs: ["system/bt"], |
| srcs: [ |
| "benchmark/thread_performance_benchmark.cc", |
| ], |
| shared_libs: [ |
| "liblog", |
| ], |
| static_libs: [ |
| "libosi", |
| "libbt-common" |
| ], |
| } |
| |
| cc_benchmark { |
| name: "bluetooth_benchmark_timer_performance", |
| defaults: ["fluoride_defaults"], |
| include_dirs: ["system/bt"], |
| srcs: [ |
| "benchmark/timer_performance_benchmark.cc", |
| ], |
| shared_libs: [ |
| "liblog", |
| "libprotobuf-cpp-lite", |
| "libcutils", |
| ], |
| static_libs: [ |
| "libosi", |
| "libbt-common", |
| "libbt-protos-lite", |
| ], |
| } |