blob: 49489a6bae82d46588b3fa4913c39e9e8454496a [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",
25 "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",
34 "system/bt/include",
35 "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",
Andre Eisenbach796523d2016-11-10 16:11:00 -080047 defaults: ["libbt-hci_defaults"],
Jack Hee2eeff42016-12-07 18:25:17 -080048 local_include_dirs: [
49 "include",
50 ],
51 include_dirs: [
52 "system/bt",
53 "system/bt/include",
54 "system/bt/btcore/include",
55 "system/bt/osi/test",
56 "system/bt/stack/include",
57 "system/bt/utils/include",
Andre Eisenbach796523d2016-11-10 16:11:00 -080058 "system/libhwbinder/include",
Jack Hee2eeff42016-12-07 18:25:17 -080059 ],
60 srcs: [
Jack Hee2eeff42016-12-07 18:25:17 -080061 "test/packet_fragmenter_test.cc",
62 ],
63 shared_libs: [
64 "liblog",
65 "libdl",
66 "libprotobuf-cpp-lite",
67 ],
68 static_libs: [
69 "libbt-hci",
70 "libosi",
71 "libosi-AlarmTestHarness",
72 "libosi-AllocationTestHarness",
73 "libcutils",
74 "libbtcore",
75 "libbt-protos",
76 ],
77}