Arman Uguray | 9ca3fb8 | 2015-05-26 14:50:36 -0700 | [diff] [blame] | 1 | # |
Jakub Pawlowski | 5b790fe | 2017-09-18 09:00:20 -0700 | [diff] [blame] | 2 | # Copyright 2015 Google, Inc. |
Arman Uguray | 9ca3fb8 | 2015-05-26 14:50:36 -0700 | [diff] [blame] | 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 Uguray | 2c494e1 | 2015-05-29 14:43:20 -0700 | [diff] [blame] | 17 | static_library("hci") { |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 18 | sources = [ |
Pavlin Radoslavov | b2a292b | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 19 | "src/btsnoop.cc", |
| 20 | "src/btsnoop_mem.cc", |
| 21 | "src/btsnoop_net.cc", |
| 22 | "src/buffer_allocator.cc", |
Pavlin Radoslavov | b2a292b | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 23 | "src/hci_inject.cc", |
| 24 | "src/hci_layer.cc", |
Jakub Pawlowski | 9329b8e | 2017-02-21 14:55:21 -0800 | [diff] [blame] | 25 | "src/hci_layer_linux.cc", |
Pavlin Radoslavov | b2a292b | 2016-10-14 19:34:48 -0700 | [diff] [blame] | 26 | "src/hci_packet_factory.cc", |
| 27 | "src/hci_packet_parser.cc", |
Jakub Pawlowski | 0a0a7e9 | 2016-05-26 15:03:57 -0700 | [diff] [blame] | 28 | "src/packet_fragmenter.cc", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 29 | ] |
| 30 | |
| 31 | include_dirs = [ |
| 32 | "include", |
| 33 | "//", |
Jakub Pawlowski | c451068 | 2017-10-18 04:03:41 -0700 | [diff] [blame] | 34 | "//internal_include", |
Jakub Pawlowski | d7a05a0 | 2016-02-22 18:04:24 -0800 | [diff] [blame] | 35 | "//bta/include", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 36 | "//btcore/include", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 37 | "//stack/include", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 38 | ] |
Jakub Pawlowski | 71f5b3e | 2016-12-20 12:55:51 -0800 | [diff] [blame] | 39 | |
| 40 | deps = [ |
Jakub Pawlowski | 83db499 | 2018-11-20 19:27:11 +0100 | [diff] [blame^] | 41 | "//common", |
Jakub Pawlowski | 71f5b3e | 2016-12-20 12:55:51 -0800 | [diff] [blame] | 42 | "//third_party/libchrome:base", |
| 43 | ] |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 44 | } |
| 45 | |
| 46 | executable("net_test_hci") { |
Arman Uguray | a2647d0 | 2015-05-29 15:01:38 -0700 | [diff] [blame] | 47 | testonly = true |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 48 | sources = [ |
Jakub Pawlowski | e6d1202 | 2016-05-12 11:16:46 -0700 | [diff] [blame] | 49 | "//osi/test/AllocationTestHarness.cc", |
| 50 | "//osi/test/AlarmTestHarness.cc", |
Jakub Pawlowski | e6d1202 | 2016-05-12 11:16:46 -0700 | [diff] [blame] | 51 | "test/packet_fragmenter_test.cc", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 52 | ] |
| 53 | |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 54 | include_dirs = [ |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 55 | "//", |
Jakub Pawlowski | c451068 | 2017-10-18 04:03:41 -0700 | [diff] [blame] | 56 | "//internal_include", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 57 | "//btcore/include", |
Arman Uguray | a2647d0 | 2015-05-29 15:01:38 -0700 | [diff] [blame] | 58 | "//hci/include", |
Jakub Pawlowski | d7a05a0 | 2016-02-22 18:04:24 -0800 | [diff] [blame] | 59 | "//osi/test", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 60 | "//stack/include", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 61 | ] |
| 62 | |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 63 | deps = [ |
| 64 | "//hci", |
| 65 | "//osi", |
| 66 | "//btcore", |
Jakub Pawlowski | d7a05a0 | 2016-02-22 18:04:24 -0800 | [diff] [blame] | 67 | "//third_party/googletest:gtest_main", |
Jakub Pawlowski | 71f5b3e | 2016-12-20 12:55:51 -0800 | [diff] [blame] | 68 | "//third_party/libchrome:base", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 69 | ] |
| 70 | |
Jakub Pawlowski | d7a05a0 | 2016-02-22 18:04:24 -0800 | [diff] [blame] | 71 | libs = [ |
| 72 | "-lpthread", |
| 73 | "-lrt", |
| 74 | "-ldl", |
| 75 | ] |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 76 | } |