• 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("device") {
18  sources = [
19    "src/controller.cc",
20    "src/esco_parameters.cc",
21    "src/interop.cc",
22    "src/device_iot_config.cc",
23    "src/device_iot_config_int.cc",
24  ]
25
26  include_dirs = [
27    "//bt/system/",
28    "//bt/system/internal_include",
29    "//bt/system/stack/include",
30  ]
31
32  configs += [
33    "//bt/system:target_defaults",
34  ]
35
36  deps = [
37    "//bt/system/gd/rust/shim:init_flags_bridge_header",
38    "//bt/system/gd/rust/shim:libbluetooth_rust_interop",
39  ]
40}
41
42if (use.test) {
43  executable("net_test_device") {
44    sources = [
45      "//bt/system/osi/test/AllocationTestHarness.cc",
46    ]
47
48    include_dirs = [ "//bt/system" ]
49
50    deps = [
51      "//bt/system/device",
52      "//bt/system/btcore",
53      "//bt/system/osi",
54    ]
55
56    configs += [
57      "//bt/system:external_gtest_main",
58      "//bt/system:target_defaults",
59    ]
60
61    libs = [
62      "pthread",
63      "rt",
64      "dl",
65    ]
66  }
67  executable("net_test_device_iot_config") {
68    sources = [
69      "//bt/system/osi/test/AllocationTestHarness.cc",
70    ]
71
72    include_dirs = [
73      "//bt/system",
74      "//bt/system/stack/include",
75      "//bt/system/device/src",
76    ]
77
78    deps = [
79      "//bt/system/device",
80      "//bt/system/btcore",
81    ]
82
83    configs += [
84      "//bt/system:target_defaults",
85    ]
86
87    libs = [
88      "pthread",
89      "rt",
90      "dl",
91    ]
92  }
93}
94