blob: cb4467f47d109c3faa18461db80477dbb3f8a29f [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") {
Arman Uguraya2647d02015-05-29 15:01:38 -070047 testonly = true
Scott James Remnant4c292312015-05-12 13:58:49 -070048 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
Scott James Remnant4c292312015-05-12 13:58:49 -070058 include_dirs = [
Scott James Remnant4c292312015-05-12 13:58:49 -070059 "//",
60 "//include",
61 "//btcore/include",
Arman Uguraya2647d02015-05-29 15:01:38 -070062 "//hci/include",
Scott James Remnant4c292312015-05-12 13:58:49 -070063 "//osi/include",
64 "//osi/test",
65 "//stack/include",
Scott James Remnant4c292312015-05-12 13:58:49 -070066 ]
67
68 cflags = [
69 "-Wno-unused-variable",
70 ]
71
72 deps = [
73 "//hci",
74 "//osi",
75 "//btcore",
Arman Uguraya2647d02015-05-29 15:01:38 -070076 "//third_party/gtest:gtest_main",
Scott James Remnant4c292312015-05-12 13:58:49 -070077 ]
78
79 libs = [ "-lpthread", "-lrt", "-ldl" ]
80}