blob: 27f4a65d4b6bb7afce6db927fcdff9f41a88e1cf [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
Arman Uguray2c494e12015-05-29 14:43:20 -070017static_library("hci") {
Scott James Remnant4c292312015-05-12 13:58:49 -070018 sources = [
19 "src/btsnoop.c",
20 "src/btsnoop_net.c",
21 "src/buffer_allocator.c",
Arman Uguray2c494e12015-05-29 14:43:20 -070022 "src/hci_audio.c",
Scott James Remnant4c292312015-05-12 13:58:49 -070023 "src/hci_hal.c",
24 "src/hci_hal_h4.c",
25 "src/hci_hal_mct.c",
26 "src/hci_inject.c",
27 "src/hci_layer.c",
28 "src/hci_packet_factory.c",
29 "src/hci_packet_parser.c",
30 "src/low_power_manager.c",
31 "src/packet_fragmenter.c",
32 "src/vendor.c",
33 ]
34
35 include_dirs = [
36 "include",
37 "//",
38 "//include",
39 "//btcore/include",
40 "//gki/common",
Scott James Remnant4c292312015-05-12 13:58:49 -070041 "//osi/include",
42 "//stack/include",
Scott James Remnant4c292312015-05-12 13:58:49 -070043 ]
44}
45
46executable("net_test_hci") {
47 sources = [
48 "//osi/test/AllocationTestHarness.cpp",
49 "//osi/test/AlarmTestHarness.cpp",
50 "test/hci_hal_h4_test.cpp",
51 "test/hci_hal_mct_test.cpp",
52 "test/hci_layer_test.cpp",
53 "test/low_power_manager_test.cpp",
54 "test/packet_fragmenter_test.cpp",
55 ]
56
57 sources += [ "//main/stack_config.c" ]
58
59 include_dirs = [
60 "include",
61 "//",
62 "//include",
63 "//btcore/include",
64 "//gki/common",
65 "//gki/ulinux",
66 "//osi/include",
67 "//osi/test",
68 "//stack/include",
69 "//utils/include",
70 ]
71
72 cflags = [
73 "-Wno-unused-variable",
74 ]
75
76 deps = [
77 "//hci",
78 "//osi",
79 "//btcore",
80 ]
81
82 deps += [
83 "//gki",
84 "//device",
85 ]
86
87 libs = [ "-lpthread", "-lrt", "-ldl" ]
88}