Andrei Litvin | 0dfadb2 | 2020-09-29 17:07:53 -0400 | [diff] [blame] | 1 | # Copyright (c) 2020 Project CHIP Authors |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | import("//build_overrides/chip.gni") |
Andrei Litvin | 992775c | 2020-10-01 20:20:52 -0400 | [diff] [blame] | 16 | import("${chip_root}/src/ble/ble.gni") |
Andrei Litvin | 0dfadb2 | 2020-09-29 17:07:53 -0400 | [diff] [blame] | 17 | |
Andrei Litvin | 992775c | 2020-10-01 20:20:52 -0400 | [diff] [blame] | 18 | static_library("raw") { |
| 19 | output_name = "libRawTransport" |
Andrei Litvin | 0dfadb2 | 2020-09-29 17:07:53 -0400 | [diff] [blame] | 20 | |
Andrei Litvin | 992775c | 2020-10-01 20:20:52 -0400 | [diff] [blame] | 21 | sources = [ |
| 22 | "Base.h", |
| 23 | "MessageHeader.cpp", |
| 24 | "MessageHeader.h", |
| 25 | "PeerAddress.h", |
| 26 | "TCP.cpp", |
| 27 | "TCP.h", |
| 28 | "Tuple.h", |
| 29 | "UDP.cpp", |
| 30 | "UDP.h", |
| 31 | ] |
Andrei Litvin | 0dfadb2 | 2020-09-29 17:07:53 -0400 | [diff] [blame] | 32 | |
Song Guo | 87142e0 | 2021-04-21 09:00:00 +0800 | [diff] [blame] | 33 | if (chip_config_network_layer_ble) { |
| 34 | sources += [ |
| 35 | "BLE.cpp", |
| 36 | "BLE.h", |
| 37 | ] |
| 38 | } |
| 39 | |
Andrei Litvin | 0dfadb2 | 2020-09-29 17:07:53 -0400 | [diff] [blame] | 40 | cflags = [ "-Wconversion" ] |
| 41 | |
Andrei Litvin | 0dfadb2 | 2020-09-29 17:07:53 -0400 | [diff] [blame] | 42 | public_deps = [ |
Andrei Litvin | 992775c | 2020-10-01 20:20:52 -0400 | [diff] [blame] | 43 | "${chip_root}/src/crypto", |
| 44 | "${chip_root}/src/inet", |
| 45 | "${chip_root}/src/lib/core", |
| 46 | "${chip_root}/src/lib/support", |
| 47 | "${chip_root}/src/platform", |
Andrei Litvin | 0dfadb2 | 2020-09-29 17:07:53 -0400 | [diff] [blame] | 48 | ] |
Andrei Litvin | 0dfadb2 | 2020-09-29 17:07:53 -0400 | [diff] [blame] | 49 | } |