2 # Copyright 2015 Google, Inc.
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:
8 # http://www.apache.org/licenses/LICENSE-2.0
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.
17 static_library("crypto_toolbox") {
19 "crypto_toolbox/crypto_toolbox.cc",
20 "crypto_toolbox/aes.cc",
21 "crypto_toolbox/aes_cmac.cc",
29 "//third_party/libchrome:base",
33 static_library("stack") {
36 "a2dp/a2dp_aac_decoder.cc",
37 "a2dp/a2dp_aac_encoder.cc",
39 "a2dp/a2dp_codec_config.cc",
41 "a2dp/a2dp_sbc_decoder.cc",
42 "a2dp/a2dp_sbc_encoder.cc",
43 "a2dp/a2dp_sbc_up_sample.cc",
44 "a2dp/a2dp_vendor.cc",
45 "a2dp/a2dp_vendor_aptx.cc",
46 "a2dp/a2dp_vendor_aptx_encoder.cc",
47 "a2dp/a2dp_vendor_aptx_hd.cc",
48 "a2dp/a2dp_vendor_aptx_hd_encoder.cc",
49 "a2dp/a2dp_vendor_ldac.cc",
50 "a2dp/a2dp_vendor_ldac_abr.cc",
51 "a2dp/a2dp_vendor_ldac_decoder.cc",
52 "a2dp/a2dp_vendor_ldac_encoder.cc",
54 "avct/avct_bcb_act.cc",
57 "avct/avct_l2c_br.cc",
59 "avct/avct_lcb_act.cc",
63 "avdt/avdt_ccb_act.cc",
67 "avdt/avdt_scb_act.cc",
69 "avrc/avrc_bld_ct.cc",
70 "avrc/avrc_bld_tg.cc",
72 "avrc/avrc_pars_ct.cc",
73 "avrc/avrc_pars_tg.cc",
79 "btm/ble_advertiser_hci_interface.cc",
82 "btm/btm_ble_addr.cc",
83 "btm/btm_ble_adv_filter.cc",
84 "btm/btm_ble_batchscan.cc",
85 "btm/btm_ble_bgconn.cc",
86 "btm/btm_ble_cont_energy.cc",
88 "btm/btm_ble_multi_adv.cc",
89 "btm/btm_ble_privacy.cc",
102 "gatt/att_protocol.cc",
103 "gatt/connection_manager.cc",
111 "gatt/gatt_utils.cc",
112 "hcic/hciblecmds.cc",
124 "l2cap/l2c_utils.cc",
125 "l2cap/l2cap_client.cc",
129 "rfcomm/port_api.cc",
130 "rfcomm/port_rfc.cc",
131 "rfcomm/port_utils.cc",
132 "rfcomm/rfc_l2cap_if.cc",
133 "rfcomm/rfc_mx_fsm.cc",
134 "rfcomm/rfc_port_fsm.cc",
135 "rfcomm/rfc_port_if.cc",
136 "rfcomm/rfc_ts_frames.cc",
137 "rfcomm/rfc_utils.cc",
140 "sdp/sdp_discovery.cc",
144 "smp/p_256_curvepara.cc",
145 "smp/p_256_ecc_pp.cc",
146 "smp/p_256_multprecision.cc",
149 "smp/smp_br_main.cc",
174 "//internal_include",
180 "//internal_include",
194 "//third_party/libchrome:base",
195 "//third_party/libldac:libldacBT_enc",
196 "//third_party/libldac:libldacBT_abr",
197 "//third_party/aac:libFraunhoferAAC",
201 executable("stack_unittests") {
204 "test/stack_a2dp_test.cc",
213 "//embdrv/sbc/encoder/include",
215 "//internal_include",
219 "//third_party/tinyxml2",
244 "//third_party/googletest:gmock_main",
245 "//third_party/libchrome:base",
249 executable("net_test_stack_crypto_toolbox") {
252 "test/crypto_toolbox_test.cc",
261 "//third_party/googletest:gmock_main",
262 "//third_party/libchrome:base",
266 executable("net_test_stack_smp") {
269 "smp/p_256_curvepara.cc",
270 "smp/p_256_ecc_pp.cc",
271 "smp/p_256_multprecision.cc",
276 "test/stack_smp_test.cc",
282 "//internal_include",
289 "//embdrv/sbc/encoder/include",
291 "//internal_include",
296 "//third_party/tinyxml2",
315 "//third_party/googletest:gmock_main",
316 "//third_party/libchrome:base",
320 executable("net_test_stack_multi_adv") {
323 "btm/btm_ble_multi_adv.cc",
324 "test/ble_advertiser_test.cc",
332 "//internal_include",
347 "//third_party/googletest:gmock_main",
348 "//third_party/libchrome:base",