blob: 8309003368e74de6d3ce6a06eb55b11f257e07e1 [file] [log] [blame]
Andre Eisenbach796523d2016-11-10 16:11:00 -08001cc_defaults {
2 name: "libbt-hci_defaults",
3 defaults: ["fluoride_defaults"],
4 shared_libs: [
5 "android.hardware.bluetooth@1.0",
6 "libhidlbase",
7 "libhidltransport",
8 "libhwbinder",
9 ],
10}
11
Jack Hee2eeff42016-12-07 18:25:17 -080012// HCI static library for target
13// ========================================================
14cc_library_static {
15 name: "libbt-hci",
Andre Eisenbach796523d2016-11-10 16:11:00 -080016 defaults: ["libbt-hci_defaults"],
Jack Hee2eeff42016-12-07 18:25:17 -080017 srcs: [
18 "src/btsnoop.cc",
19 "src/btsnoop_mem.cc",
20 "src/btsnoop_net.cc",
21 "src/buffer_allocator.cc",
22 "src/hci_audio.cc",
Jack Hee2eeff42016-12-07 18:25:17 -080023 "src/hci_inject.cc",
24 "src/hci_layer.cc",
Jakub Pawlowski32fbec62017-02-21 13:28:10 -080025 "src/hci_layer_android.cc",
Jack Hee2eeff42016-12-07 18:25:17 -080026 "src/hci_packet_factory.cc",
27 "src/hci_packet_parser.cc",
Jack Hee2eeff42016-12-07 18:25:17 -080028 "src/packet_fragmenter.cc",
Jack Hee2eeff42016-12-07 18:25:17 -080029 ],
30 local_include_dirs: [
31 "include",
32 ],
33 include_dirs: [
34 "system/bt",
35 "system/bt/include",
36 "system/bt/btcore/include",
37 "system/bt/stack/include",
38 "system/bt/utils/include",
39 "system/bt/bta/include",
Andre Eisenbach796523d2016-11-10 16:11:00 -080040 "system/libhwbinder/include",
Jack Hee2eeff42016-12-07 18:25:17 -080041 ],
42}
43
44// HCI unit tests for target
45// ========================================================
46cc_test {
47 name: "net_test_hci",
Andre Eisenbach796523d2016-11-10 16:11:00 -080048 defaults: ["libbt-hci_defaults"],
Jack Hee2eeff42016-12-07 18:25:17 -080049 local_include_dirs: [
50 "include",
51 ],
52 include_dirs: [
53 "system/bt",
54 "system/bt/include",
55 "system/bt/btcore/include",
56 "system/bt/osi/test",
57 "system/bt/stack/include",
58 "system/bt/utils/include",
Andre Eisenbach796523d2016-11-10 16:11:00 -080059 "system/libhwbinder/include",
Jack Hee2eeff42016-12-07 18:25:17 -080060 ],
61 srcs: [
Jack Hee2eeff42016-12-07 18:25:17 -080062 "test/packet_fragmenter_test.cc",
63 ],
64 shared_libs: [
65 "liblog",
66 "libdl",
67 "libprotobuf-cpp-lite",
68 ],
69 static_libs: [
70 "libbt-hci",
71 "libosi",
72 "libosi-AlarmTestHarness",
73 "libosi-AllocationTestHarness",
74 "libcutils",
75 "libbtcore",
76 "libbt-protos",
77 ],
78}