Jack He | c27d257 | 2018-07-25 12:02:22 -0700 | [diff] [blame] | 1 | cc_library_static { |
| 2 | name: "libbt-common", |
| 3 | defaults: ["fluoride_defaults"], |
| 4 | host_supported: true, |
Jack He | 959bc33 | 2018-08-15 12:38:37 -0700 | [diff] [blame^] | 5 | include_dirs: [ |
| 6 | "system/bt", |
| 7 | "system/bt/stack/include", |
| 8 | ], |
Jack He | c27d257 | 2018-07-25 12:02:22 -0700 | [diff] [blame] | 9 | srcs: [ |
| 10 | "message_loop_thread.cc", |
| 11 | "execution_barrier.cc", |
Jack He | 959bc33 | 2018-08-15 12:38:37 -0700 | [diff] [blame^] | 12 | "metrics.cc", |
| 13 | "time_util.cc", |
| 14 | ], |
| 15 | static_libs: [ |
| 16 | "libbt-protos-lite", |
Jack He | c27d257 | 2018-07-25 12:02:22 -0700 | [diff] [blame] | 17 | ], |
| 18 | } |
| 19 | |
| 20 | cc_test { |
| 21 | name: "bluetooth_test_common", |
| 22 | test_suites: ["device-tests"], |
| 23 | defaults: ["fluoride_defaults"], |
| 24 | host_supported: true, |
Jack He | 959bc33 | 2018-08-15 12:38:37 -0700 | [diff] [blame^] | 25 | include_dirs: [ |
| 26 | "system/bt", |
| 27 | "system/bt/stack/include", |
| 28 | ], |
Jack He | c27d257 | 2018-07-25 12:02:22 -0700 | [diff] [blame] | 29 | srcs : [ |
Jack He | c27d257 | 2018-07-25 12:02:22 -0700 | [diff] [blame] | 30 | "execution_barrier_unittest.cc", |
Jack He | 959bc33 | 2018-08-15 12:38:37 -0700 | [diff] [blame^] | 31 | "leaky_bonded_queue_unittest.cc", |
| 32 | "message_loop_thread_unittest.cc", |
| 33 | "metrics_unittest.cc", |
| 34 | "time_util_unittest.cc", |
| 35 | ], |
| 36 | shared_libs: [ |
| 37 | "libprotobuf-cpp-lite", |
Jack He | c27d257 | 2018-07-25 12:02:22 -0700 | [diff] [blame] | 38 | ], |
| 39 | static_libs : [ |
Jack He | 959bc33 | 2018-08-15 12:38:37 -0700 | [diff] [blame^] | 40 | "libgmock", |
Jack He | c27d257 | 2018-07-25 12:02:22 -0700 | [diff] [blame] | 41 | "libbt-common", |
Jack He | 959bc33 | 2018-08-15 12:38:37 -0700 | [diff] [blame^] | 42 | "libbt-protos-lite", |
| 43 | ], |
| 44 | sanitize: { |
| 45 | cfi: false, |
| 46 | }, |
Jack He | c27d257 | 2018-07-25 12:02:22 -0700 | [diff] [blame] | 47 | } |
| 48 | |
| 49 | cc_test { |
| 50 | name: "net_test_performance", |
| 51 | defaults: ["fluoride_defaults"], |
| 52 | include_dirs: ["system/bt"], |
| 53 | host_supported: true, |
| 54 | srcs: [ |
| 55 | "test/thread_performance_test.cc", |
| 56 | ], |
| 57 | shared_libs: [ |
| 58 | "liblog", |
| 59 | ], |
| 60 | static_libs: [ |
| 61 | "libgmock", |
| 62 | "libosi", |
| 63 | "libbt-common" |
| 64 | ], |
| 65 | } |
| 66 | |
| 67 | cc_benchmark { |
| 68 | name: "bluetooth_benchmark_thread_performance", |
| 69 | defaults: ["fluoride_defaults"], |
| 70 | include_dirs: ["system/bt"], |
Jack He | c27d257 | 2018-07-25 12:02:22 -0700 | [diff] [blame] | 71 | srcs: [ |
| 72 | "benchmark/thread_performance_benchmark.cc", |
| 73 | ], |
| 74 | shared_libs: [ |
| 75 | "liblog", |
| 76 | ], |
| 77 | static_libs: [ |
| 78 | "libosi", |
| 79 | "libbt-common" |
| 80 | ], |
Jack He | 959bc33 | 2018-08-15 12:38:37 -0700 | [diff] [blame^] | 81 | } |