• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2#  Copyright 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
17config("libbluetooth_config") {
18  include_dirs = [
19    "../include",
20  ]
21}
22
23shared_library("bluetooth") {
24
25  # HAL layer
26  sources = [
27    "//btif/src/bluetooth.cc",
28  ]
29
30  # platform specific
31  sources += [
32    "bte_conf.cc",
33    "bte_init.cc",
34    "bte_init_cpp_logging.cc",
35    "bte_logmsg.cc",
36    "bte_main.cc",
37    "stack_config.cc",
38  ]
39
40  public_configs = [ ":libbluetooth_config" ]
41
42  include_dirs = [
43    "//",
44    "//bta/include",
45    "//bta/sys",
46    "//bta/dm",
47    "//btcore/include",
48    "//internal_include",
49    "//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",
64    "//utils/include",
65    "//test/suite",
66  ]
67
68  deps = [
69    "//bta",
70    "//btcore",
71    "//btif",
72    "//device",
73    "//embdrv/g722",
74    "//embdrv/sbc",
75    "//hci",
76    "//osi",
77    "//packet",
78    "//stack",
79    "//third_party/libchrome:base",
80    "//third_party/tinyxml2",
81    "//udrv",
82    "//utils",
83  ]
84
85  cflags_c = [
86    "-Lobj/osi",
87    "-losi",
88  ]
89  libs = [
90    "-ldl",
91    "-lpthread",
92    "-lresolv",
93    "-lrt",
94    "-lz",
95    "-latomic",
96  ]
97}
98