• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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("hci") {
18  sources = [
19    "src/btsnoop.c",
20    "src/btsnoop_mem.c",
21    "src/btsnoop_net.c",
22    "src/buffer_allocator.c",
23    "src/hci_audio.c",
24    "src/hci_hal.c",
25    "src/hci_hal_h4.c",
26    "src/hci_hal_mct.c",
27    "src/hci_inject.c",
28    "src/hci_layer.c",
29    "src/hci_packet_factory.c",
30    "src/hci_packet_parser.c",
31    "src/low_power_manager.c",
32    "src/packet_fragmenter.c",
33    "src/vendor.c",
34  ]
35
36  include_dirs = [
37    "include",
38    "//",
39    "//include",
40    "//bta/include",
41    "//btcore/include",
42    "//stack/include",
43  ]
44}
45
46executable("net_test_hci") {
47  testonly = true
48  sources = [
49    "//osi/test/AllocationTestHarness.cpp",
50    "//osi/test/AlarmTestHarness.cpp",
51    "test/hci_hal_h4_test.cpp",
52    "test/hci_hal_mct_test.cpp",
53    "test/hci_layer_test.cpp",
54    "test/low_power_manager_test.cpp",
55    "test/packet_fragmenter_test.cpp",
56  ]
57
58  include_dirs = [
59    "//",
60    "//include",
61    "//btcore/include",
62    "//hci/include",
63    "//osi/test",
64    "//stack/include",
65  ]
66
67  deps = [
68    "//hci",
69    "//osi",
70    "//btcore",
71    "//third_party/googletest:gtest_main",
72  ]
73
74  libs = [
75    "-lpthread",
76    "-lrt",
77    "-ldl",
78  ]
79}
80