Arman Uguray | ab77f13 | 2015-05-26 14:50:36 -0700 | [diff] [blame] | 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 | |
Arman Uguray | 06548c2 | 2015-05-29 14:43:20 -0700 | [diff] [blame] | 17 | static_library("stack") { |
Scott James Remnant | daef475 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 18 | sources = [ |
| 19 | "a2dp/a2d_api.c", |
| 20 | "a2dp/a2d_sbc.c", |
Pavlin Radoslavov | c54f8c2 | 2016-09-07 21:57:47 -0700 | [diff] [blame] | 21 | "a2dp/a2d_vendor.c", |
Scott James Remnant | daef475 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 22 | "avrc/avrc_api.c", |
| 23 | "avrc/avrc_sdp.c", |
| 24 | "avrc/avrc_opt.c", |
| 25 | "avrc/avrc_bld_tg.c", |
| 26 | "avrc/avrc_bld_ct.c", |
| 27 | "avrc/avrc_pars_tg.c", |
| 28 | "avrc/avrc_pars_ct.c", |
| 29 | "avrc/avrc_utils.c", |
| 30 | "hid/hidh_api.c", |
| 31 | "hid/hidh_conn.c", |
| 32 | "bnep/bnep_main.c", |
| 33 | "bnep/bnep_utils.c", |
| 34 | "bnep/bnep_api.c", |
| 35 | "hcic/hciblecmds.c", |
| 36 | "hcic/hcicmds.c", |
Jakub Pawlowski | a8cee4f | 2016-10-13 15:43:15 -0700 | [diff] [blame^] | 37 | "btm/ble_advertiser_hci_interface.cc", |
Scott James Remnant | daef475 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 38 | "btm/btm_ble.c", |
| 39 | "btm/btm_sec.c", |
| 40 | "btm/btm_inq.c", |
| 41 | "btm/btm_ble_addr.c", |
Jakub Pawlowski | 202a146 | 2016-05-25 17:10:56 -0700 | [diff] [blame] | 42 | "btm/btm_ble_bgconn.cc", |
Scott James Remnant | daef475 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 43 | "btm/btm_main.c", |
| 44 | "btm/btm_dev.c", |
| 45 | "btm/btm_ble_gap.c", |
| 46 | "btm/btm_ble_adv_filter.c", |
Jakub Pawlowski | c09e8aa | 2016-09-05 04:31:34 -0700 | [diff] [blame] | 47 | "btm/btm_ble_multi_adv.cc", |
Scott James Remnant | daef475 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 48 | "btm/btm_ble_batchscan.c", |
| 49 | "btm/btm_ble_cont_energy.c", |
Arman Uguray | 06548c2 | 2015-05-29 14:43:20 -0700 | [diff] [blame] | 50 | "btm/btm_ble_privacy.c", |
Scott James Remnant | daef475 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 51 | "btm/btm_acl.c", |
| 52 | "btm/btm_sco.c", |
| 53 | "btm/btm_pm.c", |
| 54 | "btm/btm_devctl.c", |
| 55 | "rfcomm/rfc_utils.c", |
| 56 | "rfcomm/port_rfc.c", |
| 57 | "rfcomm/rfc_l2cap_if.c", |
| 58 | "rfcomm/rfc_mx_fsm.c", |
| 59 | "rfcomm/port_utils.c", |
| 60 | "rfcomm/rfc_port_fsm.c", |
| 61 | "rfcomm/rfc_port_if.c", |
| 62 | "rfcomm/port_api.c", |
| 63 | "rfcomm/rfc_ts_frames.c", |
| 64 | "mcap/mca_dact.c", |
| 65 | "mcap/mca_dsm.c", |
| 66 | "mcap/mca_l2c.c", |
| 67 | "mcap/mca_main.c", |
| 68 | "mcap/mca_csm.c", |
| 69 | "mcap/mca_cact.c", |
| 70 | "mcap/mca_api.c", |
| 71 | "gatt/gatt_sr.c", |
| 72 | "gatt/gatt_cl.c", |
| 73 | "gatt/gatt_api.c", |
| 74 | "gatt/gatt_auth.c", |
| 75 | "gatt/gatt_utils.c", |
| 76 | "gatt/gatt_main.c", |
| 77 | "gatt/att_protocol.c", |
| 78 | "gatt/gatt_attr.c", |
| 79 | "gatt/gatt_db.c", |
| 80 | "avct/avct_api.c", |
Jakub Pawlowski | 8645ccb | 2016-09-27 08:21:55 -0700 | [diff] [blame] | 81 | "avct/avct_bcb_act.c", |
Scott James Remnant | daef475 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 82 | "avct/avct_l2c.c", |
Jakub Pawlowski | 8645ccb | 2016-09-27 08:21:55 -0700 | [diff] [blame] | 83 | "avct/avct_l2c_br.c", |
Scott James Remnant | daef475 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 84 | "avct/avct_lcb.c", |
| 85 | "avct/avct_ccb.c", |
| 86 | "avct/avct_lcb_act.c", |
| 87 | "smp/smp_main.c", |
| 88 | "smp/smp_l2c.c", |
| 89 | "smp/smp_cmac.c", |
| 90 | "smp/smp_utils.c", |
| 91 | "smp/smp_act.c", |
| 92 | "smp/smp_keys.c", |
| 93 | "smp/smp_api.c", |
| 94 | "smp/aes.c", |
Arman Uguray | 06548c2 | 2015-05-29 14:43:20 -0700 | [diff] [blame] | 95 | "smp/smp_br_main.c", |
| 96 | "smp/p_256_curvepara.c", |
| 97 | "smp/p_256_ecc_pp.c", |
| 98 | "smp/p_256_multprecision.c", |
Scott James Remnant | daef475 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 99 | "avdt/avdt_ccb.c", |
| 100 | "avdt/avdt_scb_act.c", |
| 101 | "avdt/avdt_msg.c", |
| 102 | "avdt/avdt_ccb_act.c", |
| 103 | "avdt/avdt_api.c", |
| 104 | "avdt/avdt_scb.c", |
| 105 | "avdt/avdt_ad.c", |
| 106 | "avdt/avdt_l2c.c", |
| 107 | "sdp/sdp_server.c", |
| 108 | "sdp/sdp_main.c", |
| 109 | "sdp/sdp_db.c", |
| 110 | "sdp/sdp_utils.c", |
| 111 | "sdp/sdp_api.c", |
| 112 | "sdp/sdp_discovery.c", |
| 113 | "pan/pan_main.c", |
| 114 | "srvc/srvc_battery.c", |
| 115 | "srvc/srvc_battery_int.h", |
| 116 | "srvc/srvc_dis.c", |
| 117 | "srvc/srvc_dis_int.h", |
| 118 | "srvc/srvc_eng.c", |
| 119 | "srvc/srvc_eng_int.h", |
| 120 | "pan/pan_api.c", |
| 121 | "pan/pan_utils.c", |
| 122 | "btu/btu_hcif.c", |
| 123 | "btu/btu_init.c", |
| 124 | "btu/btu_task.c", |
| 125 | "l2cap/l2c_fcr.c", |
| 126 | "l2cap/l2c_ucd.c", |
| 127 | "l2cap/l2c_main.c", |
| 128 | "l2cap/l2c_api.c", |
| 129 | "l2cap/l2c_utils.c", |
| 130 | "l2cap/l2c_csm.c", |
| 131 | "l2cap/l2c_link.c", |
| 132 | "l2cap/l2c_ble.c", |
| 133 | "l2cap/l2cap_client.c", |
| 134 | "gap/gap_api.c", |
| 135 | "gap/gap_ble.c", |
Arman Uguray | 06548c2 | 2015-05-29 14:43:20 -0700 | [diff] [blame] | 136 | "gap/gap_conn.c", |
| 137 | "gap/gap_utils.c", |
Scott James Remnant | daef475 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 138 | ] |
| 139 | |
| 140 | include_dirs = [ |
| 141 | "include", |
| 142 | "avct", |
| 143 | "btm", |
| 144 | "avrc", |
| 145 | "l2cap", |
| 146 | "avdt", |
| 147 | "gatt", |
| 148 | "gap", |
| 149 | "pan", |
| 150 | "bnep", |
| 151 | "hid", |
| 152 | "sdp", |
| 153 | "smp", |
| 154 | "srvc", |
| 155 | "//btcore/include", |
| 156 | "//vnd/include", |
| 157 | "//vnd/ble", |
| 158 | "//btif/include", |
| 159 | "//hci/include", |
| 160 | "//include", |
Scott James Remnant | daef475 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 161 | "//udrv/include", |
| 162 | "//rpc/include", |
| 163 | "//hcis", |
| 164 | "//ctrlr/include", |
| 165 | "//bta/include", |
| 166 | "//bta/sys", |
| 167 | "//utils/include", |
| 168 | "//", |
| 169 | ] |
Jakub Pawlowski | c287f08 | 2016-09-06 07:42:36 -0700 | [diff] [blame] | 170 | |
| 171 | deps = [ |
| 172 | "//third_party/libchrome:base" |
| 173 | ] |
Scott James Remnant | daef475 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 174 | } |
Jakub Pawlowski | 4fa8c1c | 2016-09-28 07:36:54 -0700 | [diff] [blame] | 175 | |
| 176 | executable("stack_unittests") { |
| 177 | testonly = true |
| 178 | sources = [ |
| 179 | "test/ble_advertiser_test.cc", |
| 180 | "test/stack_a2d_test.cc", |
| 181 | ] |
| 182 | |
| 183 | include_dirs = [ |
| 184 | "include", |
| 185 | "//", |
| 186 | "//audio_a2dp_hw", |
| 187 | "//bta/include", |
| 188 | "//bta/sys", |
| 189 | "//btcore/include", |
| 190 | "//embdrv/sbc/encoder/include", |
| 191 | "//hci/include", |
| 192 | "//include", |
| 193 | "//stack/a2dp", |
| 194 | "//stack/btm", |
| 195 | "//stack/include", |
| 196 | "//third_party/tinyxml2", |
| 197 | "//udrv/include", |
| 198 | "//utils/include", |
| 199 | "//vnd/include" |
| 200 | ] |
| 201 | |
| 202 | deps = [ |
| 203 | ":stack", |
| 204 | "//osi", |
| 205 | "//btcore", |
| 206 | "//device", |
| 207 | "//hci", |
| 208 | "//main:bluetooth.default", |
| 209 | "//third_party/googletest:gmock_main", |
| 210 | "//third_party/libchrome:base", |
| 211 | ] |
| 212 | } |
| 213 | |