blob: f8e8e1889f958297fb89f779cff2a5613476d906 [file] [log] [blame]
Jack Hec27d2572018-07-25 12:02:22 -07001cc_library_static {
2 name: "libbt-common",
3 defaults: ["fluoride_defaults"],
4 host_supported: true,
Jack He959bc332018-08-15 12:38:37 -07005 include_dirs: [
6 "system/bt",
7 "system/bt/stack/include",
8 ],
Jack Hec27d2572018-07-25 12:02:22 -07009 srcs: [
10 "message_loop_thread.cc",
11 "execution_barrier.cc",
Jack He959bc332018-08-15 12:38:37 -070012 "metrics.cc",
13 "time_util.cc",
14 ],
15 static_libs: [
16 "libbt-protos-lite",
Jack Hec27d2572018-07-25 12:02:22 -070017 ],
18}
19
20cc_test {
21 name: "bluetooth_test_common",
22 test_suites: ["device-tests"],
23 defaults: ["fluoride_defaults"],
24 host_supported: true,
Jack He959bc332018-08-15 12:38:37 -070025 include_dirs: [
26 "system/bt",
27 "system/bt/stack/include",
28 ],
Jack Hec27d2572018-07-25 12:02:22 -070029 srcs : [
Jack Hec27d2572018-07-25 12:02:22 -070030 "execution_barrier_unittest.cc",
Jack He959bc332018-08-15 12:38:37 -070031 "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 Hec27d2572018-07-25 12:02:22 -070038 ],
39 static_libs : [
Jack He959bc332018-08-15 12:38:37 -070040 "libgmock",
Jack Hec27d2572018-07-25 12:02:22 -070041 "libbt-common",
Jack He959bc332018-08-15 12:38:37 -070042 "libbt-protos-lite",
43 ],
44 sanitize: {
45 cfi: false,
46 },
Jack Hec27d2572018-07-25 12:02:22 -070047}
48
49cc_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
67cc_benchmark {
68 name: "bluetooth_benchmark_thread_performance",
69 defaults: ["fluoride_defaults"],
70 include_dirs: ["system/bt"],
Jack Hec27d2572018-07-25 12:02:22 -070071 srcs: [
72 "benchmark/thread_performance_benchmark.cc",
73 ],
74 shared_libs: [
75 "liblog",
76 ],
77 static_libs: [
78 "libosi",
79 "libbt-common"
80 ],
Jack He959bc332018-08-15 12:38:37 -070081}