blob: 57021770c865a68c9756db3cfb620b2ac55173fc [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",
Jack Hee2eeff42016-12-07 18:25:17 -080022 "src/hci_inject.cc",
23 "src/hci_layer.cc",
Jakub Pawlowski32fbec62017-02-21 13:28:10 -080024 "src/hci_layer_android.cc",
Jack Hee2eeff42016-12-07 18:25:17 -080025 "src/hci_packet_factory.cc",
26 "src/hci_packet_parser.cc",
Jack Hee2eeff42016-12-07 18:25:17 -080027 "src/packet_fragmenter.cc",
Jack Hee2eeff42016-12-07 18:25:17 -080028 ],
29 local_include_dirs: [
30 "include",
31 ],
32 include_dirs: [
33 "system/bt",
Jakub Pawlowskiecace462017-10-17 16:40:41 -070034 "system/bt/internal_include",
Jack Hee2eeff42016-12-07 18:25:17 -080035 "system/bt/btcore/include",
36 "system/bt/stack/include",
37 "system/bt/utils/include",
38 "system/bt/bta/include",
Ugo Yu14b4e5c2019-11-26 17:18:32 +080039 "system/bt/btif/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",
Dan Shi2705ebb2017-03-31 17:12:46 -070048 test_suites: ["device-tests"],
Andre Eisenbach796523d2016-11-10 16:11:00 -080049 defaults: ["libbt-hci_defaults"],
Jack Hee2eeff42016-12-07 18:25:17 -080050 local_include_dirs: [
51 "include",
52 ],
53 include_dirs: [
54 "system/bt",
Jakub Pawlowskiecace462017-10-17 16:40:41 -070055 "system/bt/internal_include",
Jack Hee2eeff42016-12-07 18:25:17 -080056 "system/bt/btcore/include",
57 "system/bt/osi/test",
58 "system/bt/stack/include",
59 "system/bt/utils/include",
Andre Eisenbach796523d2016-11-10 16:11:00 -080060 "system/libhwbinder/include",
Jack Hee2eeff42016-12-07 18:25:17 -080061 ],
62 srcs: [
Jack Hee2eeff42016-12-07 18:25:17 -080063 "test/packet_fragmenter_test.cc",
64 ],
65 shared_libs: [
66 "liblog",
67 "libdl",
68 "libprotobuf-cpp-lite",
69 ],
70 static_libs: [
71 "libbt-hci",
72 "libosi",
73 "libosi-AlarmTestHarness",
74 "libosi-AllocationTestHarness",
75 "libcutils",
76 "libbtcore",
Jack Head18de02018-03-03 00:03:25 -080077 "libbt-protos-lite",
Jack Hee2eeff42016-12-07 18:25:17 -080078 ],
79}