Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 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: [ |
Pavlin Radoslavov | d5f4960 | 2017-01-03 16:53:18 -0800 | [diff] [blame] | 23 | "external/aac/libAACenc/include", |
| 24 | "external/aac/libSYS/include", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 25 | "external/libldac/inc", |
fen wang | dfc02a9 | 2017-03-15 14:52:52 +0900 | [diff] [blame] | 26 | "external/libldac/abr/inc", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 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: [ |
Pavlin Radoslavov | d5f4960 | 2017-01-03 16:53:18 -0800 | [diff] [blame] | 40 | "a2dp/a2dp_aac.cc", |
| 41 | "a2dp/a2dp_aac_encoder.cc", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 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", |
fen wang | dfc02a9 | 2017-03-15 14:52:52 +0900 | [diff] [blame] | 53 | "a2dp/a2dp_vendor_ldac_abr.cc", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 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", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 102 | "gap/gap_ble.cc", |
| 103 | "gap/gap_conn.cc", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 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 | ], |
Pavlin Radoslavov | d5f4960 | 2017-01-03 16:53:18 -0800 | [diff] [blame] | 169 | static_libs: [ |
| 170 | "libbt-hci", |
| 171 | "libFraunhoferAAC", |
| 172 | ], |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 173 | shared_libs: [ |
| 174 | "libcutils", |
| 175 | "liblog", |
| 176 | ], |
| 177 | required: [ |
| 178 | "libldacBT_enc", |
fen wang | dfc02a9 | 2017-03-15 14:52:52 +0900 | [diff] [blame] | 179 | "libldacBT_abr", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 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 | ], |
| 199 | static_libs: [ |
| 200 | "libbt-stack", |
| 201 | "libbt-sbc-encoder", |
Pavlin Radoslavov | d5f4960 | 2017-01-03 16:53:18 -0800 | [diff] [blame] | 202 | "libFraunhoferAAC", |
Jack He | e2eeff4 | 2016-12-07 18:25:17 -0800 | [diff] [blame] | 203 | "libosi", |
| 204 | ], |
| 205 | } |
| 206 | |
| 207 | // Bluetooth stack smp unit tests for target |
| 208 | // ======================================================== |
| 209 | cc_test { |
| 210 | name: "net_test_stack_smp", |
| 211 | defaults: ["fluoride_defaults"], |
| 212 | local_include_dirs: [ |
| 213 | "include", |
| 214 | "btm", |
| 215 | "l2cap", |
| 216 | "smp", |
| 217 | ], |
| 218 | include_dirs: [ |
| 219 | "system/bt", |
| 220 | "system/bt/include", |
| 221 | "system/bt/btcore/include", |
| 222 | "system/bt/hci/include", |
| 223 | "system/bt/utils/include", |
| 224 | ], |
| 225 | srcs: [ |
| 226 | "smp/smp_keys.cc", |
| 227 | "smp/aes.cc", |
| 228 | "smp/smp_api.cc", |
| 229 | "smp/smp_main.cc", |
| 230 | "smp/smp_utils.cc", |
| 231 | "test/stack_smp_test.cc", |
| 232 | ], |
| 233 | shared_libs: [ |
| 234 | "libcutils", |
| 235 | ], |
| 236 | static_libs: [ |
| 237 | "liblog", |
| 238 | "libgmock", |
| 239 | "libosi", |
| 240 | ], |
| 241 | } |
| 242 | |
| 243 | |
| 244 | // Bluetooth stack multi-advertising unit tests for target |
| 245 | // ======================================================== |
| 246 | cc_test { |
| 247 | name: "net_test_stack_multi_adv", |
| 248 | defaults: ["fluoride_defaults"], |
| 249 | local_include_dirs: [ |
| 250 | "include", |
| 251 | "btm", |
| 252 | ], |
| 253 | include_dirs: [ |
| 254 | "system/bt", |
| 255 | "system/bt/include", |
| 256 | "system/bt/btcore/include", |
| 257 | "system/bt/hci/include", |
| 258 | "system/bt/include", |
| 259 | "system/bt/utils/include", |
| 260 | ], |
| 261 | srcs: [ |
| 262 | "btm/btm_ble_multi_adv.cc", |
| 263 | "test/ble_advertiser_test.cc", |
| 264 | ], |
| 265 | shared_libs: [ |
| 266 | "libcutils", |
| 267 | ], |
| 268 | static_libs: [ |
| 269 | "liblog", |
| 270 | "libgmock", |
| 271 | ], |
| 272 | } |
Jakub Pawlowski | 103b2c4 | 2017-04-28 14:59:46 -0700 | [diff] [blame] | 273 | |
| 274 | // Bluetooth stack advertise data parsing unit tests for target |
| 275 | // ============================================================= |
| 276 | cc_test { |
| 277 | name: "net_test_stack_ad_parser", |
| 278 | defaults: ["fluoride_defaults"], |
| 279 | local_include_dirs: [ |
| 280 | "include", |
| 281 | ], |
| 282 | srcs: [ |
| 283 | "test/ad_parser_unittest.cc", |
| 284 | ], |
| 285 | static_libs: [ |
| 286 | "liblog", |
| 287 | "libgmock", |
| 288 | ], |
| 289 | } |
Ajay Panicker | 2b7e905 | 2017-03-01 10:00:30 -0800 | [diff] [blame] | 290 | |
| 291 | // Bluetooth stack message loop tests for target |
| 292 | // ======================================================== |
| 293 | cc_test { |
| 294 | name: "net_test_btu_message_loop", |
| 295 | defaults: ["fluoride_defaults"], |
| 296 | local_include_dirs: [ |
| 297 | "include", |
| 298 | "btm", |
| 299 | ], |
| 300 | include_dirs: [ |
| 301 | "system/bt/", |
| 302 | "system/bt/include", |
| 303 | "system/bt/btcore/include", |
| 304 | "system/bt/bta/include", |
| 305 | ], |
| 306 | srcs: [ |
| 307 | "btu/btu_task.cc", |
| 308 | "test/stack_btu_test.cc", |
| 309 | ], |
| 310 | shared_libs: [ |
| 311 | "liblog", |
| 312 | "libcutils", |
| 313 | "libprotobuf-cpp-lite", |
| 314 | ], |
| 315 | static_libs: [ |
| 316 | "libgmock", |
| 317 | "libosi", |
| 318 | "libbt-protos", |
| 319 | ], |
| 320 | } |