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 "pan/bta_pan_act.cc", 76 "pan/bta_pan_api.cc", 77 "pan/bta_pan_ci.cc", 78 "pan/bta_pan_main.cc", 79 "sdp/bta_sdp.cc", 80 "sdp/bta_sdp_act.cc", 81 "sdp/bta_sdp_api.cc", 82 "sdp/bta_sdp_cfg.cc", 83 "sys/bta_sys_conn.cc", 84 "sys/bta_sys_main.cc", 85 "sys/utl.cc", 86 "vc/device.cc", 87 "vc/vc.cc", 88 ] 89 90 include_dirs = [ 91 "closure", 92 "dm", 93 "hh", 94 "hd", 95 "include", 96 "sys", 97 "//bt/", 98 "//bt/linux_include", 99 "//bt/bta", 100 "//bt/internal_include", 101 "//bt/btcore/include", 102 "//bt/hci/include", 103 "//bt/internal_include", 104 "//bt/stack/include", 105 "//bt/stack/btm", 106 "//bt/udrv/include", 107 "//bt/utils/include", 108 "//bt/vnd/include", 109 "//bt/btif/include", 110 "//bt/btif/avrcp", 111 "//bt/include/hardware/avrcp", 112 "//bt/profile/avrcp", 113 "//bt/packet/avrcp", 114 "//bt/packet/base", 115 ] 116 117 configs += [ 118 "//bt:target_defaults" 119 ] 120 121 deps = [ 122 "//bt/gd/rust/shim:shim_bridge_header", 123 "//bt/gd/rust/shim:init_flags_bridge_header", 124 "//bt/gd/rust/shim:message_loop_thread_bridge_header", 125 ] 126} 127 128if (use.test) { 129 executable("net_test_bta") { 130 sources = [ 131 "gatt/database_builder.cc", 132 "test/gatt/database_builder_test.cc", 133 "test/gatt/database_builder_sample_device_test.cc", 134 "test/gatt/database_test.cc", 135 ] 136 137 include_dirs = [ 138 "include", 139 "//bt/", 140 "//bt/bta", 141 "//bt/btcore/include", 142 "//bt/hci/include", 143 "//bt/internal_include", 144 "//bt/stack/btm", 145 ] 146 147 deps = [ 148 "//bt/bta", 149 "//bt/types", 150 ] 151 152 configs += [ 153 "//bt:external_gmock_main", 154 "//bt:target_defaults", 155 ] 156 } 157} 158