OSDN Git Service

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