OSDN Git Service

build: Fix ptr <-> integer cast warnings
[android-x86/system-bt.git] / main / BUILD.gn
1 #
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
17 shared_library("bluetooth.default") {
18   # HAL layer
19   sources = [
20     "//btif/src/bluetooth.c",
21   ]
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
32   include_dirs = [
33     "//",
34     "//bta/include",
35     "//bta/sys",
36     "//bta/dm",
37     "//btcore/include",
38     "//osi/include",
39     "//gki/common",
40     "//gki/ulinux",
41     "//include",
42     "//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",
57     "//audio_a2dp_hw",
58     "//utils/include",
59   ]
60
61   deps = [
62     "//audio_a2dp_hw:audio.a2dp.default",
63     "//bta",
64     "//btcore",
65     "//btif",
66     "//device",
67     "//embdrv/sbc",
68     "//gki",
69     "//hci",
70     "//osi",
71     "//stack",
72     "//third_party/tinyxml2",
73     "//udrv",
74     "//utils",
75   ]
76
77   libs = [ "-lpthread", "-lrt", "-ldl" ]
78 }