Arman Uguray | ab77f13 | 2015-05-26 14:50:36 -0700 | [diff] [blame] | 1 | # |
Jakub Pawlowski | 3b10fdd | 2017-09-18 09:00:20 -0700 | [diff] [blame] | 2 | # Copyright 2015 Google, Inc. |
Arman Uguray | ab77f13 | 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 | |
Jakub Pawlowski | a5a4e27 | 2018-06-21 14:23:47 +0200 | [diff] [blame] | 17 | static_library("crypto_toolbox") { |
| 18 | sources = [ |
Jakub Pawlowski | a5a4e27 | 2018-06-21 14:23:47 +0200 | [diff] [blame] | 19 | "crypto_toolbox/aes.cc", |
| 20 | "crypto_toolbox/aes_cmac.cc", |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 21 | "crypto_toolbox/crypto_toolbox.cc", |
Jakub Pawlowski | a5a4e27 | 2018-06-21 14:23:47 +0200 | [diff] [blame] | 22 | ] |
| 23 | |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 24 | include_dirs = [ "//bt/" ] |
Jakub Pawlowski | a5a4e27 | 2018-06-21 14:23:47 +0200 | [diff] [blame] | 25 | |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 26 | configs += [ "//bt:target_defaults" ] |
Jakub Pawlowski | a5a4e27 | 2018-06-21 14:23:47 +0200 | [diff] [blame] | 27 | } |
| 28 | |
Abhishek Pandit-Subedi | c86d26f | 2021-01-08 19:53:23 -0800 | [diff] [blame] | 29 | source_set("nonstandard_codecs") { |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 30 | if (defined(use.bt_nonstandard_codecs) && use.bt_nonstandard_codecs) { |
| 31 | sources = [ |
| 32 | "a2dp/a2dp_aac.cc", |
| 33 | "a2dp/a2dp_aac_decoder.cc", |
| 34 | "a2dp/a2dp_aac_encoder.cc", |
Abhishek Pandit-Subedi | 9bd8242 | 2021-03-02 22:33:10 +0000 | [diff] [blame] | 35 | "a2dp/a2dp_vendor.cc", |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 36 | "a2dp/a2dp_vendor_aptx.cc", |
| 37 | "a2dp/a2dp_vendor_aptx_encoder.cc", |
| 38 | "a2dp/a2dp_vendor_aptx_hd.cc", |
| 39 | "a2dp/a2dp_vendor_aptx_hd_encoder.cc", |
| 40 | "a2dp/a2dp_vendor_ldac.cc", |
| 41 | "a2dp/a2dp_vendor_ldac_abr.cc", |
| 42 | "a2dp/a2dp_vendor_ldac_decoder.cc", |
| 43 | "a2dp/a2dp_vendor_ldac_encoder.cc", |
| 44 | ] |
Abhishek Pandit-Subedi | c86d26f | 2021-01-08 19:53:23 -0800 | [diff] [blame] | 45 | |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 46 | include_dirs = [ |
| 47 | "//bt", |
| 48 | "//bt/bta/include", |
| 49 | "//bt/btif/include", |
| 50 | "//bt/internal_include", |
| 51 | "//bt/stack/include", |
| 52 | "//bt/utils/include", |
| 53 | ] |
| 54 | |
Abhishek Pandit-Subedi | 9bd8242 | 2021-03-02 22:33:10 +0000 | [diff] [blame] | 55 | deps = [ "//bt/gd/rust/shim:init_flags_bridge_header" ] |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 56 | |
| 57 | configs += [ |
| 58 | "//bt:target_defaults", |
| 59 | "//bt:external_libldac", |
| 60 | "//bt:external_aac", |
| 61 | ] |
| 62 | } |
Abhishek Pandit-Subedi | c86d26f | 2021-01-08 19:53:23 -0800 | [diff] [blame] | 63 | } |
| 64 | |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 65 | source_set("stack") { |
Abhishek Pandit-Subedi | c86d26f | 2021-01-08 19:53:23 -0800 | [diff] [blame] | 66 | sources = [ |
| 67 | "a2dp/a2dp_api.cc", |
| 68 | "a2dp/a2dp_codec_config.cc", |
| 69 | "a2dp/a2dp_sbc.cc", |
| 70 | "a2dp/a2dp_sbc_decoder.cc", |
| 71 | "a2dp/a2dp_sbc_encoder.cc", |
| 72 | "a2dp/a2dp_sbc_up_sample.cc", |
Abhishek Pandit-Subedi | 9bd8242 | 2021-03-02 22:33:10 +0000 | [diff] [blame] | 73 | "acl/acl.cc", |
| 74 | "acl/ble_acl.cc", |
Abhishek Pandit-Subedi | c86d26f | 2021-01-08 19:53:23 -0800 | [diff] [blame] | 75 | "acl/btm_acl.cc", |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 76 | "acl/btm_ble_connection_establishment.cc", |
Abhishek Pandit-Subedi | c86d26f | 2021-01-08 19:53:23 -0800 | [diff] [blame] | 77 | "acl/btm_pm.cc", |
Pavlin Radoslavov | 0c00b7d | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 78 | "avct/avct_api.cc", |
| 79 | "avct/avct_bcb_act.cc", |
| 80 | "avct/avct_ccb.cc", |
| 81 | "avct/avct_l2c.cc", |
| 82 | "avct/avct_l2c_br.cc", |
| 83 | "avct/avct_lcb.cc", |
| 84 | "avct/avct_lcb_act.cc", |
| 85 | "avdt/avdt_ad.cc", |
| 86 | "avdt/avdt_api.cc", |
| 87 | "avdt/avdt_ccb.cc", |
| 88 | "avdt/avdt_ccb_act.cc", |
| 89 | "avdt/avdt_l2c.cc", |
| 90 | "avdt/avdt_msg.cc", |
| 91 | "avdt/avdt_scb.cc", |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 92 | "avdt/avdt_scb_act.cc", |
Pavlin Radoslavov | 0c00b7d | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 93 | "avrc/avrc_api.cc", |
| 94 | "avrc/avrc_bld_ct.cc", |
| 95 | "avrc/avrc_bld_tg.cc", |
| 96 | "avrc/avrc_opt.cc", |
| 97 | "avrc/avrc_pars_ct.cc", |
| 98 | "avrc/avrc_pars_tg.cc", |
| 99 | "avrc/avrc_sdp.cc", |
| 100 | "avrc/avrc_utils.cc", |
| 101 | "bnep/bnep_api.cc", |
| 102 | "bnep/bnep_main.cc", |
| 103 | "bnep/bnep_utils.cc", |
Jakub Pawlowski | a8cee4f | 2016-10-13 15:43:15 -0700 | [diff] [blame] | 104 | "btm/ble_advertiser_hci_interface.cc", |
Jakub Tyszkowski | 76992ce | 2020-04-30 12:42:01 +0200 | [diff] [blame] | 105 | "btm/ble_scanner_hci_interface.cc", |
Pavlin Radoslavov | 0c00b7d | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 106 | "btm/btm_ble.cc", |
| 107 | "btm/btm_ble_addr.cc", |
| 108 | "btm/btm_ble_adv_filter.cc", |
| 109 | "btm/btm_ble_batchscan.cc", |
Jakub Pawlowski | 202a146 | 2016-05-25 17:10:56 -0700 | [diff] [blame] | 110 | "btm/btm_ble_bgconn.cc", |
Pavlin Radoslavov | 0c00b7d | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 111 | "btm/btm_ble_cont_energy.cc", |
| 112 | "btm/btm_ble_gap.cc", |
Jakub Pawlowski | c09e8aa | 2016-09-05 04:31:34 -0700 | [diff] [blame] | 113 | "btm/btm_ble_multi_adv.cc", |
Pavlin Radoslavov | 0c00b7d | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 114 | "btm/btm_ble_privacy.cc", |
Abhishek Pandit-Subedi | 9bd8242 | 2021-03-02 22:33:10 +0000 | [diff] [blame] | 115 | "btm/btm_client_interface.cc", |
Pavlin Radoslavov | 0c00b7d | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 116 | "btm/btm_dev.cc", |
| 117 | "btm/btm_devctl.cc", |
| 118 | "btm/btm_inq.cc", |
Jakub Tyszkowski | d093be0 | 2020-08-20 10:58:19 +0000 | [diff] [blame] | 119 | "btm/btm_iso.cc", |
Pavlin Radoslavov | 0c00b7d | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 120 | "btm/btm_main.cc", |
Abhishek Pandit-Subedi | 9bd8242 | 2021-03-02 22:33:10 +0000 | [diff] [blame] | 121 | "btm/btm_scn.cc", |
Pavlin Radoslavov | 0c00b7d | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 122 | "btm/btm_sco.cc", |
Hansong Zhang | bc82d59 | 2021-09-14 15:40:37 -0700 | [diff] [blame^] | 123 | "btm/btm_sco_hci.cc", |
Pavlin Radoslavov | 0c00b7d | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 124 | "btm/btm_sec.cc", |
| 125 | "btu/btu_hcif.cc", |
Pavlin Radoslavov | 0c00b7d | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 126 | "btu/btu_task.cc", |
Łukasz Rymanowski | 3bde05c | 2020-05-09 01:26:11 +0200 | [diff] [blame] | 127 | "eatt/eatt.cc", |
Pavlin Radoslavov | 0c00b7d | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 128 | "gap/gap_ble.cc", |
| 129 | "gap/gap_conn.cc", |
Pavlin Radoslavov | 0c00b7d | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 130 | "gatt/att_protocol.cc", |
Jakub Pawlowski | 22d721e | 2018-11-09 11:53:11 +0100 | [diff] [blame] | 131 | "gatt/connection_manager.cc", |
Pavlin Radoslavov | 0c00b7d | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 132 | "gatt/gatt_api.cc", |
| 133 | "gatt/gatt_attr.cc", |
| 134 | "gatt/gatt_auth.cc", |
| 135 | "gatt/gatt_cl.cc", |
| 136 | "gatt/gatt_db.cc", |
| 137 | "gatt/gatt_main.cc", |
| 138 | "gatt/gatt_sr.cc", |
Abhishek Pandit-Subedi | 9bd8242 | 2021-03-02 22:33:10 +0000 | [diff] [blame] | 139 | "gatt/gatt_sr_hash.cc", |
Pavlin Radoslavov | 0c00b7d | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 140 | "gatt/gatt_utils.cc", |
| 141 | "hcic/hciblecmds.cc", |
| 142 | "hcic/hcicmds.cc", |
Hemant Gupta | 2842522 | 2014-04-18 12:34:55 +0530 | [diff] [blame] | 143 | "hid/hidd_api.cc", |
| 144 | "hid/hidd_conn.cc", |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 145 | "hid/hidh_api.cc", |
| 146 | "hid/hidh_conn.cc", |
Pavlin Radoslavov | 0c00b7d | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 147 | "l2cap/l2c_api.cc", |
| 148 | "l2cap/l2c_ble.cc", |
| 149 | "l2cap/l2c_csm.cc", |
| 150 | "l2cap/l2c_fcr.cc", |
| 151 | "l2cap/l2c_link.cc", |
| 152 | "l2cap/l2c_main.cc", |
Pavlin Radoslavov | 0c00b7d | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 153 | "l2cap/l2c_utils.cc", |
Chen Chen | 534bf24 | 2021-03-10 15:41:42 -0800 | [diff] [blame] | 154 | "metrics/stack_metrics_logging.cc", |
Pavlin Radoslavov | 0c00b7d | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 155 | "pan/pan_api.cc", |
| 156 | "pan/pan_main.cc", |
| 157 | "pan/pan_utils.cc", |
| 158 | "rfcomm/port_api.cc", |
| 159 | "rfcomm/port_rfc.cc", |
| 160 | "rfcomm/port_utils.cc", |
| 161 | "rfcomm/rfc_l2cap_if.cc", |
| 162 | "rfcomm/rfc_mx_fsm.cc", |
| 163 | "rfcomm/rfc_port_fsm.cc", |
| 164 | "rfcomm/rfc_port_if.cc", |
| 165 | "rfcomm/rfc_ts_frames.cc", |
| 166 | "rfcomm/rfc_utils.cc", |
| 167 | "sdp/sdp_api.cc", |
| 168 | "sdp/sdp_db.cc", |
| 169 | "sdp/sdp_discovery.cc", |
| 170 | "sdp/sdp_main.cc", |
| 171 | "sdp/sdp_server.cc", |
| 172 | "sdp/sdp_utils.cc", |
Pavlin Radoslavov | 0c00b7d | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 173 | "smp/p_256_curvepara.cc", |
| 174 | "smp/p_256_ecc_pp.cc", |
| 175 | "smp/p_256_multprecision.cc", |
| 176 | "smp/smp_act.cc", |
| 177 | "smp/smp_api.cc", |
| 178 | "smp/smp_br_main.cc", |
Pavlin Radoslavov | 0c00b7d | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 179 | "smp/smp_keys.cc", |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 180 | "smp/smp_l2c.cc", |
Pavlin Radoslavov | 0c00b7d | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 181 | "smp/smp_main.cc", |
| 182 | "smp/smp_utils.cc", |
Pavlin Radoslavov | 0c00b7d | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 183 | "srvc/srvc_dis.cc", |
| 184 | "srvc/srvc_eng.cc", |
Scott James Remnant | daef475 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 185 | ] |
| 186 | |
| 187 | include_dirs = [ |
Abhishek Pandit-Subedi | c86d26f | 2021-01-08 19:53:23 -0800 | [diff] [blame] | 188 | ".", |
Scott James Remnant | daef475 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 189 | "include", |
| 190 | "avct", |
| 191 | "btm", |
| 192 | "avrc", |
| 193 | "l2cap", |
| 194 | "avdt", |
| 195 | "gatt", |
| 196 | "gap", |
| 197 | "pan", |
| 198 | "bnep", |
Łukasz Rymanowski | 3bde05c | 2020-05-09 01:26:11 +0200 | [diff] [blame] | 199 | "eatt", |
Scott James Remnant | daef475 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 200 | "hid", |
Chen Chen | 534bf24 | 2021-03-10 15:41:42 -0800 | [diff] [blame] | 201 | "metrics", |
Scott James Remnant | daef475 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 202 | "sdp", |
| 203 | "smp", |
| 204 | "srvc", |
Abhishek Pandit-Subedi | c86d26f | 2021-01-08 19:53:23 -0800 | [diff] [blame] | 205 | "//bt/types", |
| 206 | "//bt/linux_include", |
| 207 | "//bt/internal_include", |
| 208 | "//bt/btcore/include", |
| 209 | "//bt/vnd/include", |
| 210 | "//bt/vnd/ble", |
| 211 | "//bt/btif/include", |
| 212 | "//bt/hci/include", |
Abhishek Pandit-Subedi | c86d26f | 2021-01-08 19:53:23 -0800 | [diff] [blame] | 213 | "//bt/udrv/include", |
| 214 | "//bt/rpc/include", |
| 215 | "//bt/hcis", |
| 216 | "//bt/ctrlr/include", |
| 217 | "//bt/bta/include", |
| 218 | "//bt/bta/sys", |
| 219 | "//bt/utils/include", |
| 220 | "//bt/", |
Scott James Remnant | daef475 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 221 | ] |
Jakub Pawlowski | c287f08 | 2016-09-06 07:42:36 -0700 | [diff] [blame] | 222 | |
| 223 | deps = [ |
Jakub Pawlowski | a5a4e27 | 2018-06-21 14:23:47 +0200 | [diff] [blame] | 224 | ":crypto_toolbox", |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 225 | ":nonstandard_codecs", |
Abhishek Pandit-Subedi | 39c3961 | 2021-03-02 22:33:33 +0000 | [diff] [blame] | 226 | "//bt:libbt-platform-protos-lite", |
Abhishek Pandit-Subedi | c86d26f | 2021-01-08 19:53:23 -0800 | [diff] [blame] | 227 | "//bt/gd/rust/shim:init_flags_bridge_header", |
Abhishek Pandit-Subedi | c86d26f | 2021-01-08 19:53:23 -0800 | [diff] [blame] | 228 | "//bt/types", |
Abhishek Pandit-Subedi | 9bd8242 | 2021-03-02 22:33:10 +0000 | [diff] [blame] | 229 | "//bt/types", |
Abhishek Pandit-Subedi | c86d26f | 2021-01-08 19:53:23 -0800 | [diff] [blame] | 230 | ] |
| 231 | |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 232 | configs += [ "//bt:target_defaults" ] |
Jakub Pawlowski | a5a4e27 | 2018-06-21 14:23:47 +0200 | [diff] [blame] | 233 | } |
| 234 | |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 235 | if (use.test) { |
| 236 | executable("net_test_btm_iso") { |
| 237 | sources = [ |
| 238 | "btm/btm_iso.cc", |
| 239 | "test/btm_iso_test.cc", |
| 240 | "test/common/mock_controller.cc", |
| 241 | "test/common/mock_gatt_layer.cc", |
| 242 | "test/common/mock_hcic_layer.cc", |
| 243 | ] |
Jakub Pawlowski | e4e2f64 | 2016-10-20 10:19:50 -0700 | [diff] [blame] | 244 | |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 245 | include_dirs = [ |
| 246 | "btm", |
| 247 | "include", |
| 248 | "test/common", |
| 249 | "//bt/internal_include", |
| 250 | "//bt/packet/tests", |
| 251 | ] |
Jakub Pawlowski | e4e2f64 | 2016-10-20 10:19:50 -0700 | [diff] [blame] | 252 | |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 253 | deps = [ |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 254 | "//bt/common", |
Abhishek Pandit-Subedi | 9bd8242 | 2021-03-02 22:33:10 +0000 | [diff] [blame] | 255 | "//bt/osi", |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 256 | ] |
Jakub Pawlowski | e4e2f64 | 2016-10-20 10:19:50 -0700 | [diff] [blame] | 257 | |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 258 | configs += [ |
| 259 | "//bt:external_gmock_main", |
| 260 | "//bt:target_defaults", |
| 261 | ] |
| 262 | } |
Jakub Pawlowski | e4e2f64 | 2016-10-20 10:19:50 -0700 | [diff] [blame] | 263 | } |
| 264 | |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 265 | if (defined(use.android) && use.android) { |
| 266 | executable("stack_unittests") { |
| 267 | sources = [ |
| 268 | "test/stack_a2dp_test.cc", |
| 269 | "test/stack_avrcp_test.cc", |
| 270 | ] |
| 271 | |
| 272 | include_dirs = [ |
| 273 | "include", |
| 274 | "//bt/", |
| 275 | "//bt/bta/eatt", |
| 276 | "//bt/bta/include", |
| 277 | "//bt/bta/sys", |
| 278 | "//bt/btcore/include", |
| 279 | "//bt/embdrv/sbc/encoder/include", |
| 280 | "//bt/hci/include", |
| 281 | "//bt/internal_include", |
| 282 | "//bt/stack/a2dp", |
| 283 | "//bt/stack/btm", |
| 284 | "//bt/stack/include", |
| 285 | "//bt/udrv/include", |
| 286 | "//bt/utils/include", |
| 287 | "//bt/vnd/include", |
| 288 | ] |
| 289 | |
| 290 | libs = [ |
| 291 | "dl", |
| 292 | "pthread", |
| 293 | "resolv", |
| 294 | "rt", |
| 295 | "z", |
| 296 | ] |
| 297 | |
| 298 | deps = [ |
| 299 | ":stack", |
| 300 | "//bt/btcore", |
| 301 | "//bt/device", |
| 302 | "//bt/embdrv/g722", |
| 303 | "//bt/embdrv/sbc", |
| 304 | "//bt/hci", |
| 305 | "//bt/main:bluetooth", |
| 306 | "//bt/osi", |
| 307 | "//bt/types", |
| 308 | ] |
| 309 | |
| 310 | configs += [ |
| 311 | "//bt:external_tinyxml2", |
| 312 | "//bt:external_gmock_main", |
| 313 | "//bt:target_defaults", |
| 314 | ] |
| 315 | } |
| 316 | |
| 317 | executable("net_test_stack_crypto_toolbox") { |
| 318 | sources = [ "test/crypto_toolbox_test.cc" ] |
| 319 | |
| 320 | include_dirs = [ "//bt/" ] |
| 321 | |
| 322 | deps = [ ":crypto_toolbox" ] |
| 323 | |
| 324 | configs += [ |
| 325 | "//bt:external_gmock_main", |
| 326 | "//bt:target_defaults", |
| 327 | ] |
| 328 | } |
| 329 | |
| 330 | executable("net_test_stack_smp") { |
| 331 | sources = [ |
| 332 | "smp/p_256_curvepara.cc", |
| 333 | "smp/p_256_ecc_pp.cc", |
| 334 | "smp/p_256_multprecision.cc", |
| 335 | "smp/smp_api.cc", |
| 336 | "smp/smp_keys.cc", |
| 337 | "smp/smp_main.cc", |
| 338 | "smp/smp_utils.cc", |
| 339 | "test/stack_smp_test.cc", |
| 340 | ] |
| 341 | |
| 342 | include_dirs = [ |
| 343 | "//bt/", |
| 344 | "//bt/linux_include", |
| 345 | "//bt/internal_include", |
| 346 | "//bt/btcore/include", |
| 347 | "//bt/hci/include", |
| 348 | "//bt/utils/include", |
| 349 | "//bt/bta/include", |
| 350 | "//bt/bta/sys", |
| 351 | "//bt/btcore/include", |
| 352 | "//bt/embdrv/sbc/encoder/include", |
| 353 | "//bt/hci/include", |
| 354 | "//bt/internal_include", |
| 355 | "//bt/stack/a2dp", |
| 356 | "//bt/stack/l2cap", |
| 357 | "//bt/stack/btm", |
| 358 | "//bt/stack/include", |
| 359 | "//bt/udrv/include", |
| 360 | "//bt/utils/include", |
| 361 | "//bt/vnd/include", |
| 362 | ] |
| 363 | |
| 364 | libs = [ |
| 365 | "dl", |
| 366 | "pthread", |
| 367 | "resolv", |
| 368 | "rt", |
| 369 | "z", |
| 370 | ] |
| 371 | |
| 372 | deps = [ |
| 373 | ":crypto_toolbox", |
| 374 | "//bt/osi", |
| 375 | "//bt/types", |
| 376 | ] |
| 377 | |
| 378 | configs += [ |
| 379 | "//bt:external_tinyxml2", |
| 380 | "//bt:external_gmock_main", |
| 381 | "//bt:target_defaults", |
| 382 | ] |
| 383 | } |
| 384 | |
| 385 | executable("net_test_stack_multi_adv") { |
| 386 | sources = [ |
| 387 | "btm/btm_ble_multi_adv.cc", |
| 388 | "test/ble_advertiser_test.cc", |
| 389 | ] |
| 390 | |
| 391 | include_dirs = [ |
| 392 | "include", |
| 393 | "//bt/", |
| 394 | "//bt/btcore/include", |
| 395 | "//bt/hci/include", |
| 396 | "//bt/internal_include", |
| 397 | "//bt/stack/btm", |
| 398 | ] |
| 399 | |
| 400 | libs = [ |
| 401 | "dl", |
| 402 | "pthread", |
| 403 | "resolv", |
| 404 | "rt", |
| 405 | "z", |
| 406 | ] |
| 407 | |
| 408 | deps = [ "//bt/types" ] |
| 409 | |
| 410 | configs += [ |
| 411 | "//bt:external_gmock_main", |
| 412 | "//bt:target_defaults", |
| 413 | ] |
| 414 | } |
| 415 | } |