OSDN Git Service

am 91c7bdc6: am 9f1c9ad8: GKI cleanup - Moved struct TIMER_LIST_ENT to OSI
[android-x86/system-bt.git] / device / 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 static_library("device") {
18   sources = [
19     "src/classic/peer.c",
20     "src/controller.c"
21   ]
22
23   include_dirs = [
24     "//",
25     "//btcore/include",
26     "//hci/include",
27     "//include",
28     "//stack/include",
29   ]
30 }
31
32 executable("net_test_device") {
33   testonly = true
34   sources = [
35     "//osi/test/AllocationTestHarness.cpp",
36     "test/classic/peer_test.cpp",
37   ]
38
39   include_dirs = [
40     "//",
41     "//osi/include",
42   ]
43
44   deps = [
45     "//device",
46     "//btcore",
47     "//osi",
48     "//third_party/gtest:gtest_main",
49   ]
50
51   libs = [ "-lpthread", "-lrt", "-ldl" ]
52 }