blob: e29e2569ed5aa502c9cb1ca7158e3fb9150428c7 [file] [log] [blame]
Arman Uguray9ca3fb82015-05-26 14:50:36 -07001#
Jakub Pawlowski5b790fe2017-09-18 09:00:20 -07002# Copyright 2015 Google, Inc.
Arman Uguray9ca3fb82015-05-26 14:50:36 -07003#
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 = [
Jakub Pawlowski83db4992018-11-20 19:27:11 +010041 "//common",
Jakub Pawlowski71f5b3e2016-12-20 12:55:51 -080042 "//third_party/libchrome:base",
43 ]
Scott James Remnant4c292312015-05-12 13:58:49 -070044}
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",
Jakub Pawlowskie6d12022016-05-12 11:16:46 -070051 "test/packet_fragmenter_test.cc",
Scott James Remnant4c292312015-05-12 13:58:49 -070052 ]
53
Scott James Remnant4c292312015-05-12 13:58:49 -070054 include_dirs = [
Scott James Remnant4c292312015-05-12 13:58:49 -070055 "//",
Jakub Pawlowskic4510682017-10-18 04:03:41 -070056 "//internal_include",
Scott James Remnant4c292312015-05-12 13:58:49 -070057 "//btcore/include",
Arman Uguraya2647d02015-05-29 15:01:38 -070058 "//hci/include",
Jakub Pawlowskid7a05a02016-02-22 18:04:24 -080059 "//osi/test",
Scott James Remnant4c292312015-05-12 13:58:49 -070060 "//stack/include",
Scott James Remnant4c292312015-05-12 13:58:49 -070061 ]
62
Scott James Remnant4c292312015-05-12 13:58:49 -070063 deps = [
64 "//hci",
65 "//osi",
66 "//btcore",
Jakub Pawlowskid7a05a02016-02-22 18:04:24 -080067 "//third_party/googletest:gtest_main",
Jakub Pawlowski71f5b3e2016-12-20 12:55:51 -080068 "//third_party/libchrome:base",
Scott James Remnant4c292312015-05-12 13:58:49 -070069 ]
70
Jakub Pawlowskid7a05a02016-02-22 18:04:24 -080071 libs = [
72 "-lpthread",
73 "-lrt",
74 "-ldl",
75 ]
Scott James Remnant4c292312015-05-12 13:58:49 -070076}