OSDN Git Service

Merge "Revert "Fix potential OOB write in btm_read_remote_ext_features_complete"...
[android-x86/system-bt.git] / hci / Android.bp
1 cc_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
12 // HCI static library for target
13 // ========================================================
14 cc_library_static {
15     name: "libbt-hci",
16     defaults: ["libbt-hci_defaults"],
17     srcs: [
18         "src/btsnoop.cc",
19         "src/btsnoop_mem.cc",
20         "src/btsnoop_net.cc",
21         "src/buffer_allocator.cc",
22         "src/hci_inject.cc",
23         "src/hci_layer.cc",
24         "src/hci_layer_android.cc",
25         "src/hci_packet_factory.cc",
26         "src/hci_packet_parser.cc",
27         "src/packet_fragmenter.cc",
28     ],
29     local_include_dirs: [
30         "include",
31     ],
32     include_dirs: [
33         "system/bt",
34         "system/bt/internal_include",
35         "system/bt/btcore/include",
36         "system/bt/stack/include",
37         "system/bt/utils/include",
38         "system/bt/bta/include",
39         "system/libhwbinder/include",
40     ],
41 }
42
43 // HCI unit tests for target
44 // ========================================================
45 cc_test {
46     name: "net_test_hci",
47     test_suites: ["device-tests"],
48     defaults: ["libbt-hci_defaults"],
49     local_include_dirs: [
50         "include",
51     ],
52     include_dirs: [
53         "system/bt",
54         "system/bt/internal_include",
55         "system/bt/btcore/include",
56         "system/bt/osi/test",
57         "system/bt/stack/include",
58         "system/bt/utils/include",
59         "system/libhwbinder/include",
60     ],
61     srcs: [
62         "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-lite",
77     ],
78 }