blob: ec53c34b956bc5a4fd38eda992afe824394e0094 [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 = [
Pavlin Radoslavovb2a292b2016-10-14 19:34:48 -070019 "src/btsnoop.cc",
20 "src/btsnoop_mem.cc",
21 "src/btsnoop_net.cc",
22 "src/buffer_allocator.cc",
23 "src/hci_audio.cc",
24 "src/hci_hal.cc",
25 "src/hci_hal_h4.cc",
26 "src/hci_hal_mct.cc",
27 "src/hci_inject.cc",
28 "src/hci_layer.cc",
29 "src/hci_packet_factory.cc",
30 "src/hci_packet_parser.cc",
31 "src/low_power_manager.cc",
Jakub Pawlowski0a0a7e92016-05-26 15:03:57 -070032 "src/packet_fragmenter.cc",
Pavlin Radoslavovb2a292b2016-10-14 19:34:48 -070033 "src/vendor.cc",
Scott James Remnant4c292312015-05-12 13:58:49 -070034 ]
35
36 include_dirs = [
37 "include",
38 "//",
39 "//include",
Jakub Pawlowskid7a05a02016-02-22 18:04:24 -080040 "//bta/include",
Scott James Remnant4c292312015-05-12 13:58:49 -070041 "//btcore/include",
Scott James Remnant4c292312015-05-12 13:58:49 -070042 "//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 = [
Jakub Pawlowskie6d12022016-05-12 11:16:46 -070049 "//osi/test/AllocationTestHarness.cc",
50 "//osi/test/AlarmTestHarness.cc",
51 "test/hci_hal_h4_test.cc",
52 "test/hci_hal_mct_test.cc",
53 "test/hci_layer_test.cc",
54 "test/low_power_manager_test.cc",
55 "test/packet_fragmenter_test.cc",
Scott James Remnant4c292312015-05-12 13:58:49 -070056 ]
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",
Jakub Pawlowskid7a05a02016-02-22 18:04:24 -080063 "//osi/test",
Scott James Remnant4c292312015-05-12 13:58:49 -070064 "//stack/include",
Scott James Remnant4c292312015-05-12 13:58:49 -070065 ]
66
Scott James Remnant4c292312015-05-12 13:58:49 -070067 deps = [
68 "//hci",
69 "//osi",
70 "//btcore",
Jakub Pawlowskid7a05a02016-02-22 18:04:24 -080071 "//third_party/googletest:gtest_main",
Scott James Remnant4c292312015-05-12 13:58:49 -070072 ]
73
Jakub Pawlowskid7a05a02016-02-22 18:04:24 -080074 libs = [
75 "-lpthread",
76 "-lrt",
77 "-ldl",
78 ]
Scott James Remnant4c292312015-05-12 13:58:49 -070079}