@@ -72,9 +72,20 @@ source_set("inet_config_header") {
72
72
deps = [ " :inet_buildconfig" ]
73
73
}
74
74
75
+ source_set (" impl_header" ) {
76
+ sources = [ " InetInterfaceImpl.h" ]
77
+ public_configs = [ " ${ chip_root } /src:includes" ]
78
+ public_deps = [ " ${ chip_root } /src/system:system_config_header" ]
79
+ }
80
+
75
81
static_library (" inet" ) {
76
82
output_name = " libInetLayer"
77
83
84
+ # EndpointState header is one of:
85
+ # - src/inet/EndPointStateLwIP.h
86
+ # - src/inet/EndPointStateNetworkFramework.h
87
+ # - src/inet/EndPointStateOpenThread.h
88
+ # - src/inet/EndPointStateSockets.h
78
89
sources = [
79
90
" EndPointBasis.h" ,
80
91
" EndPointState${ chip_system_config_inet } .h" ,
@@ -98,6 +109,7 @@ static_library("inet") {
98
109
]
99
110
100
111
public_deps = [
112
+ " :impl_header" ,
101
113
" :inet_config_header" ,
102
114
" ${ chip_root } /src/lib/core:types" ,
103
115
" ${ chip_root } /src/lib/support" ,
@@ -115,6 +127,13 @@ static_library("inet") {
115
127
}
116
128
117
129
if (chip_inet_config_enable_tcp_endpoint ) {
130
+ # Possible TCPEndpointImpl files:
131
+ # - TCPEndPointImplLwIP.cpp
132
+ # - TCPEndPointImplLwIP.h
133
+ # - TCPEndPointImplOpenThread.cpp
134
+ # - TCPEndPointImplOpenThread.h
135
+ # - TCPEndPointImplSockets.cpp
136
+ # - TCPEndPointImplSockets.h
118
137
sources += [
119
138
" TCPEndPoint.cpp" ,
120
139
" TCPEndPoint.h" ,
@@ -125,6 +144,15 @@ static_library("inet") {
125
144
}
126
145
127
146
if (chip_inet_config_enable_udp_endpoint ) {
147
+ # Possible UDPEndpointImpl files:
148
+ # - UDPEndPointImplLwIP.cpp
149
+ # - UDPEndPointImplLwIP.h
150
+ # - UDPEndPointImplNetworkFramework.cpp
151
+ # - UDPEndPointImplNetworkFramework.h
152
+ # - UDPEndPointImplOpenThread.cpp
153
+ # - UDPEndPointImplOpenThread.h
154
+ # - UDPEndPointImplSockets.cpp
155
+ # - UDPEndPointImplSockets.h
128
156
sources += [
129
157
" BasicPacketFilters.h" ,
130
158
" EndpointQueueFilter.h" ,
@@ -134,6 +162,12 @@ static_library("inet") {
134
162
" UDPEndPointImpl${ chip_system_config_inet } .h" ,
135
163
" UDPEndPointImpl.h" ,
136
164
]
165
+
166
+ if (chip_system_config_inet == " Sockets" ) {
167
+ # TODO: dependency on this one is not clear as it is only ever
168
+ # enabled through CMakeLists.txt. Added here for completeness
169
+ sources += [ " ZephyrSocket.h" ]
170
+ }
137
171
}
138
172
139
173
if (chip_with_nlfaultinjection ) {
0 commit comments