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("btif") {
18  sources = [
19    # TODO(abps) - Do we need this?
20    "//bt/system/audio_hearing_aid_hw/src/audio_hearing_aid_hw_utils.cc",
21
22    # AVRCP Target Service
23    "avrcp/avrcp_service.cc",
24
25    # Callouts
26    "co/bta_av_co.cc",
27    "co/bta_av_co_peer.cc",
28    "co/bta_dm_co.cc",
29    "co/bta_gatts_co.cc",
30    "co/bta_hh_co.cc",
31    "co/bta_pan_co.cc",
32
33    # HAL layer
34    "src/bluetooth.cc",
35
36    # BTIF implementation
37    "src/btif_a2dp.cc",
38
39    "src/btif_a2dp_sink.cc",
40    "src/btif_a2dp_source.cc",
41    "src/btif_av.cc",
42
43    # TODO(abps) - Move this abstraction elsewhere
44    # "src/btif_avrcp_audio_track.cc",
45    "src/btif_avrcp_audio_track_linux.cc",
46    "src/btif_ble_scanner.cc",
47    "src/btif_bqr.cc",
48    "src/btif_csis_client.cc",
49    "src/btif_config.cc",
50    "src/btif_core.cc",
51    "src/btif_debug_conn.cc",
52    "src/btif_dm.cc",
53    "src/btif_gatt.cc",
54    "src/btif_gatt_client.cc",
55    "src/btif_gatt_server.cc",
56    "src/btif_gatt_util.cc",
57    "src/btif_hd.cc",
58    "src/btif_vc.cc",
59    "src/btif_le_audio_broadcaster.cc",
60    "src/btif_has_client.cc",
61    "src/btif_hearing_aid.cc",
62    "src/btif_hci_vs.cc",
63    "src/btif_hf.cc",
64    "src/btif_hf_client.cc",
65    "src/btif_hh.cc",
66    "src/btif_iot_config.cc",
67    "src/btif_jni_task.cc",
68    "src/btif_keystore.cc",
69    "src/btif_le_audio.cc",
70    "src/btif_metrics_logging.cc",
71    "src/btif_pan.cc",
72    "src/btif_profile_queue.cc",
73    "src/btif_profile_storage.cc",
74    "src/btif_rc.cc",
75    "src/btif_sdp.cc",
76    "src/btif_sdp_server.cc",
77    "src/btif_sock.cc",
78    "src/btif_sock_hal.cc",
79    "src/btif_sock_l2cap.cc",
80    "src/btif_sock_logging.cc",
81    "src/btif_sock_rfc.cc",
82    "src/btif_sock_sco.cc",
83    "src/btif_sock_sdp.cc",
84    "src/btif_sock_thread.cc",
85    "src/btif_sock_util.cc",
86    "src/btif_storage.cc",
87    "src/btif_uid.cc",
88    "src/btif_util.cc",
89    "src/stack_manager.cc",
90  ]
91
92  include_dirs = [
93    "include",
94    "//bt/system/",
95    "//bt/system/bta/dm",
96    "//bt/system/linux_include",
97    "//bt/system/audio_hearing_aid_hw/include",
98    "//bt/system/bta/aics/include",
99    "//bt/system/bta/include",
100    "//bt/system/bta/sys",
101    "//bt/system/embdrv/sbc/encoder/include",
102    "//bt/system/embdrv/sbc/decoder/include",
103    "//bt/system/gd",
104    "//bt/system/stack/a2dp",
105    "//bt/system/stack/btm",
106    "//bt/system/stack/l2cap",
107    "//bt/system/stack/include",
108    "//bt/system/udrv/include",
109    "//bt/system/vnd/include",
110    "//bt/system/profile/avrcp",
111  ]
112
113  deps = [
114    "//bt/flags:bluetooth_flags_c_lib",
115    "//bt/sysprop:libcom.android.sysprop.bluetooth",
116    "//bt/system:libbt-platform-protos-lite",
117    "//bt/system/common",
118    "//bt/system/profile/avrcp:profile_avrcp",
119    "//bt/system/bta/aics:aics",
120  ]
121
122  configs += [
123    "//bt/system:target_defaults",
124    "//bt/system/log:log_defaults",
125    "//bt/system:external_tinyxml2",
126  ]
127}
128