Fix for x86_64 build fail
[platform/upstream/connectedhomeip.git] / src / transport / BUILD.gn
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")
16 import("//build_overrides/nlio.gni")
17 import("${chip_root}/src/ble/ble.gni")
18
19 static_library("transport") {
20   output_name = "libTransportLayer"
21
22   sources = [
23     "AdminPairingTable.cpp",
24     "AdminPairingTable.h",
25     "CASESession.cpp",
26     "CASESession.h",
27     "NetworkProvisioning.cpp",
28     "NetworkProvisioning.h",
29     "PASESession.cpp",
30     "PASESession.h",
31     "PeerConnectionState.h",
32     "PeerConnections.h",
33     "RendezvousParameters.h",
34     "RendezvousSession.cpp",
35     "RendezvousSession.h",
36     "RendezvousSessionDelegate.h",
37     "SecureMessageCodec.cpp",
38     "SecureMessageCodec.h",
39     "SecureSession.cpp",
40     "SecureSession.h",
41     "SecureSessionMgr.cpp",
42     "SecureSessionMgr.h",
43     "SessionEstablishmentDelegate.h",
44     "StorablePeerConnection.cpp",
45     "StorablePeerConnection.h",
46     "TransportMgr.h",
47     "TransportMgrBase.cpp",
48     "TransportMgrBase.h",
49   ]
50
51   if (chip_config_network_layer_ble) {
52     sources += [
53       "BLE.cpp",
54       "BLE.h",
55     ]
56   }
57
58   cflags = [ "-Wconversion" ]
59
60   public_deps = [
61     "${chip_root}/src/crypto",
62     "${chip_root}/src/inet",
63     "${chip_root}/src/lib/core",
64     "${chip_root}/src/lib/mdns",
65     "${chip_root}/src/lib/support",
66     "${chip_root}/src/platform",
67     "${chip_root}/src/setup_payload",
68     "${chip_root}/src/transport/raw",
69     "${nlio_root}:nlio",
70   ]
71 }