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") { |
| 47 | sources = [ |
| 48 | "//osi/test/AllocationTestHarness.cpp", |
| 49 | "//osi/test/AlarmTestHarness.cpp", |
| 50 | "test/hci_hal_h4_test.cpp", |
| 51 | "test/hci_hal_mct_test.cpp", |
| 52 | "test/hci_layer_test.cpp", |
| 53 | "test/low_power_manager_test.cpp", |
| 54 | "test/packet_fragmenter_test.cpp", |
| 55 | ] |
| 56 | |
| 57 | sources += [ "//main/stack_config.c" ] |
| 58 | |
| 59 | include_dirs = [ |
| 60 | "include", |
| 61 | "//", |
| 62 | "//include", |
| 63 | "//btcore/include", |
| 64 | "//gki/common", |
| 65 | "//gki/ulinux", |
| 66 | "//osi/include", |
| 67 | "//osi/test", |
| 68 | "//stack/include", |
| 69 | "//utils/include", |
| 70 | ] |
| 71 | |
| 72 | cflags = [ |
| 73 | "-Wno-unused-variable", |
| 74 | ] |
| 75 | |
| 76 | deps = [ |
| 77 | "//hci", |
| 78 | "//osi", |
| 79 | "//btcore", |
| 80 | ] |
| 81 | |
| 82 | deps += [ |
| 83 | "//gki", |
| 84 | "//device", |
| 85 | ] |
| 86 | |
| 87 | libs = [ "-lpthread", "-lrt", "-ldl" ] |
| 88 | } |