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("device") {
18  sources = [
19    "src/controller.cc",
20    "src/esco_parameters.cc",
21    "src/interop.cc",
22  ]
23
24  include_dirs = [
25    "//bt/",
26    "//bt/btcore/include",
27    "//bt/hci/include",
28    "//bt/internal_include",
29    "//bt/stack/include",
30  ]
31
32  configs += [
33    "//bt:target_defaults",
34  ]
35
36  deps = [
37    "//bt/gd/rust/shim:init_flags_bridge_header",
38    "//bt/gd/rust/shim:message_loop_thread_bridge_header",
39  ]
40}
41
42if (use.test) {
43  executable("net_test_device") {
44    sources = [
45      "//bt/osi/test/AllocationTestHarness.cc",
46    ]
47
48    include_dirs = [ "//bt" ]
49
50    deps = [
51      "//bt/device",
52      "//bt/btcore",
53      "//bt/osi",
54    ]
55
56    configs += [
57      "//bt:external_gtest_main",
58      "//bt:target_defaults",
59    ]
60
61    libs = [
62      "pthread",
63      "rt",
64      "dl",
65    ]
66  }
67}
68