blob: 5e78d7da21b0cefc38ecb1b3b70b5667b3f1bd40 [file] [log] [blame]
Arman Ugurayd30195c2015-05-29 15:27:58 -07001#
Jakub Pawlowski5b790fe2017-09-18 09:00:20 -07002# Copyright 2015 Google, Inc.
Arman Ugurayd30195c2015-05-29 15:27:58 -07003#
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 = [
Pavlin Radoslavov304ceeb2017-04-05 16:18:26 -070019 "//audio_a2dp_hw/src/audio_a2dp_hw_utils.cc",
Jakub Pawlowskide3c3432018-05-25 21:07:38 -070020 "//audio_hearing_aid_hw/src/audio_hearing_aid_hw_utils.cc",
Pavlin Radoslavov08406e92016-09-23 16:36:47 -070021 "src/btif_a2dp.cc",
Jakub Pawlowskide3c3432018-05-25 21:07:38 -070022 "src/btif_a2dp_audio_interface_linux.cc",
Pavlin Radoslavov08406e92016-09-23 16:36:47 -070023 "src/btif_a2dp_control.cc",
24 "src/btif_a2dp_sink.cc",
25 "src/btif_a2dp_source.cc",
Jakub Pawlowski713993d2016-04-21 13:16:45 -070026 "src/btif_av.cc",
Jakub Pawlowski9e814612018-05-25 09:31:26 -070027 "avrcp/avrcp_service.cc",
Jakub Pawlowskid7a05a02016-02-22 18:04:24 -080028
29 #TODO(jpawlowski): heavily depends on Android,
Jakub Pawlowski713993d2016-04-21 13:16:45 -070030 # "src/btif_avrcp_audio_track.cc",
Jakub Pawlowskic8dcd252018-10-25 15:12:43 +020031 "src/btif_avrcp_audio_track_linux.cc",
Jakub Pawlowskie47b7692016-09-28 07:36:54 -070032 "src/btif_ble_advertiser.cc",
Jakub Pawlowskic3f6a512016-10-27 11:49:40 -070033 "src/btif_ble_scanner.cc",
Jakub Pawlowski713993d2016-04-21 13:16:45 -070034 "src/btif_config.cc",
35 "src/btif_config_transcode.cc",
36 "src/btif_core.cc",
37 "src/btif_debug.cc",
38 "src/btif_debug_btsnoop.cc",
39 "src/btif_debug_conn.cc",
40 "src/btif_dm.cc",
41 "src/btif_gatt.cc",
42 "src/btif_gatt_client.cc",
Jakub Pawlowski713993d2016-04-21 13:16:45 -070043 "src/btif_gatt_server.cc",
44 "src/btif_gatt_test.cc",
45 "src/btif_gatt_util.cc",
Jakub Pawlowski2c2c7892017-11-24 15:20:37 -080046 "src/btif_hearing_aid.cc",
Jakub Pawlowski713993d2016-04-21 13:16:45 -070047 "src/btif_hf.cc",
48 "src/btif_hf_client.cc",
49 "src/btif_hh.cc",
Hemant Gupta8843cc82014-04-18 12:34:55 +053050 "src/btif_hd.cc",
Jakub Pawlowski713993d2016-04-21 13:16:45 -070051 "src/btif_mce.cc",
Jakub Pawlowski713993d2016-04-21 13:16:45 -070052 "src/btif_pan.cc",
53 "src/btif_profile_queue.cc",
54 "src/btif_rc.cc",
55 "src/btif_sdp.cc",
56 "src/btif_sdp_server.cc",
Jakub Pawlowski713993d2016-04-21 13:16:45 -070057 "src/btif_sock.cc",
58 "src/btif_sock_l2cap.cc",
59 "src/btif_sock_rfc.cc",
60 "src/btif_sock_sco.cc",
61 "src/btif_sock_sdp.cc",
62 "src/btif_sock_thread.cc",
63 "src/btif_sock_util.cc",
64 "src/btif_storage.cc",
65 "src/btif_uid.cc",
66 "src/btif_util.cc",
67 "src/stack_manager.cc",
Arman Ugurayd30195c2015-05-29 15:27:58 -070068 ]
69
70 # BTIF callouts
71 sources += [
Jakub Pawlowski713993d2016-04-21 13:16:45 -070072 "co/bta_dm_co.cc",
73 "co/bta_av_co.cc",
74 "co/bta_hh_co.cc",
Jakub Pawlowski713993d2016-04-21 13:16:45 -070075 "co/bta_pan_co.cc",
76 "co/bta_gatts_co.cc",
Arman Ugurayd30195c2015-05-29 15:27:58 -070077 ]
78
79 include_dirs = [
80 "include",
81 "//",
Jakub Pawlowski55faa9e2018-06-21 09:03:45 +020082 "//linux_include",
Jakub Pawlowski17f449d2017-04-10 02:19:29 -070083 "//audio_a2dp_hw/include",
Jakub Pawlowskide3c3432018-05-25 21:07:38 -070084 "//audio_hearing_aid_hw/include",
Arman Ugurayd30195c2015-05-29 15:27:58 -070085 "//bta/include",
86 "//bta/sys",
87 "//btcore/include",
Mudumba Ananth57f65082017-02-09 09:05:48 -080088 "//device/include",
Arman Ugurayd30195c2015-05-29 15:27:58 -070089 "//embdrv/sbc/encoder/include",
Jakub Pawlowskicc8d3ab2016-10-13 15:43:15 -070090 "//embdrv/sbc/decoder/include",
Arman Ugurayd30195c2015-05-29 15:27:58 -070091 "//hci/include",
Arman Ugurayd30195c2015-05-29 15:27:58 -070092 "//stack/a2dp",
93 "//stack/btm",
Jakub Pawlowski9e814612018-05-25 09:31:26 -070094 "//stack/l2cap",
Arman Ugurayd30195c2015-05-29 15:27:58 -070095 "//stack/include",
Alain Vongsouvanh9a58e682016-03-29 17:33:55 -070096 "//third_party/tinyxml2",
Jakub Pawlowskic4510682017-10-18 04:03:41 -070097 "//internal_include",
Arman Ugurayd30195c2015-05-29 15:27:58 -070098 "//udrv/include",
99 "//utils/include",
100 "//vnd/include",
Jakub Pawlowski9e814612018-05-25 09:31:26 -0700101 "//profile/avrcp",
Arman Ugurayd30195c2015-05-29 15:27:58 -0700102 ]
Jakub Pawlowski140645f2016-04-30 14:37:40 -0700103
104 deps = [
Jakub Pawlowskic8dcd252018-10-25 15:12:43 +0200105 "//common",
Jakub Pawlowski9e814612018-05-25 09:31:26 -0700106 "//third_party/libchrome:base",
107 "//profile/avrcp:profile_avrcp"
Jakub Pawlowski140645f2016-04-30 14:37:40 -0700108 ]
Arman Ugurayd30195c2015-05-29 15:27:58 -0700109}