• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Bluetooth stack static library for target
2// ========================================================
3cc_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_api.cc",
103        "gap/gap_ble.cc",
104        "gap/gap_conn.cc",
105        "gap/gap_utils.cc",
106        "gatt/att_protocol.cc",
107        "gatt/gatt_api.cc",
108        "gatt/gatt_attr.cc",
109        "gatt/gatt_auth.cc",
110        "gatt/gatt_cl.cc",
111        "gatt/gatt_db.cc",
112        "gatt/gatt_main.cc",
113        "gatt/gatt_sr.cc",
114        "gatt/gatt_utils.cc",
115        "hcic/hciblecmds.cc",
116        "hcic/hcicmds.cc",
117        "hid/hidh_api.cc",
118        "hid/hidh_conn.cc",
119        "hid/hidd_api.cc",
120        "hid/hidd_conn.cc",
121        "l2cap/l2c_api.cc",
122        "l2cap/l2c_ble.cc",
123        "l2cap/l2c_csm.cc",
124        "l2cap/l2c_fcr.cc",
125        "l2cap/l2c_link.cc",
126        "l2cap/l2c_main.cc",
127        "l2cap/l2c_ucd.cc",
128        "l2cap/l2c_utils.cc",
129        "l2cap/l2cap_client.cc",
130        "mcap/mca_api.cc",
131        "mcap/mca_cact.cc",
132        "mcap/mca_csm.cc",
133        "mcap/mca_dact.cc",
134        "mcap/mca_dsm.cc",
135        "mcap/mca_l2c.cc",
136        "mcap/mca_main.cc",
137        "pan/pan_api.cc",
138        "pan/pan_main.cc",
139        "pan/pan_utils.cc",
140        "rfcomm/port_api.cc",
141        "rfcomm/port_rfc.cc",
142        "rfcomm/port_utils.cc",
143        "rfcomm/rfc_l2cap_if.cc",
144        "rfcomm/rfc_mx_fsm.cc",
145        "rfcomm/rfc_port_fsm.cc",
146        "rfcomm/rfc_port_if.cc",
147        "rfcomm/rfc_ts_frames.cc",
148        "rfcomm/rfc_utils.cc",
149        "sdp/sdp_api.cc",
150        "sdp/sdp_db.cc",
151        "sdp/sdp_discovery.cc",
152        "sdp/sdp_main.cc",
153        "sdp/sdp_server.cc",
154        "sdp/sdp_utils.cc",
155        "smp/aes.cc",
156        "smp/p_256_curvepara.cc",
157        "smp/p_256_ecc_pp.cc",
158        "smp/p_256_multprecision.cc",
159        "smp/smp_act.cc",
160        "smp/smp_api.cc",
161        "smp/smp_br_main.cc",
162        "smp/smp_cmac.cc",
163        "smp/smp_keys.cc",
164        "smp/smp_l2c.cc",
165        "smp/smp_main.cc",
166        "smp/smp_utils.cc",
167        "srvc/srvc_battery.cc",
168        "srvc/srvc_dis.cc",
169        "srvc/srvc_eng.cc",
170    ],
171    static_libs: [
172        "libbt-hci",
173        "libFraunhoferAAC",
174    ],
175    shared_libs: [
176        "libcutils",
177        "liblog",
178    ],
179    required: [
180        "libldacBT_enc",
181        "libldacBT_abr",
182    ]
183}
184
185// Bluetooth stack unit tests for target
186// ========================================================
187cc_test {
188    name: "net_test_stack",
189    defaults: ["fluoride_defaults"],
190    local_include_dirs: [
191        "include",
192    ],
193    include_dirs: [
194        "system/bt",
195        "system/bt/include",
196    ],
197    srcs: ["test/stack_a2dp_test.cc"],
198    shared_libs: [
199        "liblog",
200    ],
201    static_libs: [
202        "libbt-stack",
203        "libbt-sbc-encoder",
204        "libFraunhoferAAC",
205        "libosi",
206    ],
207}
208
209// Bluetooth stack smp unit tests for target
210// ========================================================
211cc_test {
212    name: "net_test_stack_smp",
213    defaults: ["fluoride_defaults"],
214    local_include_dirs: [
215        "include",
216        "btm",
217        "l2cap",
218        "smp",
219    ],
220    include_dirs: [
221        "system/bt",
222        "system/bt/include",
223        "system/bt/btcore/include",
224        "system/bt/hci/include",
225        "system/bt/utils/include",
226    ],
227    srcs: [
228        "smp/smp_keys.cc",
229        "smp/aes.cc",
230        "smp/smp_api.cc",
231        "smp/smp_main.cc",
232        "smp/smp_utils.cc",
233        "test/stack_smp_test.cc",
234    ],
235    shared_libs: [
236        "libcutils",
237    ],
238    static_libs: [
239        "liblog",
240        "libgmock",
241        "libosi",
242    ],
243}
244
245
246// Bluetooth stack multi-advertising unit tests for target
247// ========================================================
248cc_test {
249    name: "net_test_stack_multi_adv",
250    defaults: ["fluoride_defaults"],
251    local_include_dirs: [
252        "include",
253        "btm",
254    ],
255    include_dirs: [
256        "system/bt",
257        "system/bt/include",
258        "system/bt/btcore/include",
259        "system/bt/hci/include",
260        "system/bt/include",
261        "system/bt/utils/include",
262    ],
263    srcs: [
264        "btm/btm_ble_multi_adv.cc",
265        "test/ble_advertiser_test.cc",
266    ],
267    shared_libs: [
268        "libcutils",
269    ],
270    static_libs: [
271        "liblog",
272        "libgmock",
273    ],
274}
275
276// Bluetooth stack advertise data parsing unit tests for target
277// =============================================================
278cc_test {
279    name: "net_test_stack_ad_parser",
280    defaults: ["fluoride_defaults"],
281    local_include_dirs: [
282        "include",
283    ],
284    srcs: [
285        "test/ad_parser_unittest.cc",
286    ],
287    static_libs: [
288        "liblog",
289        "libgmock",
290    ],
291}
292