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