OSDN Git Service

Null-terminate hex string in uuid_new() am: addbe8f489 am: 5f2c3d86d2
[android-x86/system-bt.git] / btcore / 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("btcore") {
18   sources = [
19     "src/bdaddr.c",
20     "src/counter.c",
21     "src/device_class.c",
22     "src/hal_util.c",
23     "src/module.c",
24     "src/property.c",
25     "src/uuid.c",
26   ]
27
28   include_dirs = [
29     "include",
30     "//",
31   ]
32 }
33
34 executable("net_test_btcore") {
35   testonly = true
36   sources = [
37     "test/bdaddr_test.cpp",
38     "test/counter_test.cpp",
39     "test/device_class_test.cpp",
40     "test/property_test.cpp",
41     "test/uuid_test.cpp",
42     "//osi/test/AllocationTestHarness.cpp",
43   ]
44
45   include_dirs = [
46     "include",
47     "//",
48   ]
49
50   deps = [
51     "//btcore",
52     "//osi",
53     "//third_party/gtest:gtest_main",
54   ]
55
56   libs = [ "-lpthread", "-lrt", "-ldl" ]
57 }