blob: 5d9163c07a0ede1fc6a1494c84a6541c47bd034f [file] [log] [blame]
Arman Uguray9ca3fb82015-05-26 14:50:36 -07001#
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
Scott James Remnant4c292312015-05-12 13:58:49 -070017source_set("hci") {
18 sources = [
19 "src/btsnoop.c",
20 "src/btsnoop_net.c",
21 "src/buffer_allocator.c",
22 "src/hci_hal.c",
23 "src/hci_hal_h4.c",
24 "src/hci_hal_mct.c",
25 "src/hci_inject.c",
26 "src/hci_layer.c",
27 "src/hci_packet_factory.c",
28 "src/hci_packet_parser.c",
29 "src/low_power_manager.c",
30 "src/packet_fragmenter.c",
31 "src/vendor.c",
32 ]
33
34 include_dirs = [
35 "include",
36 "//",
37 "//include",
38 "//btcore/include",
39 "//gki/common",
40 "//gki/ulinux",
41 "//osi/include",
42 "//stack/include",
43 "//utils/include",
44 ]
45}
46
47executable("net_test_hci") {
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 sources += [ "//main/stack_config.c" ]
59
60 include_dirs = [
61 "include",
62 "//",
63 "//include",
64 "//btcore/include",
65 "//gki/common",
66 "//gki/ulinux",
67 "//osi/include",
68 "//osi/test",
69 "//stack/include",
70 "//utils/include",
71 ]
72
73 cflags = [
74 "-Wno-unused-variable",
75 ]
76
77 deps = [
78 "//hci",
79 "//osi",
80 "//btcore",
81 ]
82
83 deps += [
84 "//gki",
85 "//device",
86 ]
87
88 libs = [ "-lpthread", "-lrt", "-ldl" ]
89}