blob: ae3aeb58f8e3e9bcd186fa15d85e4ef21bb1a084 [file] [log] [blame]
Andrei Litvin0dfadb22020-09-29 17:07:53 -04001# 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
15import("//build_overrides/chip.gni")
Andrei Litvin992775c2020-10-01 20:20:52 -040016import("${chip_root}/src/ble/ble.gni")
Andrei Litvin0dfadb22020-09-29 17:07:53 -040017
Andrei Litvin992775c2020-10-01 20:20:52 -040018static_library("raw") {
19 output_name = "libRawTransport"
Andrei Litvin0dfadb22020-09-29 17:07:53 -040020
Andrei Litvin992775c2020-10-01 20:20:52 -040021 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 Litvin0dfadb22020-09-29 17:07:53 -040032
Song Guo87142e02021-04-21 09:00:00 +080033 if (chip_config_network_layer_ble) {
34 sources += [
35 "BLE.cpp",
36 "BLE.h",
37 ]
38 }
39
Andrei Litvin0dfadb22020-09-29 17:07:53 -040040 cflags = [ "-Wconversion" ]
41
Andrei Litvin0dfadb22020-09-29 17:07:53 -040042 public_deps = [
Andrei Litvin992775c2020-10-01 20:20:52 -040043 "${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 Litvin0dfadb22020-09-29 17:07:53 -040048 ]
Andrei Litvin0dfadb22020-09-29 17:07:53 -040049}