Arman Uguray | 9ca3fb8 | 2015-05-26 14:50:36 -0700 | [diff] [blame] | 1 | # |
| 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 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 = [ |
| 41 | "//third_party/libchrome:base", |
| 42 | ] |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 43 | } |
| 44 | |
| 45 | executable("net_test_hci") { |
Arman Uguray | a2647d0 | 2015-05-29 15:01:38 -0700 | [diff] [blame] | 46 | testonly = true |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 47 | sources = [ |
Jakub Pawlowski | e6d1202 | 2016-05-12 11:16:46 -0700 | [diff] [blame] | 48 | "//osi/test/AllocationTestHarness.cc", |
| 49 | "//osi/test/AlarmTestHarness.cc", |
Jakub Pawlowski | e6d1202 | 2016-05-12 11:16:46 -0700 | [diff] [blame] | 50 | "test/packet_fragmenter_test.cc", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 51 | ] |
| 52 | |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 53 | include_dirs = [ |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 54 | "//", |
Jakub Pawlowski | c451068 | 2017-10-18 04:03:41 -0700 | [diff] [blame] | 55 | "//internal_include", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 56 | "//btcore/include", |
Arman Uguray | a2647d0 | 2015-05-29 15:01:38 -0700 | [diff] [blame] | 57 | "//hci/include", |
Jakub Pawlowski | d7a05a0 | 2016-02-22 18:04:24 -0800 | [diff] [blame] | 58 | "//osi/test", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 59 | "//stack/include", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 60 | ] |
| 61 | |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 62 | deps = [ |
| 63 | "//hci", |
| 64 | "//osi", |
| 65 | "//btcore", |
Jakub Pawlowski | d7a05a0 | 2016-02-22 18:04:24 -0800 | [diff] [blame] | 66 | "//third_party/googletest:gtest_main", |
Jakub Pawlowski | 71f5b3e | 2016-12-20 12:55:51 -0800 | [diff] [blame] | 67 | "//third_party/libchrome:base", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 68 | ] |
| 69 | |
Jakub Pawlowski | d7a05a0 | 2016-02-22 18:04:24 -0800 | [diff] [blame] | 70 | libs = [ |
| 71 | "-lpthread", |
| 72 | "-lrt", |
| 73 | "-ldl", |
| 74 | ] |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 75 | } |