blob: e05528c7e2583e0d21603c29ec0c2cbf8c352b7d [file] [log] [blame]
Jack Hec27d2572018-07-25 12:02:22 -07001cc_library_static {
2 name: "libbt-common",
Hansong Zhang7972cd52018-12-12 14:52:00 -08003 defaults: [
4 "fluoride_defaults",
5 "clang_file_coverage",
6 ],
Jack Hec27d2572018-07-25 12:02:22 -07007 host_supported: true,
Jack He959bc332018-08-15 12:38:37 -07008 include_dirs: [
9 "system/bt",
10 "system/bt/stack/include",
11 ],
Jack Hec27d2572018-07-25 12:02:22 -070012 srcs: [
Jack He78b69d92018-11-16 02:59:43 -080013 "address_obfuscator.cc",
Jack Hec27d2572018-07-25 12:02:22 -070014 "message_loop_thread.cc",
Chen Chenc530a0c2020-02-20 11:29:42 -080015 "metric_id_allocator.cc",
Jack He959bc332018-08-15 12:38:37 -070016 "metrics.cc",
Jakub Pawlowski5cf03042018-12-03 16:50:40 +010017 "once_timer.cc",
18 "repeating_timer.cc",
Jack He959bc332018-08-15 12:38:37 -070019 "time_util.cc",
20 ],
Jack He78b69d92018-11-16 02:59:43 -080021 shared_libs: [
22 "libcrypto",
23 ],
Jack He959bc332018-08-15 12:38:37 -070024 static_libs: [
25 "libbt-protos-lite",
Jack Hec27d2572018-07-25 12:02:22 -070026 ],
27}
28
29cc_test {
30 name: "bluetooth_test_common",
31 test_suites: ["device-tests"],
Hansong Zhang7972cd52018-12-12 14:52:00 -080032 defaults: [
33 "fluoride_defaults",
34 "clang_coverage_bin",
35 ],
Jack Hec27d2572018-07-25 12:02:22 -070036 host_supported: true,
Jack He959bc332018-08-15 12:38:37 -070037 include_dirs: [
38 "system/bt",
39 "system/bt/stack/include",
40 ],
Colin Cross62084352019-05-23 14:12:59 -070041 srcs: [
Jack He78b69d92018-11-16 02:59:43 -080042 "address_obfuscator_unittest.cc",
Jack He959bc332018-08-15 12:38:37 -070043 "leaky_bonded_queue_unittest.cc",
Chen Chenc530a0c2020-02-20 11:29:42 -080044 "lru_unittest.cc",
Jack He959bc332018-08-15 12:38:37 -070045 "message_loop_thread_unittest.cc",
46 "metrics_unittest.cc",
Chen Chenc530a0c2020-02-20 11:29:42 -080047 "metric_id_allocator_unittest.cc",
Jakub Pawlowski5cf03042018-12-03 16:50:40 +010048 "once_timer_unittest.cc",
49 "repeating_timer_unittest.cc",
Hansong Zhangdf14c992018-10-04 15:04:18 -070050 "state_machine_unittest.cc",
Jack He959bc332018-08-15 12:38:37 -070051 "time_util_unittest.cc",
Jakub Pawlowski23478f72018-08-08 16:32:44 +020052 "id_generator_unittest.cc",
Jack He959bc332018-08-15 12:38:37 -070053 ],
54 shared_libs: [
55 "libprotobuf-cpp-lite",
Jack He78b69d92018-11-16 02:59:43 -080056 "libcrypto",
Jack Hec27d2572018-07-25 12:02:22 -070057 ],
Colin Cross62084352019-05-23 14:12:59 -070058 static_libs: [
Jack He959bc332018-08-15 12:38:37 -070059 "libgmock",
Jack Hec27d2572018-07-25 12:02:22 -070060 "libbt-common",
Jack He959bc332018-08-15 12:38:37 -070061 "libbt-protos-lite",
62 ],
63 sanitize: {
64 cfi: false,
65 },
Jack Hec27d2572018-07-25 12:02:22 -070066}
67
68cc_test {
69 name: "net_test_performance",
70 defaults: ["fluoride_defaults"],
Dan Shi491407d2019-01-10 10:55:23 -080071 test_suites: ["device-tests"],
Jack Hec27d2572018-07-25 12:02:22 -070072 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",
Colin Cross62084352019-05-23 14:12:59 -070083 "libbt-common",
Jack Hec27d2572018-07-25 12:02:22 -070084 ],
85}
86
87cc_benchmark {
88 name: "bluetooth_benchmark_thread_performance",
Hansong Zhang7972cd52018-12-12 14:52:00 -080089 defaults: [
90 "fluoride_defaults",
91 ],
92 host_supported: true,
Jack Hec27d2572018-07-25 12:02:22 -070093 include_dirs: ["system/bt"],
Jack Hec27d2572018-07-25 12:02:22 -070094 srcs: [
95 "benchmark/thread_performance_benchmark.cc",
96 ],
97 shared_libs: [
Hansong Zhang7972cd52018-12-12 14:52:00 -080098 "libcrypto",
Jack Hec27d2572018-07-25 12:02:22 -070099 "liblog",
100 ],
101 static_libs: [
102 "libosi",
Colin Cross62084352019-05-23 14:12:59 -0700103 "libbt-common",
Jack Hec27d2572018-07-25 12:02:22 -0700104 ],
Jack He959bc332018-08-15 12:38:37 -0700105}
Hansong Zhang438b08c2018-08-14 14:29:23 -0700106
107cc_benchmark {
108 name: "bluetooth_benchmark_timer_performance",
Hansong Zhang7972cd52018-12-12 14:52:00 -0800109 defaults: [
110 "fluoride_defaults",
111 ],
112 host_supported: false,
Hansong Zhang438b08c2018-08-14 14:29:23 -0700113 include_dirs: ["system/bt"],
114 srcs: [
115 "benchmark/timer_performance_benchmark.cc",
116 ],
117 shared_libs: [
118 "liblog",
Hansong Zhang7972cd52018-12-12 14:52:00 -0800119 "libcrypto",
Hansong Zhang438b08c2018-08-14 14:29:23 -0700120 "libprotobuf-cpp-lite",
Hansong Zhang14996362018-12-12 14:52:00 -0800121 "libcrypto",
Hansong Zhang438b08c2018-08-14 14:29:23 -0700122 "libcutils",
123 ],
124 static_libs: [
125 "libosi",
126 "libbt-common",
127 "libbt-protos-lite",
128 ],
129}