blob: ff5c8e41795d2381c96baddefe1a6574983de210 [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
Jakub Pawlowski121882e2017-10-19 19:51:57 -070017config("libbluetooth_config") {
18 include_dirs = [
19 "../include",
20 ]
21}
22
23shared_library("bluetooth") {
Jakub Pawlowski6ea3e142017-10-09 15:13:38 -070024
Scott James Remnant4c292312015-05-12 13:58:49 -070025 # HAL layer
26 sources = [
Jakub Pawlowski713993d2016-04-21 13:16:45 -070027 "//btif/src/bluetooth.cc",
Scott James Remnant4c292312015-05-12 13:58:49 -070028 ]
29
30 # platform specific
31 sources += [
Pavlin Radoslavovb2a292b2016-10-14 19:34:48 -070032 "bte_conf.cc",
33 "bte_init.cc",
Jakub Pawlowskicc8d3ab2016-10-13 15:43:15 -070034 "bte_init_cpp_logging.cc",
Pavlin Radoslavovb2a292b2016-10-14 19:34:48 -070035 "bte_logmsg.cc",
36 "bte_main.cc",
37 "stack_config.cc",
Scott James Remnant4c292312015-05-12 13:58:49 -070038 ]
39
Jakub Pawlowski121882e2017-10-19 19:51:57 -070040 public_configs = [ ":libbluetooth_config" ]
41
Scott James Remnant4c292312015-05-12 13:58:49 -070042 include_dirs = [
43 "//",
44 "//bta/include",
45 "//bta/sys",
46 "//bta/dm",
47 "//btcore/include",
Jakub Pawlowskic4510682017-10-18 04:03:41 -070048 "//internal_include",
Scott James Remnant4c292312015-05-12 13:58:49 -070049 "//stack/include",
50 "//stack/l2cap",
51 "//stack/a2dp",
52 "//stack/btm",
53 "//stack/avdt",
54 "//hci",
55 "//hci/include",
56 "//udrv/include",
57 "//btif/include",
58 "//btif/co",
59 "//hci/includ",
60 "//vnd/include",
61 "//brcm/include",
62 "//embdrv/sbc/encoder/include",
63 "//embdrv/sbc/decoder/include",
Scott James Remnant4c292312015-05-12 13:58:49 -070064 "//utils/include",
Marie Janssen3e54b602015-06-11 15:18:01 -070065 "//test/suite",
Scott James Remnant4c292312015-05-12 13:58:49 -070066 ]
67
68 deps = [
69 "//bta",
Scott James Remnant4c292312015-05-12 13:58:49 -070070 "//btcore",
Arman Uguray6c014ac2015-05-29 15:30:13 -070071 "//btif",
72 "//device",
73 "//embdrv/sbc",
Arman Uguray6c014ac2015-05-29 15:30:13 -070074 "//hci",
Scott James Remnant4c292312015-05-12 13:58:49 -070075 "//osi",
Arman Uguray6c014ac2015-05-29 15:30:13 -070076 "//stack",
Jakub Pawlowskicc8d3ab2016-10-13 15:43:15 -070077 "//third_party/libchrome:base",
Alain Vongsouvanh9a58e682016-03-29 17:33:55 -070078 "//third_party/tinyxml2",
Arman Uguray6c014ac2015-05-29 15:30:13 -070079 "//udrv",
80 "//utils",
Scott James Remnant4c292312015-05-12 13:58:49 -070081 ]
82
Jakub Pawlowskid7a05a02016-02-22 18:04:24 -080083 cflags_c = [
84 "-Lobj/osi",
85 "-losi",
86 ]
87 libs = [
88 "-ldl",
89 "-lpthread",
90 "-lresolv",
91 "-lrt",
92 "-lz",
Jakub Pawlowski029a43b2016-10-19 23:31:13 -070093 "-latomic",
Jakub Pawlowskid7a05a02016-02-22 18:04:24 -080094 ]
Scott James Remnant4c292312015-05-12 13:58:49 -070095}