• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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    "csis/csis_client.cc",
37    "dm/bta_dm_act.cc",
38    "dm/bta_dm_api.cc",
39    "dm/bta_dm_cfg.cc",
40    "dm/bta_dm_ci.cc",
41    "dm/bta_dm_main.cc",
42    "dm/bta_dm_pm.cc",
43    "gatt/bta_gattc_act.cc",
44    "gatt/bta_gattc_api.cc",
45    "gatt/bta_gattc_db_storage.cc",
46    "gatt/bta_gattc_cache.cc",
47    "gatt/bta_gattc_main.cc",
48    "gatt/bta_gattc_utils.cc",
49    "gatt/bta_gattc_queue.cc",
50    "gatt/bta_gatts_act.cc",
51    "gatt/bta_gatts_api.cc",
52    "gatt/bta_gatts_main.cc",
53    "gatt/bta_gatts_utils.cc",
54    "gatt/database.cc",
55    "gatt/database_builder.cc",
56    "groups/groups.cc",
57    # TODO(abps) - Enable with long-term effort for LE Audio
58    #"has/has_client.cc",
59    #"has/has_ctp.cc",
60    #"has/has_preset.cc",
61    #"has/has_types.cc",
62    "hearing_aid/hearing_aid.cc",
63    "hearing_aid/hearing_aid_audio_source.cc",
64    "hf_client/bta_hf_client_act.cc",
65    "hf_client/bta_hf_client_api.cc",
66    "hf_client/bta_hf_client_at.cc",
67    "hf_client/bta_hf_client_main.cc",
68    "hf_client/bta_hf_client_rfc.cc",
69    "hf_client/bta_hf_client_sdp.cc",
70    "hf_client/bta_hf_client_sco.cc",
71    "hh/bta_hh_act.cc",
72    "hh/bta_hh_api.cc",
73    "hh/bta_hh_cfg.cc",
74    "hh/bta_hh_le.cc",
75    "hh/bta_hh_main.cc",
76    "hh/bta_hh_utils.cc",
77    "hfp/bta_hfp_api.cc",
78    "hd/bta_hd_act.cc",
79    "hd/bta_hd_api.cc",
80    "hd/bta_hd_main.cc",
81    "jv/bta_jv_act.cc",
82    "jv/bta_jv_api.cc",
83    "jv/bta_jv_cfg.cc",
84    "le_audio/client_linux.cc",
85    "le_audio/hal_verifier_linux.cc",
86    "pan/bta_pan_act.cc",
87    "pan/bta_pan_api.cc",
88    "pan/bta_pan_ci.cc",
89    "pan/bta_pan_main.cc",
90    "sdp/bta_sdp.cc",
91    "sdp/bta_sdp_act.cc",
92    "sdp/bta_sdp_api.cc",
93    "sdp/bta_sdp_cfg.cc",
94    "sys/bta_sys_conn.cc",
95    "sys/bta_sys_main.cc",
96    "sys/utl.cc",
97    "vc/device.cc",
98    "vc/vc.cc",
99  ]
100
101  include_dirs = [
102    "closure",
103    "dm",
104    "hh",
105    "hd",
106    "include",
107    "sys",
108    "//bt/system/",
109    "//bt/system/linux_include",
110    "//bt/system/bta",
111    "//bt/system/gd",
112    "//bt/system/internal_include",
113    "//bt/system/internal_include",
114    "//bt/system/stack/include",
115    "//bt/system/stack/btm",
116    "//bt/system/udrv/include",
117    "//bt/system/vnd/include",
118    "//bt/system/btif/include",
119    "//bt/system/btif/avrcp",
120    "//bt/system/include/hardware/avrcp",
121    "//bt/system/profile/avrcp",
122    "//bt/system/packet/avrcp",
123    "//bt/system/packet/base",
124  ]
125
126  configs += [
127    "//bt/system:target_defaults"
128  ]
129
130  deps = [
131    "//bt/system:libbt-platform-protos-lite",
132    "//bt/system/gd/rust/shim:init_flags_bridge_header",
133  ]
134}
135
136if (use.test) {
137  executable("net_test_bta") {
138    sources = [
139      "gatt/database_builder.cc",
140      "test/gatt/database_builder_test.cc",
141      "test/gatt/database_builder_sample_device_test.cc",
142      "test/gatt/database_test.cc",
143    ]
144
145    include_dirs = [
146      "include",
147      "//bt/system/",
148      "//bt/system/bta",
149      "//bt/system/internal_include",
150      "//bt/system/stack/btm",
151    ]
152
153    deps = [
154      "//bt/system/bta",
155      "//bt/system/types",
156    ]
157
158    configs += [
159      "//bt/system:external_gmock_main",
160      "//bt/system:target_defaults",
161    ]
162  }
163}
164