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