Arman Uguray | 9ca3fb8 | 2015-05-26 14:50:36 -0700 | [diff] [blame] | 1 | # |
Jakub Pawlowski | 5b790fe | 2017-09-18 09:00:20 -0700 | [diff] [blame] | 2 | # Copyright 2015 Google, Inc. |
Arman Uguray | 9ca3fb8 | 2015-05-26 14:50:36 -0700 | [diff] [blame] | 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 | |
Arman Uguray | 2c494e1 | 2015-05-29 14:43:20 -0700 | [diff] [blame] | 17 | static_library("stack") { |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 18 | sources = [ |
Jakub Pawlowski | eff4dd5 | 2017-02-20 20:18:51 +0100 | [diff] [blame] | 19 | "a2dp/a2dp_aac.cc", |
Bailey Forrest | 7e2ab69 | 2017-06-16 15:38:03 -0700 | [diff] [blame] | 20 | "a2dp/a2dp_aac_decoder.cc", |
Jakub Pawlowski | eff4dd5 | 2017-02-20 20:18:51 +0100 | [diff] [blame] | 21 | "a2dp/a2dp_aac_encoder.cc", |
Pavlin Radoslavov | f66f4e9 | 2016-10-14 15:14:37 -0700 | [diff] [blame] | 22 | "a2dp/a2dp_api.cc", |
Jakub Pawlowski | a9743d8 | 2017-01-09 00:02:58 -0800 | [diff] [blame] | 23 | "a2dp/a2dp_codec_config.cc", |
Pavlin Radoslavov | f66f4e9 | 2016-10-14 15:14:37 -0700 | [diff] [blame] | 24 | "a2dp/a2dp_sbc.cc", |
Bailey Forrest | 7e2ab69 | 2017-06-16 15:38:03 -0700 | [diff] [blame] | 25 | "a2dp/a2dp_sbc_decoder.cc", |
Pavlin Radoslavov | f66f4e9 | 2016-10-14 15:14:37 -0700 | [diff] [blame] | 26 | "a2dp/a2dp_sbc_encoder.cc", |
| 27 | "a2dp/a2dp_sbc_up_sample.cc", |
| 28 | "a2dp/a2dp_vendor.cc", |
Jakub Pawlowski | a9743d8 | 2017-01-09 00:02:58 -0800 | [diff] [blame] | 29 | "a2dp/a2dp_vendor_aptx.cc", |
| 30 | "a2dp/a2dp_vendor_aptx_encoder.cc", |
| 31 | "a2dp/a2dp_vendor_aptx_hd.cc", |
| 32 | "a2dp/a2dp_vendor_aptx_hd_encoder.cc", |
| 33 | "a2dp/a2dp_vendor_ldac.cc", |
Jakub Pawlowski | 17f449d | 2017-04-10 02:19:29 -0700 | [diff] [blame] | 34 | "a2dp/a2dp_vendor_ldac_abr.cc", |
Jakub Pawlowski | a9743d8 | 2017-01-09 00:02:58 -0800 | [diff] [blame] | 35 | "a2dp/a2dp_vendor_ldac_encoder.cc", |
Pavlin Radoslavov | b2a292b | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 36 | "avct/avct_api.cc", |
| 37 | "avct/avct_bcb_act.cc", |
| 38 | "avct/avct_ccb.cc", |
| 39 | "avct/avct_l2c.cc", |
| 40 | "avct/avct_l2c_br.cc", |
| 41 | "avct/avct_lcb.cc", |
| 42 | "avct/avct_lcb_act.cc", |
| 43 | "avdt/avdt_ad.cc", |
| 44 | "avdt/avdt_api.cc", |
| 45 | "avdt/avdt_ccb.cc", |
| 46 | "avdt/avdt_ccb_act.cc", |
| 47 | "avdt/avdt_l2c.cc", |
| 48 | "avdt/avdt_msg.cc", |
| 49 | "avdt/avdt_scb.cc", |
| 50 | "avdt/avdt_scb_act.cc", |
| 51 | "avrc/avrc_api.cc", |
| 52 | "avrc/avrc_bld_ct.cc", |
| 53 | "avrc/avrc_bld_tg.cc", |
| 54 | "avrc/avrc_opt.cc", |
| 55 | "avrc/avrc_pars_ct.cc", |
| 56 | "avrc/avrc_pars_tg.cc", |
| 57 | "avrc/avrc_sdp.cc", |
| 58 | "avrc/avrc_utils.cc", |
| 59 | "bnep/bnep_api.cc", |
| 60 | "bnep/bnep_main.cc", |
| 61 | "bnep/bnep_utils.cc", |
Jakub Pawlowski | cc8d3ab | 2016-10-13 15:43:15 -0700 | [diff] [blame] | 62 | "btm/ble_advertiser_hci_interface.cc", |
Pavlin Radoslavov | b2a292b | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 63 | "btm/btm_acl.cc", |
| 64 | "btm/btm_ble.cc", |
| 65 | "btm/btm_ble_addr.cc", |
| 66 | "btm/btm_ble_adv_filter.cc", |
| 67 | "btm/btm_ble_batchscan.cc", |
Jakub Pawlowski | 488005b | 2016-05-25 17:10:56 -0700 | [diff] [blame] | 68 | "btm/btm_ble_bgconn.cc", |
Pavlin Radoslavov | b2a292b | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 69 | "btm/btm_ble_cont_energy.cc", |
| 70 | "btm/btm_ble_gap.cc", |
Jakub Pawlowski | 0148726 | 2016-09-05 04:31:34 -0700 | [diff] [blame] | 71 | "btm/btm_ble_multi_adv.cc", |
Pavlin Radoslavov | b2a292b | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 72 | "btm/btm_ble_privacy.cc", |
| 73 | "btm/btm_dev.cc", |
| 74 | "btm/btm_devctl.cc", |
| 75 | "btm/btm_inq.cc", |
| 76 | "btm/btm_main.cc", |
| 77 | "btm/btm_pm.cc", |
| 78 | "btm/btm_sco.cc", |
| 79 | "btm/btm_sec.cc", |
| 80 | "btu/btu_hcif.cc", |
| 81 | "btu/btu_init.cc", |
| 82 | "btu/btu_task.cc", |
Pavlin Radoslavov | b2a292b | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 83 | "gap/gap_ble.cc", |
| 84 | "gap/gap_conn.cc", |
Pavlin Radoslavov | b2a292b | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 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", |
Hemant Gupta | 8843cc8 | 2014-04-18 12:34:55 +0530 | [diff] [blame] | 98 | "hid/hidd_api.cc", |
| 99 | "hid/hidd_conn.cc", |
Pavlin Radoslavov | b2a292b | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 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", |
Pavlin Radoslavov | b2a292b | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 106 | "l2cap/l2c_utils.cc", |
| 107 | "l2cap/l2cap_client.cc", |
| 108 | "mcap/mca_api.cc", |
| 109 | "mcap/mca_cact.cc", |
| 110 | "mcap/mca_csm.cc", |
| 111 | "mcap/mca_dact.cc", |
| 112 | "mcap/mca_dsm.cc", |
| 113 | "mcap/mca_l2c.cc", |
| 114 | "mcap/mca_main.cc", |
| 115 | "pan/pan_api.cc", |
| 116 | "pan/pan_main.cc", |
| 117 | "pan/pan_utils.cc", |
| 118 | "rfcomm/port_api.cc", |
| 119 | "rfcomm/port_rfc.cc", |
| 120 | "rfcomm/port_utils.cc", |
| 121 | "rfcomm/rfc_l2cap_if.cc", |
| 122 | "rfcomm/rfc_mx_fsm.cc", |
| 123 | "rfcomm/rfc_port_fsm.cc", |
| 124 | "rfcomm/rfc_port_if.cc", |
| 125 | "rfcomm/rfc_ts_frames.cc", |
| 126 | "rfcomm/rfc_utils.cc", |
| 127 | "sdp/sdp_api.cc", |
| 128 | "sdp/sdp_db.cc", |
| 129 | "sdp/sdp_discovery.cc", |
| 130 | "sdp/sdp_main.cc", |
| 131 | "sdp/sdp_server.cc", |
| 132 | "sdp/sdp_utils.cc", |
| 133 | "smp/aes.cc", |
| 134 | "smp/p_256_curvepara.cc", |
| 135 | "smp/p_256_ecc_pp.cc", |
| 136 | "smp/p_256_multprecision.cc", |
| 137 | "smp/smp_act.cc", |
| 138 | "smp/smp_api.cc", |
| 139 | "smp/smp_br_main.cc", |
| 140 | "smp/smp_cmac.cc", |
| 141 | "smp/smp_keys.cc", |
| 142 | "smp/smp_l2c.cc", |
| 143 | "smp/smp_main.cc", |
| 144 | "smp/smp_utils.cc", |
| 145 | "srvc/srvc_battery.cc", |
| 146 | "srvc/srvc_dis.cc", |
| 147 | "srvc/srvc_eng.cc", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 148 | ] |
| 149 | |
| 150 | include_dirs = [ |
| 151 | "include", |
| 152 | "avct", |
| 153 | "btm", |
| 154 | "avrc", |
| 155 | "l2cap", |
| 156 | "avdt", |
| 157 | "gatt", |
| 158 | "gap", |
| 159 | "pan", |
| 160 | "bnep", |
| 161 | "hid", |
| 162 | "sdp", |
| 163 | "smp", |
| 164 | "srvc", |
Jakub Pawlowski | 9e81461 | 2018-05-25 09:31:26 -0700 | [diff] [blame^] | 165 | "//internal_include", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 166 | "//btcore/include", |
| 167 | "//vnd/include", |
| 168 | "//vnd/ble", |
| 169 | "//btif/include", |
| 170 | "//hci/include", |
Jakub Pawlowski | c451068 | 2017-10-18 04:03:41 -0700 | [diff] [blame] | 171 | "//internal_include", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 172 | "//udrv/include", |
| 173 | "//rpc/include", |
| 174 | "//hcis", |
| 175 | "//ctrlr/include", |
| 176 | "//bta/include", |
| 177 | "//bta/sys", |
| 178 | "//utils/include", |
| 179 | "//", |
| 180 | ] |
Jakub Pawlowski | 0a009c3 | 2016-09-06 07:42:36 -0700 | [diff] [blame] | 181 | |
| 182 | deps = [ |
Jakub Pawlowski | d3988fd | 2017-07-14 21:08:47 -0700 | [diff] [blame] | 183 | "//types", |
Jakub Pawlowski | eff4dd5 | 2017-02-20 20:18:51 +0100 | [diff] [blame] | 184 | "//third_party/libchrome:base", |
| 185 | "//third_party/libldac:libldacBT_enc", |
Pavlin Radoslavov | e4f2b61 | 2017-03-28 18:40:32 -0700 | [diff] [blame] | 186 | "//third_party/libldac:libldacBT_abr", |
Jakub Pawlowski | eff4dd5 | 2017-02-20 20:18:51 +0100 | [diff] [blame] | 187 | "//third_party/aac:libFraunhoferAAC", |
Jakub Pawlowski | 0a009c3 | 2016-09-06 07:42:36 -0700 | [diff] [blame] | 188 | ] |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 189 | } |
Jakub Pawlowski | e47b769 | 2016-09-28 07:36:54 -0700 | [diff] [blame] | 190 | |
| 191 | executable("stack_unittests") { |
| 192 | testonly = true |
| 193 | sources = [ |
Pavlin Radoslavov | f66f4e9 | 2016-10-14 15:14:37 -0700 | [diff] [blame] | 194 | "test/stack_a2dp_test.cc", |
Jakub Pawlowski | e47b769 | 2016-09-28 07:36:54 -0700 | [diff] [blame] | 195 | ] |
| 196 | |
| 197 | include_dirs = [ |
| 198 | "include", |
| 199 | "//", |
Jakub Pawlowski | e47b769 | 2016-09-28 07:36:54 -0700 | [diff] [blame] | 200 | "//bta/include", |
| 201 | "//bta/sys", |
| 202 | "//btcore/include", |
| 203 | "//embdrv/sbc/encoder/include", |
| 204 | "//hci/include", |
Jakub Pawlowski | c451068 | 2017-10-18 04:03:41 -0700 | [diff] [blame] | 205 | "//internal_include", |
Jakub Pawlowski | e47b769 | 2016-09-28 07:36:54 -0700 | [diff] [blame] | 206 | "//stack/a2dp", |
| 207 | "//stack/btm", |
| 208 | "//stack/include", |
| 209 | "//third_party/tinyxml2", |
| 210 | "//udrv/include", |
| 211 | "//utils/include", |
| 212 | "//vnd/include" |
| 213 | ] |
| 214 | |
Jakub Pawlowski | 029a43b | 2016-10-19 23:31:13 -0700 | [diff] [blame] | 215 | libs = [ |
| 216 | "-ldl", |
| 217 | "-lpthread", |
| 218 | "-lresolv", |
| 219 | "-lrt", |
| 220 | "-lz", |
| 221 | "-latomic", |
| 222 | ] |
| 223 | |
Jakub Pawlowski | e47b769 | 2016-09-28 07:36:54 -0700 | [diff] [blame] | 224 | deps = [ |
| 225 | ":stack", |
| 226 | "//osi", |
| 227 | "//btcore", |
| 228 | "//device", |
Jakub Pawlowski | a9743d8 | 2017-01-09 00:02:58 -0800 | [diff] [blame] | 229 | "//embdrv/sbc", |
Jakub Pawlowski | 9e81461 | 2018-05-25 09:31:26 -0700 | [diff] [blame^] | 230 | "//embdrv/g722", |
Jakub Pawlowski | e47b769 | 2016-09-28 07:36:54 -0700 | [diff] [blame] | 231 | "//hci", |
Jakub Pawlowski | d3988fd | 2017-07-14 21:08:47 -0700 | [diff] [blame] | 232 | "//types", |
Jakub Pawlowski | 121882e | 2017-10-19 19:51:57 -0700 | [diff] [blame] | 233 | "//main:bluetooth", |
Jakub Pawlowski | e47b769 | 2016-09-28 07:36:54 -0700 | [diff] [blame] | 234 | "//third_party/googletest:gmock_main", |
| 235 | "//third_party/libchrome:base", |
| 236 | ] |
| 237 | } |
| 238 | |
Jakub Pawlowski | 6c0ca7a | 2016-10-20 10:19:50 -0700 | [diff] [blame] | 239 | executable("net_test_stack_multi_adv") { |
| 240 | testonly = true |
| 241 | sources = [ |
| 242 | "btm/btm_ble_multi_adv.cc", |
| 243 | "test/ble_advertiser_test.cc", |
| 244 | ] |
| 245 | |
| 246 | include_dirs = [ |
| 247 | "include", |
| 248 | "//", |
| 249 | "//btcore/include", |
| 250 | "//hci/include", |
Jakub Pawlowski | c451068 | 2017-10-18 04:03:41 -0700 | [diff] [blame] | 251 | "//internal_include", |
Jakub Pawlowski | 6c0ca7a | 2016-10-20 10:19:50 -0700 | [diff] [blame] | 252 | "//stack/btm", |
| 253 | ] |
| 254 | |
Jakub Pawlowski | d3988fd | 2017-07-14 21:08:47 -0700 | [diff] [blame] | 255 | libs = [ |
Jakub Pawlowski | 6c0ca7a | 2016-10-20 10:19:50 -0700 | [diff] [blame] | 256 | "-ldl", |
| 257 | "-lpthread", |
| 258 | "-lresolv", |
| 259 | "-lrt", |
| 260 | "-lz", |
| 261 | "-latomic", |
| 262 | ] |
| 263 | |
| 264 | deps = [ |
Jakub Pawlowski | d3988fd | 2017-07-14 21:08:47 -0700 | [diff] [blame] | 265 | "//types", |
Jakub Pawlowski | 6c0ca7a | 2016-10-20 10:19:50 -0700 | [diff] [blame] | 266 | "//third_party/googletest:gmock_main", |
| 267 | "//third_party/libchrome:base", |
| 268 | ] |
| 269 | } |
| 270 | |