OSDN Git Service

Advertisement parsing fix for zero padding
[android-x86/system-bt.git] / stack / Android.bp
1 // Bluetooth stack static library for target
2 // ========================================================
3 cc_library_static {
4     name: "libbt-stack",
5     defaults: ["fluoride_defaults"],
6     local_include_dirs: [
7         "include",
8         "avct",
9         "btm",
10         "avrc",
11         "l2cap",
12         "avdt",
13         "gatt",
14         "gap",
15         "pan",
16         "bnep",
17         "hid",
18         "sdp",
19         "smp",
20         "srvc",
21     ],
22     header_libs: [
23         "libhardware_headers",
24     ],
25     include_dirs: [
26         "external/aac/libAACenc/include",
27         "external/aac/libSYS/include",
28         "external/libldac/inc",
29         "external/libldac/abr/inc",
30         "system/bt",
31         "system/bt/btcore/include",
32         "system/bt/vnd/include",
33         "system/bt/vnd/ble",
34         "system/bt/btif/include",
35         "system/bt/hci/include",
36         "system/bt/include",
37         "system/bt/udrv/include",
38         "system/bt/bta/include",
39         "system/bt/bta/sys",
40         "system/bt/utils/include",
41     ],
42     srcs: [
43         "a2dp/a2dp_aac.cc",
44         "a2dp/a2dp_aac_encoder.cc",
45         "a2dp/a2dp_api.cc",
46         "a2dp/a2dp_codec_config.cc",
47         "a2dp/a2dp_sbc.cc",
48         "a2dp/a2dp_sbc_encoder.cc",
49         "a2dp/a2dp_sbc_up_sample.cc",
50         "a2dp/a2dp_vendor.cc",
51         "a2dp/a2dp_vendor_aptx.cc",
52         "a2dp/a2dp_vendor_aptx_hd.cc",
53         "a2dp/a2dp_vendor_aptx_encoder.cc",
54         "a2dp/a2dp_vendor_aptx_hd_encoder.cc",
55         "a2dp/a2dp_vendor_ldac.cc",
56         "a2dp/a2dp_vendor_ldac_abr.cc",
57         "a2dp/a2dp_vendor_ldac_encoder.cc",
58         "avct/avct_api.cc",
59         "avct/avct_bcb_act.cc",
60         "avct/avct_ccb.cc",
61         "avct/avct_l2c.cc",
62         "avct/avct_l2c_br.cc",
63         "avct/avct_lcb.cc",
64         "avct/avct_lcb_act.cc",
65         "avdt/avdt_ad.cc",
66         "avdt/avdt_api.cc",
67         "avdt/avdt_ccb.cc",
68         "avdt/avdt_ccb_act.cc",
69         "avdt/avdt_l2c.cc",
70         "avdt/avdt_msg.cc",
71         "avdt/avdt_scb.cc",
72         "avdt/avdt_scb_act.cc",
73         "avrc/avrc_api.cc",
74         "avrc/avrc_bld_ct.cc",
75         "avrc/avrc_bld_tg.cc",
76         "avrc/avrc_opt.cc",
77         "avrc/avrc_pars_ct.cc",
78         "avrc/avrc_pars_tg.cc",
79         "avrc/avrc_sdp.cc",
80         "avrc/avrc_utils.cc",
81         "bnep/bnep_api.cc",
82         "bnep/bnep_main.cc",
83         "bnep/bnep_utils.cc",
84         "btm/ble_advertiser_hci_interface.cc",
85         "btm/btm_acl.cc",
86         "btm/btm_ble.cc",
87         "btm/btm_ble_addr.cc",
88         "btm/btm_ble_adv_filter.cc",
89         "btm/btm_ble_batchscan.cc",
90         "btm/btm_ble_bgconn.cc",
91         "btm/btm_ble_cont_energy.cc",
92         "btm/btm_ble_gap.cc",
93         "btm/btm_ble_multi_adv.cc",
94         "btm/btm_ble_privacy.cc",
95         "btm/btm_dev.cc",
96         "btm/btm_devctl.cc",
97         "btm/btm_inq.cc",
98         "btm/btm_main.cc",
99         "btm/btm_pm.cc",
100         "btm/btm_sco.cc",
101         "btm/btm_sec.cc",
102         "btu/btu_hcif.cc",
103         "btu/btu_init.cc",
104         "btu/btu_task.cc",
105         "gap/gap_ble.cc",
106         "gap/gap_conn.cc",
107         "gatt/att_protocol.cc",
108         "gatt/gatt_api.cc",
109         "gatt/gatt_attr.cc",
110         "gatt/gatt_auth.cc",
111         "gatt/gatt_cl.cc",
112         "gatt/gatt_db.cc",
113         "gatt/gatt_main.cc",
114         "gatt/gatt_sr.cc",
115         "gatt/gatt_utils.cc",
116         "hcic/hciblecmds.cc",
117         "hcic/hcicmds.cc",
118         "hid/hidh_api.cc",
119         "hid/hidh_conn.cc",
120         "hid/hidd_api.cc",
121         "hid/hidd_conn.cc",
122         "l2cap/l2c_api.cc",
123         "l2cap/l2c_ble.cc",
124         "l2cap/l2c_csm.cc",
125         "l2cap/l2c_fcr.cc",
126         "l2cap/l2c_link.cc",
127         "l2cap/l2c_main.cc",
128         "l2cap/l2c_ucd.cc",
129         "l2cap/l2c_utils.cc",
130         "l2cap/l2cap_client.cc",
131         "mcap/mca_api.cc",
132         "mcap/mca_cact.cc",
133         "mcap/mca_csm.cc",
134         "mcap/mca_dact.cc",
135         "mcap/mca_dsm.cc",
136         "mcap/mca_l2c.cc",
137         "mcap/mca_main.cc",
138         "pan/pan_api.cc",
139         "pan/pan_main.cc",
140         "pan/pan_utils.cc",
141         "rfcomm/port_api.cc",
142         "rfcomm/port_rfc.cc",
143         "rfcomm/port_utils.cc",
144         "rfcomm/rfc_l2cap_if.cc",
145         "rfcomm/rfc_mx_fsm.cc",
146         "rfcomm/rfc_port_fsm.cc",
147         "rfcomm/rfc_port_if.cc",
148         "rfcomm/rfc_ts_frames.cc",
149         "rfcomm/rfc_utils.cc",
150         "sdp/sdp_api.cc",
151         "sdp/sdp_db.cc",
152         "sdp/sdp_discovery.cc",
153         "sdp/sdp_main.cc",
154         "sdp/sdp_server.cc",
155         "sdp/sdp_utils.cc",
156         "smp/aes.cc",
157         "smp/p_256_curvepara.cc",
158         "smp/p_256_ecc_pp.cc",
159         "smp/p_256_multprecision.cc",
160         "smp/smp_act.cc",
161         "smp/smp_api.cc",
162         "smp/smp_br_main.cc",
163         "smp/smp_cmac.cc",
164         "smp/smp_keys.cc",
165         "smp/smp_l2c.cc",
166         "smp/smp_main.cc",
167         "smp/smp_utils.cc",
168         "srvc/srvc_battery.cc",
169         "srvc/srvc_dis.cc",
170         "srvc/srvc_eng.cc",
171     ],
172     static_libs: [
173         "libbt-hci",
174         "libFraunhoferAAC",
175     ],
176     shared_libs: [
177         "libcutils",
178         "liblog",
179     ],
180     required: [
181         "libldacBT_enc",
182         "libldacBT_abr",
183     ]
184 }
185
186 // Bluetooth stack unit tests for target
187 // ========================================================
188 cc_test {
189     name: "net_test_stack",
190     defaults: ["fluoride_defaults"],
191     local_include_dirs: [
192         "include",
193     ],
194     include_dirs: [
195         "system/bt",
196         "system/bt/include",
197     ],
198     srcs: ["test/stack_a2dp_test.cc"],
199     shared_libs: [
200         "liblog",
201         "libcutils",
202     ],
203     static_libs: [
204         "libbt-stack",
205         "libbt-sbc-encoder",
206         "libFraunhoferAAC",
207         "libosi",
208     ],
209 }
210
211 // Bluetooth stack smp unit tests for target
212 // ========================================================
213 cc_test {
214     name: "net_test_stack_smp",
215     defaults: ["fluoride_defaults"],
216     local_include_dirs: [
217         "include",
218         "btm",
219         "l2cap",
220         "smp",
221     ],
222     include_dirs: [
223         "system/bt",
224         "system/bt/include",
225         "system/bt/btcore/include",
226         "system/bt/hci/include",
227         "system/bt/utils/include",
228     ],
229     srcs: [
230         "smp/smp_keys.cc",
231         "smp/aes.cc",
232         "smp/smp_api.cc",
233         "smp/smp_main.cc",
234         "smp/smp_utils.cc",
235         "test/stack_smp_test.cc",
236     ],
237     shared_libs: [
238         "libcutils",
239     ],
240     static_libs: [
241         "liblog",
242         "libgmock",
243         "libosi",
244     ],
245 }
246
247
248 // Bluetooth stack multi-advertising unit tests for target
249 // ========================================================
250 cc_test {
251     name: "net_test_stack_multi_adv",
252     defaults: ["fluoride_defaults"],
253     local_include_dirs: [
254         "include",
255         "btm",
256     ],
257     include_dirs: [
258         "system/bt",
259         "system/bt/include",
260         "system/bt/btcore/include",
261         "system/bt/hci/include",
262         "system/bt/include",
263         "system/bt/utils/include",
264     ],
265     srcs: [
266         "btm/btm_ble_multi_adv.cc",
267         "test/ble_advertiser_test.cc",
268     ],
269     shared_libs: [
270         "libcutils",
271     ],
272     static_libs: [
273         "libbluetooth-types",
274         "liblog",
275         "libgmock",
276     ],
277 }
278
279 // Bluetooth stack advertise data parsing unit tests for target
280 // =============================================================
281 cc_test {
282     name: "net_test_stack_ad_parser",
283     defaults: ["fluoride_defaults"],
284     local_include_dirs: [
285         "include",
286     ],
287     srcs: [
288         "test/ad_parser_unittest.cc",
289     ],
290     static_libs: [
291         "libbluetooth-types",
292         "liblog",
293         "libgmock",
294     ],
295 }
296
297 // Bluetooth stack message loop tests for target
298 // ========================================================
299 cc_test {
300     name: "net_test_btu_message_loop",
301     defaults: ["fluoride_defaults"],
302     local_include_dirs: [
303         "include",
304         "btm",
305     ],
306     include_dirs: [
307         "system/bt/",
308         "system/bt/include",
309         "system/bt/btcore/include",
310         "system/bt/bta/include",
311     ],
312     srcs: [
313         "btu/btu_task.cc",
314         "test/stack_btu_test.cc",
315     ],
316     shared_libs: [
317         "liblog",
318         "libcutils",
319         "libprotobuf-cpp-lite",
320     ],
321     static_libs: [
322         "libbluetooth-types",
323         "libgmock",
324         "libosi",
325         "libbt-protos",
326     ],
327 }