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
17static_library("btcore") {
18  sources = [
19    "src/bdaddr.c",
20    "src/device_class.c",
21    "src/hal_util.c",
22    "src/module.c",
23    "src/property.c",
24    "src/uuid.c",
25    "src/osi_module.c",
26  ]
27
28  include_dirs = [
29    "include",
30    "//",
31  ]
32}
33
34executable("net_test_btcore") {
35  testonly = true
36  sources = [
37    "test/bdaddr_test.cpp",
38    "test/device_class_test.cpp",
39    "test/property_test.cpp",
40    "test/uuid_test.cpp",
41    "//osi/test/AllocationTestHarness.cpp",
42  ]
43
44  include_dirs = [
45    "include",
46    "//",
47  ]
48
49  deps = [
50    "//btcore",
51    "//osi",
52    "//third_party/googletest:gtest_main",
53  ]
54
55  libs = [
56    "-lpthread",
57    "-lrt",
58    "-ldl",
59  ]
60}
61