1 # 2 # Copyright (C) 2015 Google, Inc. 3 # 4 # Licensed under the Apache License, Version 2.0 (the "License"); 5 # you may not use this file except in compliance with the License. 6 # You may obtain a copy of the License at: 7 # 8 # http://www.apache.org/licenses/LICENSE-2.0 9 # 10 # Unless required by applicable law or agreed to in writing, software 11 # distributed under the License is distributed on an "AS IS" BASIS, 12 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 # See the License for the specific language governing permissions and 14 # limitations under the License. 15 # 16 17 static_library("stack") { 18 sources = [ 19 "a2dp/a2dp_aac.cc", 20 "a2dp/a2dp_aac_encoder.cc", 21 "a2dp/a2dp_api.cc", 22 "a2dp/a2dp_codec_config.cc", 23 "a2dp/a2dp_sbc.cc", 24 "a2dp/a2dp_sbc_encoder.cc", 25 "a2dp/a2dp_sbc_up_sample.cc", 26 "a2dp/a2dp_vendor.cc", 27 "a2dp/a2dp_vendor_aptx.cc", 28 "a2dp/a2dp_vendor_aptx_encoder.cc", 29 "a2dp/a2dp_vendor_aptx_hd.cc", 30 "a2dp/a2dp_vendor_aptx_hd_encoder.cc", 31 "a2dp/a2dp_vendor_ldac.cc", 32 "a2dp/a2dp_vendor_ldac_abr.cc", 33 "a2dp/a2dp_vendor_ldac_encoder.cc", 34 "avct/avct_api.cc", 35 "avct/avct_bcb_act.cc", 36 "avct/avct_ccb.cc", 37 "avct/avct_l2c.cc", 38 "avct/avct_l2c_br.cc", 39 "avct/avct_lcb.cc", 40 "avct/avct_lcb_act.cc", 41 "avdt/avdt_ad.cc", 42 "avdt/avdt_api.cc", 43 "avdt/avdt_ccb.cc", 44 "avdt/avdt_ccb_act.cc", 45 "avdt/avdt_l2c.cc", 46 "avdt/avdt_msg.cc", 47 "avdt/avdt_scb.cc", 48 "avdt/avdt_scb_act.cc", 49 "avrc/avrc_api.cc", 50 "avrc/avrc_bld_ct.cc", 51 "avrc/avrc_bld_tg.cc", 52 "avrc/avrc_opt.cc", 53 "avrc/avrc_pars_ct.cc", 54 "avrc/avrc_pars_tg.cc", 55 "avrc/avrc_sdp.cc", 56 "avrc/avrc_utils.cc", 57 "bnep/bnep_api.cc", 58 "bnep/bnep_main.cc", 59 "bnep/bnep_utils.cc", 60 "btm/ble_advertiser_hci_interface.cc", 61 "btm/btm_acl.cc", 62 "btm/btm_ble.cc", 63 "btm/btm_ble_addr.cc", 64 "btm/btm_ble_adv_filter.cc", 65 "btm/btm_ble_batchscan.cc", 66 "btm/btm_ble_bgconn.cc", 67 "btm/btm_ble_cont_energy.cc", 68 "btm/btm_ble_gap.cc", 69 "btm/btm_ble_multi_adv.cc", 70 "btm/btm_ble_privacy.cc", 71 "btm/btm_dev.cc", 72 "btm/btm_devctl.cc", 73 "btm/btm_inq.cc", 74 "btm/btm_main.cc", 75 "btm/btm_pm.cc", 76 "btm/btm_sco.cc", 77 "btm/btm_sec.cc", 78 "btu/btu_hcif.cc", 79 "btu/btu_init.cc", 80 "btu/btu_task.cc", 81 "gap/gap_api.cc", 82 "gap/gap_ble.cc", 83 "gap/gap_conn.cc", 84 "gap/gap_utils.cc", 85 "gatt/att_protocol.cc", 86 "gatt/gatt_api.cc", 87 "gatt/gatt_attr.cc", 88 "gatt/gatt_auth.cc", 89 "gatt/gatt_cl.cc", 90 "gatt/gatt_db.cc", 91 "gatt/gatt_main.cc", 92 "gatt/gatt_sr.cc", 93 "gatt/gatt_utils.cc", 94 "hcic/hciblecmds.cc", 95 "hcic/hcicmds.cc", 96 "hid/hidh_api.cc", 97 "hid/hidh_conn.cc", 98 "hid/hidd_api.cc", 99 "hid/hidd_conn.cc", 100 "l2cap/l2c_api.cc", 101 "l2cap/l2c_ble.cc", 102 "l2cap/l2c_csm.cc", 103 "l2cap/l2c_fcr.cc", 104 "l2cap/l2c_link.cc", 105 "l2cap/l2c_main.cc", 106 "l2cap/l2c_ucd.cc", 107 "l2cap/l2c_utils.cc", 108 "l2cap/l2cap_client.cc", 109 "mcap/mca_api.cc", 110 "mcap/mca_cact.cc", 111 "mcap/mca_csm.cc", 112 "mcap/mca_dact.cc", 113 "mcap/mca_dsm.cc", 114 "mcap/mca_l2c.cc", 115 "mcap/mca_main.cc", 116 "pan/pan_api.cc", 117 "pan/pan_main.cc", 118 "pan/pan_utils.cc", 119 "rfcomm/port_api.cc", 120 "rfcomm/port_rfc.cc", 121 "rfcomm/port_utils.cc", 122 "rfcomm/rfc_l2cap_if.cc", 123 "rfcomm/rfc_mx_fsm.cc", 124 "rfcomm/rfc_port_fsm.cc", 125 "rfcomm/rfc_port_if.cc", 126 "rfcomm/rfc_ts_frames.cc", 127 "rfcomm/rfc_utils.cc", 128 "sdp/sdp_api.cc", 129 "sdp/sdp_db.cc", 130 "sdp/sdp_discovery.cc", 131 "sdp/sdp_main.cc", 132 "sdp/sdp_server.cc", 133 "sdp/sdp_utils.cc", 134 "smp/aes.cc", 135 "smp/p_256_curvepara.cc", 136 "smp/p_256_ecc_pp.cc", 137 "smp/p_256_multprecision.cc", 138 "smp/smp_act.cc", 139 "smp/smp_api.cc", 140 "smp/smp_br_main.cc", 141 "smp/smp_cmac.cc", 142 "smp/smp_keys.cc", 143 "smp/smp_l2c.cc", 144 "smp/smp_main.cc", 145 "smp/smp_utils.cc", 146 "srvc/srvc_battery.cc", 147 "srvc/srvc_dis.cc", 148 "srvc/srvc_eng.cc", 149 ] 150 151 include_dirs = [ 152 "include", 153 "avct", 154 "btm", 155 "avrc", 156 "l2cap", 157 "avdt", 158 "gatt", 159 "gap", 160 "pan", 161 "bnep", 162 "hid", 163 "sdp", 164 "smp", 165 "srvc", 166 "//btcore/include", 167 "//vnd/include", 168 "//vnd/ble", 169 "//btif/include", 170 "//hci/include", 171 "//include", 172 "//udrv/include", 173 "//rpc/include", 174 "//hcis", 175 "//ctrlr/include", 176 "//bta/include", 177 "//bta/sys", 178 "//utils/include", 179 "//", 180 ] 181 182 deps = [ 183 "//third_party/libchrome:base", 184 "//third_party/libldac:libldacBT_enc", 185 "//third_party/libldac:libldacBT_abr", 186 "//third_party/aac:libFraunhoferAAC", 187 ] 188 } 189 190 executable("stack_unittests") { 191 testonly = true 192 sources = [ 193 "test/stack_a2dp_test.cc", 194 ] 195 196 include_dirs = [ 197 "include", 198 "//", 199 "//bta/include", 200 "//bta/sys", 201 "//btcore/include", 202 "//embdrv/sbc/encoder/include", 203 "//hci/include", 204 "//include", 205 "//stack/a2dp", 206 "//stack/btm", 207 "//stack/include", 208 "//third_party/tinyxml2", 209 "//udrv/include", 210 "//utils/include", 211 "//vnd/include" 212 ] 213 214 libs = [ 215 "-ldl", 216 "-lpthread", 217 "-lresolv", 218 "-lrt", 219 "-lz", 220 "-latomic", 221 ] 222 223 deps = [ 224 ":stack", 225 "//osi", 226 "//btcore", 227 "//device", 228 "//embdrv/sbc", 229 "//hci", 230 "//main:bluetooth.default", 231 "//third_party/googletest:gmock_main", 232 "//third_party/libchrome:base", 233 ] 234 } 235 236 executable("net_test_stack_multi_adv") { 237 testonly = true 238 sources = [ 239 "btm/btm_ble_multi_adv.cc", 240 "test/ble_advertiser_test.cc", 241 ] 242 243 include_dirs = [ 244 "include", 245 "//", 246 "//btcore/include", 247 "//hci/include", 248 "//include", 249 "//stack/btm", 250 ] 251 252 libs = [ 253 "-ldl", 254 "-lpthread", 255 "-lresolv", 256 "-lrt", 257 "-lz", 258 "-latomic", 259 ] 260 261 deps = [ 262 "//third_party/googletest:gmock_main", 263 "//third_party/libchrome:base", 264 ] 265 } 266 267