blob: 95413a1190f76f0ba7e493193d486fefd9db8552 [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",
Pavlin Radoslavovb2a292b2016-10-14 19:34:48 -070023 "src/hci_inject.cc",
24 "src/hci_layer.cc",
Jakub Pawlowski9329b8e2017-02-21 14:55:21 -080025 "src/hci_layer_linux.cc",
Pavlin Radoslavovb2a292b2016-10-14 19:34:48 -070026 "src/hci_packet_factory.cc",
27 "src/hci_packet_parser.cc",
Jakub Pawlowski0a0a7e92016-05-26 15:03:57 -070028 "src/packet_fragmenter.cc",
Scott James Remnant4c292312015-05-12 13:58:49 -070029 ]
30
31 include_dirs = [
32 "include",
33 "//",
Jakub Pawlowskic4510682017-10-18 04:03:41 -070034 "//internal_include",
Jakub Pawlowskid7a05a02016-02-22 18:04:24 -080035 "//bta/include",
Scott James Remnant4c292312015-05-12 13:58:49 -070036 "//btcore/include",
Scott James Remnant4c292312015-05-12 13:58:49 -070037 "//stack/include",
Scott James Remnant4c292312015-05-12 13:58:49 -070038 ]
Jakub Pawlowski71f5b3e2016-12-20 12:55:51 -080039
40 deps = [
41 "//third_party/libchrome:base",
42 ]
Scott James Remnant4c292312015-05-12 13:58:49 -070043}
44
45executable("net_test_hci") {
Arman Uguraya2647d02015-05-29 15:01:38 -070046 testonly = true
Scott James Remnant4c292312015-05-12 13:58:49 -070047 sources = [
Jakub Pawlowskie6d12022016-05-12 11:16:46 -070048 "//osi/test/AllocationTestHarness.cc",
49 "//osi/test/AlarmTestHarness.cc",
Jakub Pawlowskie6d12022016-05-12 11:16:46 -070050 "test/packet_fragmenter_test.cc",
Scott James Remnant4c292312015-05-12 13:58:49 -070051 ]
52
Scott James Remnant4c292312015-05-12 13:58:49 -070053 include_dirs = [
Scott James Remnant4c292312015-05-12 13:58:49 -070054 "//",
Jakub Pawlowskic4510682017-10-18 04:03:41 -070055 "//internal_include",
Scott James Remnant4c292312015-05-12 13:58:49 -070056 "//btcore/include",
Arman Uguraya2647d02015-05-29 15:01:38 -070057 "//hci/include",
Jakub Pawlowskid7a05a02016-02-22 18:04:24 -080058 "//osi/test",
Scott James Remnant4c292312015-05-12 13:58:49 -070059 "//stack/include",
Scott James Remnant4c292312015-05-12 13:58:49 -070060 ]
61
Scott James Remnant4c292312015-05-12 13:58:49 -070062 deps = [
63 "//hci",
64 "//osi",
65 "//btcore",
Jakub Pawlowskid7a05a02016-02-22 18:04:24 -080066 "//third_party/googletest:gtest_main",
Jakub Pawlowski71f5b3e2016-12-20 12:55:51 -080067 "//third_party/libchrome:base",
Scott James Remnant4c292312015-05-12 13:58:49 -070068 ]
69
Jakub Pawlowskid7a05a02016-02-22 18:04:24 -080070 libs = [
71 "-lpthread",
72 "-lrt",
73 "-ldl",
74 ]
Scott James Remnant4c292312015-05-12 13:58:49 -070075}