blob: 8152e3b91b87dfb7b46f3ab669fafd219dd8e501 [file] [log] [blame]
Arman Uguray9ca3fb82015-05-26 14:50:36 -07001#
Jakub Pawlowski5b790fe2017-09-18 09:00:20 -07002# Copyright 2015 Google, Inc.
Arman Uguray9ca3fb82015-05-26 14:50:36 -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
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",
Jakub Pawlowskide3c3432018-05-25 21:07:38 -070073 "//embdrv/g722",
Arman Uguray6c014ac2015-05-29 15:30:13 -070074 "//embdrv/sbc",
Arman Uguray6c014ac2015-05-29 15:30:13 -070075 "//hci",
Scott James Remnant4c292312015-05-12 13:58:49 -070076 "//osi",
Jakub Pawlowski9e814612018-05-25 09:31:26 -070077 "//packet",
Arman Uguray6c014ac2015-05-29 15:30:13 -070078 "//stack",
Jakub Pawlowskicc8d3ab2016-10-13 15:43:15 -070079 "//third_party/libchrome:base",
Alain Vongsouvanh9a58e682016-03-29 17:33:55 -070080 "//third_party/tinyxml2",
Arman Uguray6c014ac2015-05-29 15:30:13 -070081 "//udrv",
82 "//utils",
Scott James Remnant4c292312015-05-12 13:58:49 -070083 ]
84
Jakub Pawlowskid7a05a02016-02-22 18:04:24 -080085 cflags_c = [
86 "-Lobj/osi",
87 "-losi",
88 ]
89 libs = [
90 "-ldl",
91 "-lpthread",
92 "-lresolv",
93 "-lrt",
94 "-lz",
Jakub Pawlowski029a43b2016-10-19 23:31:13 -070095 "-latomic",
Jakub Pawlowskid7a05a02016-02-22 18:04:24 -080096 ]
Scott James Remnant4c292312015-05-12 13:58:49 -070097}