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 = [ |
| 19 | "src/btsnoop.c", |
| 20 | "src/btsnoop_net.c", |
| 21 | "src/buffer_allocator.c", |
Arman Uguray | 2c494e1 | 2015-05-29 14:43:20 -0700 | [diff] [blame] | 22 | "src/hci_audio.c", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 23 | "src/hci_hal.c", |
| 24 | "src/hci_hal_h4.c", |
| 25 | "src/hci_hal_mct.c", |
| 26 | "src/hci_inject.c", |
| 27 | "src/hci_layer.c", |
| 28 | "src/hci_packet_factory.c", |
| 29 | "src/hci_packet_parser.c", |
| 30 | "src/low_power_manager.c", |
| 31 | "src/packet_fragmenter.c", |
| 32 | "src/vendor.c", |
| 33 | ] |
| 34 | |
| 35 | include_dirs = [ |
| 36 | "include", |
| 37 | "//", |
| 38 | "//include", |
| 39 | "//btcore/include", |
| 40 | "//gki/common", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 41 | "//osi/include", |
| 42 | "//stack/include", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 43 | ] |
| 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 = [ |
| 49 | "//osi/test/AllocationTestHarness.cpp", |
| 50 | "//osi/test/AlarmTestHarness.cpp", |
| 51 | "test/hci_hal_h4_test.cpp", |
| 52 | "test/hci_hal_mct_test.cpp", |
| 53 | "test/hci_layer_test.cpp", |
| 54 | "test/low_power_manager_test.cpp", |
| 55 | "test/packet_fragmenter_test.cpp", |
| 56 | ] |
| 57 | |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 58 | include_dirs = [ |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 59 | "//", |
| 60 | "//include", |
| 61 | "//btcore/include", |
Arman Uguray | a2647d0 | 2015-05-29 15:01:38 -0700 | [diff] [blame^] | 62 | "//hci/include", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 63 | "//osi/include", |
| 64 | "//osi/test", |
| 65 | "//stack/include", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 66 | ] |
| 67 | |
| 68 | cflags = [ |
| 69 | "-Wno-unused-variable", |
| 70 | ] |
| 71 | |
| 72 | deps = [ |
| 73 | "//hci", |
| 74 | "//osi", |
| 75 | "//btcore", |
Arman Uguray | a2647d0 | 2015-05-29 15:01:38 -0700 | [diff] [blame^] | 76 | "//third_party/gtest:gtest_main", |
Scott James Remnant | 4c29231 | 2015-05-12 13:58:49 -0700 | [diff] [blame] | 77 | ] |
| 78 | |
| 79 | libs = [ "-lpthread", "-lrt", "-ldl" ] |
| 80 | } |