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 | |
Abhishek Pandit-Subedi | 947d468 | 2021-11-12 15:52:11 -0800 | [diff] [blame] | 24 | include_dirs = [ "//bt/system/" ] |
Jakub Pawlowski | a5a4e27 | 2018-06-21 14:23:47 +0200 | [diff] [blame] | 25 | |
Abhishek Pandit-Subedi | 947d468 | 2021-11-12 15:52:11 -0800 | [diff] [blame] | 26 | configs += [ "//bt/system: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", |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 41 | "a2dp/a2dp_vendor_ldac_decoder.cc", |
| 42 | "a2dp/a2dp_vendor_ldac_encoder.cc", |
| 43 | ] |
Abhishek Pandit-Subedi | c86d26f | 2021-01-08 19:53:23 -0800 | [diff] [blame] | 44 | |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 45 | include_dirs = [ |
Abhishek Pandit-Subedi | 947d468 | 2021-11-12 15:52:11 -0800 | [diff] [blame] | 46 | "//bt/system", |
| 47 | "//bt/system/bta/include", |
| 48 | "//bt/system/btif/include", |
| 49 | "//bt/system/internal_include", |
| 50 | "//bt/system/stack/include", |
| 51 | "//bt/system/utils/include", |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 52 | ] |
| 53 | |
Abhishek Pandit-Subedi | 947d468 | 2021-11-12 15:52:11 -0800 | [diff] [blame] | 54 | deps = [ "//bt/system/gd/rust/shim:init_flags_bridge_header" ] |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 55 | |
| 56 | configs += [ |
Abhishek Pandit-Subedi | 947d468 | 2021-11-12 15:52:11 -0800 | [diff] [blame] | 57 | "//bt/system:target_defaults", |
| 58 | "//bt/system:external_libldac", |
| 59 | "//bt/system:external_aac", |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 60 | ] |
| 61 | } |
Abhishek Pandit-Subedi | c86d26f | 2021-01-08 19:53:23 -0800 | [diff] [blame] | 62 | } |
| 63 | |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 64 | source_set("stack") { |
Abhishek Pandit-Subedi | c86d26f | 2021-01-08 19:53:23 -0800 | [diff] [blame] | 65 | sources = [ |
| 66 | "a2dp/a2dp_api.cc", |
| 67 | "a2dp/a2dp_codec_config.cc", |
| 68 | "a2dp/a2dp_sbc.cc", |
| 69 | "a2dp/a2dp_sbc_decoder.cc", |
| 70 | "a2dp/a2dp_sbc_encoder.cc", |
| 71 | "a2dp/a2dp_sbc_up_sample.cc", |
Abhishek Pandit-Subedi | 9bd8242 | 2021-03-02 22:33:10 +0000 | [diff] [blame] | 72 | "acl/acl.cc", |
| 73 | "acl/ble_acl.cc", |
Abhishek Pandit-Subedi | c86d26f | 2021-01-08 19:53:23 -0800 | [diff] [blame] | 74 | "acl/btm_acl.cc", |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 75 | "acl/btm_ble_connection_establishment.cc", |
Abhishek Pandit-Subedi | c86d26f | 2021-01-08 19:53:23 -0800 | [diff] [blame] | 76 | "acl/btm_pm.cc", |
Pavlin Radoslavov | 0c00b7d | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 77 | "avct/avct_api.cc", |
| 78 | "avct/avct_bcb_act.cc", |
| 79 | "avct/avct_ccb.cc", |
| 80 | "avct/avct_l2c.cc", |
| 81 | "avct/avct_l2c_br.cc", |
| 82 | "avct/avct_lcb.cc", |
| 83 | "avct/avct_lcb_act.cc", |
| 84 | "avdt/avdt_ad.cc", |
| 85 | "avdt/avdt_api.cc", |
| 86 | "avdt/avdt_ccb.cc", |
| 87 | "avdt/avdt_ccb_act.cc", |
| 88 | "avdt/avdt_l2c.cc", |
| 89 | "avdt/avdt_msg.cc", |
| 90 | "avdt/avdt_scb.cc", |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 91 | "avdt/avdt_scb_act.cc", |
Pavlin Radoslavov | 0c00b7d | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 92 | "avrc/avrc_api.cc", |
| 93 | "avrc/avrc_bld_ct.cc", |
| 94 | "avrc/avrc_bld_tg.cc", |
| 95 | "avrc/avrc_opt.cc", |
| 96 | "avrc/avrc_pars_ct.cc", |
| 97 | "avrc/avrc_pars_tg.cc", |
| 98 | "avrc/avrc_sdp.cc", |
| 99 | "avrc/avrc_utils.cc", |
| 100 | "bnep/bnep_api.cc", |
| 101 | "bnep/bnep_main.cc", |
| 102 | "bnep/bnep_utils.cc", |
Jakub Pawlowski | a8cee4f | 2016-10-13 15:43:15 -0700 | [diff] [blame] | 103 | "btm/ble_advertiser_hci_interface.cc", |
Jakub Tyszkowski | 76992ce | 2020-04-30 12:42:01 +0200 | [diff] [blame] | 104 | "btm/ble_scanner_hci_interface.cc", |
Pavlin Radoslavov | 0c00b7d | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 105 | "btm/btm_ble.cc", |
| 106 | "btm/btm_ble_addr.cc", |
| 107 | "btm/btm_ble_adv_filter.cc", |
| 108 | "btm/btm_ble_batchscan.cc", |
Jakub Pawlowski | 202a146 | 2016-05-25 17:10:56 -0700 | [diff] [blame] | 109 | "btm/btm_ble_bgconn.cc", |
Pavlin Radoslavov | 0c00b7d | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 110 | "btm/btm_ble_cont_energy.cc", |
| 111 | "btm/btm_ble_gap.cc", |
Jakub Pawlowski | c09e8aa | 2016-09-05 04:31:34 -0700 | [diff] [blame] | 112 | "btm/btm_ble_multi_adv.cc", |
Pavlin Radoslavov | 0c00b7d | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 113 | "btm/btm_ble_privacy.cc", |
Abhishek Pandit-Subedi | 83a3fa8 | 2022-01-28 17:08:55 -0800 | [diff] [blame] | 114 | "btm/btm_ble_scanner.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 | 947d468 | 2021-11-12 15:52:11 -0800 | [diff] [blame] | 205 | "//bt/system/types", |
| 206 | "//bt/system/linux_include", |
| 207 | "//bt/system/internal_include", |
Abhishek Pandit-Subedi | 947d468 | 2021-11-12 15:52:11 -0800 | [diff] [blame] | 208 | "//bt/system/vnd/include", |
| 209 | "//bt/system/vnd/ble", |
| 210 | "//bt/system/btif/include", |
Abhishek Pandit-Subedi | 947d468 | 2021-11-12 15:52:11 -0800 | [diff] [blame] | 211 | "//bt/system/udrv/include", |
| 212 | "//bt/system/rpc/include", |
| 213 | "//bt/system/hcis", |
| 214 | "//bt/system/ctrlr/include", |
| 215 | "//bt/system/bta/include", |
| 216 | "//bt/system/bta/sys", |
| 217 | "//bt/system/utils/include", |
| 218 | "//bt/system/", |
Scott James Remnant | daef475 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 219 | ] |
Jakub Pawlowski | c287f08 | 2016-09-06 07:42:36 -0700 | [diff] [blame] | 220 | |
| 221 | deps = [ |
Jakub Pawlowski | a5a4e27 | 2018-06-21 14:23:47 +0200 | [diff] [blame] | 222 | ":crypto_toolbox", |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 223 | ":nonstandard_codecs", |
Abhishek Pandit-Subedi | 947d468 | 2021-11-12 15:52:11 -0800 | [diff] [blame] | 224 | "//bt/system:libbt-platform-protos-lite", |
| 225 | "//bt/system/gd/rust/shim:init_flags_bridge_header", |
| 226 | "//bt/system/types", |
| 227 | "//bt/system/types", |
Abhishek Pandit-Subedi | c86d26f | 2021-01-08 19:53:23 -0800 | [diff] [blame] | 228 | ] |
| 229 | |
Abhishek Pandit-Subedi | 947d468 | 2021-11-12 15:52:11 -0800 | [diff] [blame] | 230 | configs += [ "//bt/system:target_defaults" ] |
Jakub Pawlowski | a5a4e27 | 2018-06-21 14:23:47 +0200 | [diff] [blame] | 231 | } |
| 232 | |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 233 | if (use.test) { |
| 234 | executable("net_test_btm_iso") { |
| 235 | sources = [ |
| 236 | "btm/btm_iso.cc", |
| 237 | "test/btm_iso_test.cc", |
| 238 | "test/common/mock_controller.cc", |
| 239 | "test/common/mock_gatt_layer.cc", |
| 240 | "test/common/mock_hcic_layer.cc", |
| 241 | ] |
Jakub Pawlowski | e4e2f64 | 2016-10-20 10:19:50 -0700 | [diff] [blame] | 242 | |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 243 | include_dirs = [ |
| 244 | "btm", |
| 245 | "include", |
| 246 | "test/common", |
Abhishek Pandit-Subedi | 947d468 | 2021-11-12 15:52:11 -0800 | [diff] [blame] | 247 | "//bt/system/internal_include", |
| 248 | "//bt/system/packet/tests", |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 249 | ] |
Jakub Pawlowski | e4e2f64 | 2016-10-20 10:19:50 -0700 | [diff] [blame] | 250 | |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 251 | deps = [ |
Abhishek Pandit-Subedi | 947d468 | 2021-11-12 15:52:11 -0800 | [diff] [blame] | 252 | "//bt/system/common", |
| 253 | "//bt/system/osi", |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 254 | ] |
Jakub Pawlowski | e4e2f64 | 2016-10-20 10:19:50 -0700 | [diff] [blame] | 255 | |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 256 | configs += [ |
Abhishek Pandit-Subedi | 947d468 | 2021-11-12 15:52:11 -0800 | [diff] [blame] | 257 | "//bt/system:external_gmock_main", |
| 258 | "//bt/system:target_defaults", |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 259 | ] |
| 260 | } |
Jakub Pawlowski | e4e2f64 | 2016-10-20 10:19:50 -0700 | [diff] [blame] | 261 | } |
| 262 | |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 263 | if (defined(use.android) && use.android) { |
| 264 | executable("stack_unittests") { |
| 265 | sources = [ |
| 266 | "test/stack_a2dp_test.cc", |
| 267 | "test/stack_avrcp_test.cc", |
| 268 | ] |
| 269 | |
| 270 | include_dirs = [ |
| 271 | "include", |
Abhishek Pandit-Subedi | 947d468 | 2021-11-12 15:52:11 -0800 | [diff] [blame] | 272 | "//bt/system/", |
| 273 | "//bt/system/bta/eatt", |
| 274 | "//bt/system/bta/include", |
| 275 | "//bt/system/bta/sys", |
Abhishek Pandit-Subedi | 947d468 | 2021-11-12 15:52:11 -0800 | [diff] [blame] | 276 | "//bt/system/embdrv/sbc/encoder/include", |
Abhishek Pandit-Subedi | 947d468 | 2021-11-12 15:52:11 -0800 | [diff] [blame] | 277 | "//bt/system/internal_include", |
| 278 | "//bt/system/stack/a2dp", |
| 279 | "//bt/system/stack/btm", |
| 280 | "//bt/system/stack/include", |
| 281 | "//bt/system/udrv/include", |
| 282 | "//bt/system/utils/include", |
| 283 | "//bt/system/vnd/include", |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 284 | ] |
| 285 | |
| 286 | libs = [ |
| 287 | "dl", |
| 288 | "pthread", |
| 289 | "resolv", |
| 290 | "rt", |
| 291 | "z", |
| 292 | ] |
| 293 | |
| 294 | deps = [ |
| 295 | ":stack", |
Abhishek Pandit-Subedi | 947d468 | 2021-11-12 15:52:11 -0800 | [diff] [blame] | 296 | "//bt/system/btcore", |
| 297 | "//bt/system/device", |
| 298 | "//bt/system/embdrv/g722", |
| 299 | "//bt/system/embdrv/sbc", |
| 300 | "//bt/system/hci", |
| 301 | "//bt/system/main:bluetooth", |
| 302 | "//bt/system/osi", |
| 303 | "//bt/system/types", |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 304 | ] |
| 305 | |
| 306 | configs += [ |
Abhishek Pandit-Subedi | 947d468 | 2021-11-12 15:52:11 -0800 | [diff] [blame] | 307 | "//bt/system:external_tinyxml2", |
| 308 | "//bt/system:external_gmock_main", |
| 309 | "//bt/system:target_defaults", |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 310 | ] |
| 311 | } |
| 312 | |
| 313 | executable("net_test_stack_crypto_toolbox") { |
| 314 | sources = [ "test/crypto_toolbox_test.cc" ] |
| 315 | |
Abhishek Pandit-Subedi | 947d468 | 2021-11-12 15:52:11 -0800 | [diff] [blame] | 316 | include_dirs = [ "//bt/system/" ] |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 317 | |
| 318 | deps = [ ":crypto_toolbox" ] |
| 319 | |
| 320 | configs += [ |
Abhishek Pandit-Subedi | 947d468 | 2021-11-12 15:52:11 -0800 | [diff] [blame] | 321 | "//bt/system:external_gmock_main", |
| 322 | "//bt/system:target_defaults", |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 323 | ] |
| 324 | } |
| 325 | |
| 326 | executable("net_test_stack_smp") { |
| 327 | sources = [ |
| 328 | "smp/p_256_curvepara.cc", |
| 329 | "smp/p_256_ecc_pp.cc", |
| 330 | "smp/p_256_multprecision.cc", |
| 331 | "smp/smp_api.cc", |
| 332 | "smp/smp_keys.cc", |
| 333 | "smp/smp_main.cc", |
| 334 | "smp/smp_utils.cc", |
| 335 | "test/stack_smp_test.cc", |
| 336 | ] |
| 337 | |
| 338 | include_dirs = [ |
Abhishek Pandit-Subedi | 947d468 | 2021-11-12 15:52:11 -0800 | [diff] [blame] | 339 | "//bt/system/", |
| 340 | "//bt/system/linux_include", |
| 341 | "//bt/system/internal_include", |
Abhishek Pandit-Subedi | 947d468 | 2021-11-12 15:52:11 -0800 | [diff] [blame] | 342 | "//bt/system/utils/include", |
| 343 | "//bt/system/bta/include", |
| 344 | "//bt/system/bta/sys", |
Abhishek Pandit-Subedi | 947d468 | 2021-11-12 15:52:11 -0800 | [diff] [blame] | 345 | "//bt/system/embdrv/sbc/encoder/include", |
Abhishek Pandit-Subedi | 947d468 | 2021-11-12 15:52:11 -0800 | [diff] [blame] | 346 | "//bt/system/internal_include", |
| 347 | "//bt/system/stack/a2dp", |
| 348 | "//bt/system/stack/l2cap", |
| 349 | "//bt/system/stack/btm", |
| 350 | "//bt/system/stack/include", |
| 351 | "//bt/system/udrv/include", |
| 352 | "//bt/system/utils/include", |
| 353 | "//bt/system/vnd/include", |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 354 | ] |
| 355 | |
| 356 | libs = [ |
| 357 | "dl", |
| 358 | "pthread", |
| 359 | "resolv", |
| 360 | "rt", |
| 361 | "z", |
| 362 | ] |
| 363 | |
| 364 | deps = [ |
| 365 | ":crypto_toolbox", |
Abhishek Pandit-Subedi | 947d468 | 2021-11-12 15:52:11 -0800 | [diff] [blame] | 366 | "//bt/system/osi", |
| 367 | "//bt/system/types", |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 368 | ] |
| 369 | |
| 370 | configs += [ |
Abhishek Pandit-Subedi | 947d468 | 2021-11-12 15:52:11 -0800 | [diff] [blame] | 371 | "//bt/system:external_tinyxml2", |
| 372 | "//bt/system:external_gmock_main", |
| 373 | "//bt/system:target_defaults", |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 374 | ] |
| 375 | } |
| 376 | |
| 377 | executable("net_test_stack_multi_adv") { |
| 378 | sources = [ |
| 379 | "btm/btm_ble_multi_adv.cc", |
| 380 | "test/ble_advertiser_test.cc", |
| 381 | ] |
| 382 | |
| 383 | include_dirs = [ |
| 384 | "include", |
Abhishek Pandit-Subedi | 947d468 | 2021-11-12 15:52:11 -0800 | [diff] [blame] | 385 | "//bt/system/", |
Abhishek Pandit-Subedi | 947d468 | 2021-11-12 15:52:11 -0800 | [diff] [blame] | 386 | "//bt/system/internal_include", |
| 387 | "//bt/system/stack/btm", |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 388 | ] |
| 389 | |
| 390 | libs = [ |
| 391 | "dl", |
| 392 | "pthread", |
| 393 | "resolv", |
| 394 | "rt", |
| 395 | "z", |
| 396 | ] |
| 397 | |
Abhishek Pandit-Subedi | 947d468 | 2021-11-12 15:52:11 -0800 | [diff] [blame] | 398 | deps = [ "//bt/system/types" ] |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 399 | |
| 400 | configs += [ |
Abhishek Pandit-Subedi | 947d468 | 2021-11-12 15:52:11 -0800 | [diff] [blame] | 401 | "//bt/system:external_gmock_main", |
| 402 | "//bt/system:target_defaults", |
Sonny Sasaka | 116ae62 | 2021-02-03 19:14:56 +0000 | [diff] [blame] | 403 | ] |
| 404 | } |
| 405 | } |