1# 2# Copyright 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 17static_library("bta") { 18 sources = [ 19 "ag/bta_ag_act.cc", 20 "ag/bta_ag_api.cc", 21 "ag/bta_ag_at.cc", 22 "ag/bta_ag_cfg.cc", 23 "ag/bta_ag_cmd.cc", 24 "ag/bta_ag_main.cc", 25 "ag/bta_ag_rfc.cc", 26 "ag/bta_ag_sco.cc", 27 "ag/bta_ag_sdp.cc", 28 "ar/bta_ar.cc", 29 "av/bta_av_aact.cc", 30 "av/bta_av_act.cc", 31 "av/bta_av_api.cc", 32 "av/bta_av_cfg.cc", 33 "av/bta_av_ci.cc", 34 "av/bta_av_main.cc", 35 "av/bta_av_ssm.cc", 36 "dm/bta_dm_act.cc", 37 "dm/bta_dm_api.cc", 38 "dm/bta_dm_cfg.cc", 39 "dm/bta_dm_ci.cc", 40 "dm/bta_dm_main.cc", 41 "dm/bta_dm_pm.cc", 42 "gatt/bta_gattc_act.cc", 43 "gatt/bta_gattc_api.cc", 44 "gatt/bta_gattc_cache.cc", 45 "gatt/bta_gattc_main.cc", 46 "gatt/bta_gattc_utils.cc", 47 "gatt/bta_gattc_queue.cc", 48 "gatt/bta_gatts_act.cc", 49 "gatt/bta_gatts_api.cc", 50 "gatt/bta_gatts_main.cc", 51 "gatt/bta_gatts_utils.cc", 52 "gatt/database.cc", 53 "gatt/database_builder.cc", 54 "hearing_aid/hearing_aid.cc", 55 "hearing_aid/hearing_aid_audio_source.cc", 56 "hf_client/bta_hf_client_act.cc", 57 "hf_client/bta_hf_client_api.cc", 58 "hf_client/bta_hf_client_at.cc", 59 "hf_client/bta_hf_client_main.cc", 60 "hf_client/bta_hf_client_rfc.cc", 61 "hf_client/bta_hf_client_sdp.cc", 62 "hf_client/bta_hf_client_sco.cc", 63 "hh/bta_hh_act.cc", 64 "hh/bta_hh_api.cc", 65 "hh/bta_hh_cfg.cc", 66 "hh/bta_hh_le.cc", 67 "hh/bta_hh_main.cc", 68 "hh/bta_hh_utils.cc", 69 "hd/bta_hd_act.cc", 70 "hd/bta_hd_api.cc", 71 "hd/bta_hd_main.cc", 72 "jv/bta_jv_act.cc", 73 "jv/bta_jv_api.cc", 74 "jv/bta_jv_cfg.cc", 75 "mce/bta_mce_act.cc", 76 "mce/bta_mce_api.cc", 77 "mce/bta_mce_cfg.cc", 78 "mce/bta_mce_main.cc", 79 "pan/bta_pan_act.cc", 80 "pan/bta_pan_api.cc", 81 "pan/bta_pan_ci.cc", 82 "pan/bta_pan_main.cc", 83 "sdp/bta_sdp.cc", 84 "sdp/bta_sdp_act.cc", 85 "sdp/bta_sdp_api.cc", 86 "sdp/bta_sdp_cfg.cc", 87 "sys/bta_sys_conn.cc", 88 "sys/bta_sys_main.cc", 89 "sys/utl.cc", 90 ] 91 92 include_dirs = [ 93 "closure", 94 "dm", 95 "hh", 96 "hd", 97 "include", 98 "sys", 99 "//", 100 "//linux_include", 101 "//bta", 102 "//internal_include", 103 "//btcore/include", 104 "//hci/include", 105 "//internal_include", 106 "//stack/include", 107 "//stack/btm", 108 "//udrv/include", 109 "//utils/include", 110 "//vnd/include", 111 "//btif/include", 112 "//btif/avrcp", 113 "//include/hardware/avrcp", 114 "//profile/avrcp", 115 "//packet/avrcp", 116 "//packet/base", 117 ] 118 119 deps = [ 120 "//third_party/libchrome:base" 121 ] 122} 123 124executable("net_test_bta") { 125 testonly = true 126 sources = [ 127 "gatt/database_builder.cc", 128 "test/gatt/database_builder_test.cc", 129 "test/gatt/database_builder_sample_device_test.cc", 130 "test/gatt/database_test.cc", 131 ] 132 133 include_dirs = [ 134 "include", 135 "//", 136 "//bta", 137 "//btcore/include", 138 "//hci/include", 139 "//internal_include", 140 "//stack/btm", 141 ] 142 143 deps = [ 144 "//bta", 145 "//types", 146 "//third_party/googletest:gmock_main", 147 "//third_party/libchrome:base", 148 ] 149}