blob: 635d939e335ba328210ae42e4d04427b50ce24f7 [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",
Andre Eisenbach796523d2016-11-10 16:11:00 -080039 "system/libhwbinder/include",
Jack Hee2eeff42016-12-07 18:25:17 -080040 ],
41}
42
43// HCI unit tests for target
44// ========================================================
45cc_test {
46 name: "net_test_hci",
Dan Shi2705ebb2017-03-31 17:12:46 -070047 test_suites: ["device-tests"],
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",
Jakub Pawlowskiecace462017-10-17 16:40:41 -070054 "system/bt/internal_include",
Jack Hee2eeff42016-12-07 18:25:17 -080055 "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",
Jack Head18de02018-03-03 00:03:25 -080076 "libbt-protos-lite",
Jack Hee2eeff42016-12-07 18:25:17 -080077 ],
78}