blob: 202559d6333f36892880e0dc7c2fbcccf39545b3 [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",
Jack He959bc332018-08-15 12:38:37 -070015 "metrics.cc",
Jakub Pawlowski5cf03042018-12-03 16:50:40 +010016 "once_timer.cc",
17 "repeating_timer.cc",
Jack He959bc332018-08-15 12:38:37 -070018 "time_util.cc",
19 ],
Jack He78b69d92018-11-16 02:59:43 -080020 shared_libs: [
21 "libcrypto",
22 ],
Jack He959bc332018-08-15 12:38:37 -070023 static_libs: [
24 "libbt-protos-lite",
Jack Hec27d2572018-07-25 12:02:22 -070025 ],
26}
27
28cc_test {
29 name: "bluetooth_test_common",
30 test_suites: ["device-tests"],
Hansong Zhang7972cd52018-12-12 14:52:00 -080031 defaults: [
32 "fluoride_defaults",
33 "clang_coverage_bin",
34 ],
Jack Hec27d2572018-07-25 12:02:22 -070035 host_supported: true,
Jack He959bc332018-08-15 12:38:37 -070036 include_dirs: [
37 "system/bt",
38 "system/bt/stack/include",
39 ],
Jack Hec27d2572018-07-25 12:02:22 -070040 srcs : [
Jack He78b69d92018-11-16 02:59:43 -080041 "address_obfuscator_unittest.cc",
Jack He959bc332018-08-15 12:38:37 -070042 "leaky_bonded_queue_unittest.cc",
43 "message_loop_thread_unittest.cc",
44 "metrics_unittest.cc",
Jakub Pawlowski5cf03042018-12-03 16:50:40 +010045 "once_timer_unittest.cc",
46 "repeating_timer_unittest.cc",
Hansong Zhangdf14c992018-10-04 15:04:18 -070047 "state_machine_unittest.cc",
Jack He959bc332018-08-15 12:38:37 -070048 "time_util_unittest.cc",
Jakub Pawlowski23478f72018-08-08 16:32:44 +020049 "id_generator_unittest.cc",
Jack He959bc332018-08-15 12:38:37 -070050 ],
51 shared_libs: [
52 "libprotobuf-cpp-lite",
Jack He78b69d92018-11-16 02:59:43 -080053 "libcrypto",
Jack Hec27d2572018-07-25 12:02:22 -070054 ],
55 static_libs : [
Jack He959bc332018-08-15 12:38:37 -070056 "libgmock",
Jack Hec27d2572018-07-25 12:02:22 -070057 "libbt-common",
Jack He959bc332018-08-15 12:38:37 -070058 "libbt-protos-lite",
59 ],
60 sanitize: {
61 cfi: false,
62 },
Jack Hec27d2572018-07-25 12:02:22 -070063}
64
65cc_test {
66 name: "net_test_performance",
67 defaults: ["fluoride_defaults"],
Dan Shi491407d2019-01-10 10:55:23 -080068 test_suites: ["device-tests"],
Jack Hec27d2572018-07-25 12:02:22 -070069 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
84cc_benchmark {
85 name: "bluetooth_benchmark_thread_performance",
Hansong Zhang7972cd52018-12-12 14:52:00 -080086 defaults: [
87 "fluoride_defaults",
88 ],
89 host_supported: true,
Jack Hec27d2572018-07-25 12:02:22 -070090 include_dirs: ["system/bt"],
Jack Hec27d2572018-07-25 12:02:22 -070091 srcs: [
92 "benchmark/thread_performance_benchmark.cc",
93 ],
94 shared_libs: [
Hansong Zhang7972cd52018-12-12 14:52:00 -080095 "libcrypto",
Jack Hec27d2572018-07-25 12:02:22 -070096 "liblog",
97 ],
98 static_libs: [
99 "libosi",
100 "libbt-common"
101 ],
Jack He959bc332018-08-15 12:38:37 -0700102}
Hansong Zhang438b08c2018-08-14 14:29:23 -0700103
104cc_benchmark {
105 name: "bluetooth_benchmark_timer_performance",
Hansong Zhang7972cd52018-12-12 14:52:00 -0800106 defaults: [
107 "fluoride_defaults",
108 ],
109 host_supported: false,
Hansong Zhang438b08c2018-08-14 14:29:23 -0700110 include_dirs: ["system/bt"],
111 srcs: [
112 "benchmark/timer_performance_benchmark.cc",
113 ],
114 shared_libs: [
115 "liblog",
Hansong Zhang7972cd52018-12-12 14:52:00 -0800116 "libcrypto",
Hansong Zhang438b08c2018-08-14 14:29:23 -0700117 "libprotobuf-cpp-lite",
Hansong Zhang14996362018-12-12 14:52:00 -0800118 "libcrypto",
Hansong Zhang438b08c2018-08-14 14:29:23 -0700119 "libcutils",
120 ],
121 static_libs: [
122 "libosi",
123 "libbt-common",
124 "libbt-protos-lite",
125 ],
126}