blob: a81b666f3bd8aefafcce1f0b485f18daf3cb381b [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") {
Jakub Pawlowski6ea3e142017-10-09 15:13:38 -070018 output_prefix_override=true
19
Scott James Remnant4c292312015-05-12 13:58:49 -070020 # HAL layer
21 sources = [
Jakub Pawlowski713993d2016-04-21 13:16:45 -070022 "//btif/src/bluetooth.cc",
Scott James Remnant4c292312015-05-12 13:58:49 -070023 ]
24
25 # platform specific
26 sources += [
Pavlin Radoslavovb2a292b2016-10-14 19:34:48 -070027 "bte_conf.cc",
28 "bte_init.cc",
Jakub Pawlowskicc8d3ab2016-10-13 15:43:15 -070029 "bte_init_cpp_logging.cc",
Pavlin Radoslavovb2a292b2016-10-14 19:34:48 -070030 "bte_logmsg.cc",
31 "bte_main.cc",
32 "stack_config.cc",
Scott James Remnant4c292312015-05-12 13:58:49 -070033 ]
34
Scott James Remnant4c292312015-05-12 13:58:49 -070035 include_dirs = [
36 "//",
37 "//bta/include",
38 "//bta/sys",
39 "//bta/dm",
40 "//btcore/include",
Jakub Pawlowskic4510682017-10-18 04:03:41 -070041 "//internal_include",
Scott James Remnant4c292312015-05-12 13:58:49 -070042 "//stack/include",
43 "//stack/l2cap",
44 "//stack/a2dp",
45 "//stack/btm",
46 "//stack/avdt",
47 "//hci",
48 "//hci/include",
49 "//udrv/include",
50 "//btif/include",
51 "//btif/co",
52 "//hci/includ",
53 "//vnd/include",
54 "//brcm/include",
55 "//embdrv/sbc/encoder/include",
56 "//embdrv/sbc/decoder/include",
Scott James Remnant4c292312015-05-12 13:58:49 -070057 "//utils/include",
Marie Janssen3e54b602015-06-11 15:18:01 -070058 "//test/suite",
Scott James Remnant4c292312015-05-12 13:58:49 -070059 ]
60
61 deps = [
62 "//bta",
Scott James Remnant4c292312015-05-12 13:58:49 -070063 "//btcore",
Arman Uguray6c014ac2015-05-29 15:30:13 -070064 "//btif",
65 "//device",
66 "//embdrv/sbc",
Arman Uguray6c014ac2015-05-29 15:30:13 -070067 "//hci",
Scott James Remnant4c292312015-05-12 13:58:49 -070068 "//osi",
Arman Uguray6c014ac2015-05-29 15:30:13 -070069 "//stack",
Jakub Pawlowskicc8d3ab2016-10-13 15:43:15 -070070 "//third_party/libchrome:base",
Alain Vongsouvanh9a58e682016-03-29 17:33:55 -070071 "//third_party/tinyxml2",
Arman Uguray6c014ac2015-05-29 15:30:13 -070072 "//udrv",
73 "//utils",
Scott James Remnant4c292312015-05-12 13:58:49 -070074 ]
75
Jakub Pawlowskid7a05a02016-02-22 18:04:24 -080076 cflags_c = [
77 "-Lobj/osi",
78 "-losi",
79 ]
80 libs = [
81 "-ldl",
82 "-lpthread",
83 "-lresolv",
84 "-lrt",
85 "-lz",
Jakub Pawlowski029a43b2016-10-19 23:31:13 -070086 "-latomic",
Jakub Pawlowskid7a05a02016-02-22 18:04:24 -080087 ]
Scott James Remnant4c292312015-05-12 13:58:49 -070088}