blob: c2029f9aa6f86e38920b829a831f6e204a272aad [file] [log] [blame]
Arman Uguray9ca3fb82015-05-26 14:50:36 -07001#
2# Copyright (C) 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
Scott James Remnant4c292312015-05-12 13:58:49 -070017shared_library("bluetooth.default") {
18 # HAL layer
19 sources = [
Jakub Pawlowski713993d2016-04-21 13:16:45 -070020 "//btif/src/bluetooth.cc",
Scott James Remnant4c292312015-05-12 13:58:49 -070021 ]
22
23 # platform specific
24 sources += [
25 "bte_main.c",
26 "bte_init.c",
27 "bte_logmsg.c",
28 "bte_conf.c",
29 "stack_config.c",
30 ]
31
Scott James Remnant4c292312015-05-12 13:58:49 -070032 include_dirs = [
33 "//",
34 "//bta/include",
35 "//bta/sys",
36 "//bta/dm",
37 "//btcore/include",
Scott James Remnant4c292312015-05-12 13:58:49 -070038 "//include",
39 "//stack/include",
40 "//stack/l2cap",
41 "//stack/a2dp",
42 "//stack/btm",
43 "//stack/avdt",
44 "//hci",
45 "//hci/include",
46 "//udrv/include",
47 "//btif/include",
48 "//btif/co",
49 "//hci/includ",
50 "//vnd/include",
51 "//brcm/include",
52 "//embdrv/sbc/encoder/include",
53 "//embdrv/sbc/decoder/include",
54 "//audio_a2dp_hw",
55 "//utils/include",
Marie Janssen3e54b602015-06-11 15:18:01 -070056 "//test/suite",
Scott James Remnant4c292312015-05-12 13:58:49 -070057 ]
58
59 deps = [
Arman Uguray6c014ac2015-05-29 15:30:13 -070060 "//audio_a2dp_hw:audio.a2dp.default",
Scott James Remnant4c292312015-05-12 13:58:49 -070061 "//bta",
Scott James Remnant4c292312015-05-12 13:58:49 -070062 "//btcore",
Arman Uguray6c014ac2015-05-29 15:30:13 -070063 "//btif",
64 "//device",
65 "//embdrv/sbc",
Arman Uguray6c014ac2015-05-29 15:30:13 -070066 "//hci",
Scott James Remnant4c292312015-05-12 13:58:49 -070067 "//osi",
Arman Uguray6c014ac2015-05-29 15:30:13 -070068 "//stack",
Alain Vongsouvanh9a58e682016-03-29 17:33:55 -070069 "//third_party/tinyxml2",
Arman Uguray6c014ac2015-05-29 15:30:13 -070070 "//udrv",
71 "//utils",
Scott James Remnant4c292312015-05-12 13:58:49 -070072 ]
73
Jakub Pawlowskid7a05a02016-02-22 18:04:24 -080074 cflags_c = [
75 "-Lobj/osi",
76 "-losi",
77 ]
78 libs = [
79 "-ldl",
80 "-lpthread",
81 "-lresolv",
82 "-lrt",
83 "-lz",
84 ]
Scott James Remnant4c292312015-05-12 13:58:49 -070085}