@@ -114,7 +114,10 @@ static_library("ESP32_custom") {
114
114
" ${ chip_root } /src/setup_payload" ,
115
115
]
116
116
117
- public = [ " ${ chip_root } /src/credentials/DeviceAttestationCredsProvider.h" ]
117
+ public = [
118
+ " ${ chip_root } /src/credentials/CHIPCert.h" ,
119
+ " ${ chip_root } /src/credentials/DeviceAttestationCredsProvider.h" ,
120
+ ]
118
121
119
122
public_deps = [
120
123
" ${ chip_root } /src/crypto" ,
@@ -132,19 +135,31 @@ static_library("ESP32_custom") {
132
135
if (chip_enable_chipoble ) {
133
136
sources += [
134
137
" BLEManagerImpl.h" ,
138
+ " ChipDeviceScanner.h" ,
135
139
]
136
140
}
137
141
142
+ if (chip_enable_ble_controller ) {
143
+ sources += [ " ChipDeviceScanner.h" ]
144
+ }
145
+
138
146
if (chip_bt_nimble_enabled ) {
139
- sources += [
140
- " nimble/BLEManagerImpl.cpp" ,
141
- ]
147
+ sources += [ " nimble/BLEManagerImpl.cpp" ]
148
+ if (chip_enable_ble_controller ) {
149
+ sources += [
150
+ " nimble/ChipDeviceScanner.cpp" ,
151
+ " nimble/blecent.h" ,
152
+ " nimble/misc.c" ,
153
+ " nimble/peer.c" ,
154
+ ]
155
+ }
142
156
}
143
157
144
158
if (chip_bt_bluedroid_enabled ) {
145
- sources += [
146
- " bluedroid/BLEManagerImpl.cpp" ,
147
- ]
159
+ sources += [ " bluedroid/BLEManagerImpl.cpp" ]
160
+ if (chip_enable_ble_controller ) {
161
+ sources += [ " bluedroid/ChipDeviceScanner.cpp" ]
162
+ }
148
163
}
149
164
150
165
if (chip_enable_wifi ) {
@@ -159,6 +174,9 @@ static_library("ESP32_custom") {
159
174
" WiFiDnssdImpl.h" ,
160
175
]
161
176
}
177
+ if (chip_mdns == " minimal" ) {
178
+ sources += [ " ESP32EndpointQueueFilter.h" ]
179
+ }
162
180
if (chip_enable_route_hook ) {
163
181
sources += [
164
182
" route_hook/ESP32RouteHook.c" ,
@@ -169,15 +187,34 @@ static_library("ESP32_custom") {
169
187
}
170
188
}
171
189
190
+ if (chip_mdns == " platform" ) {
191
+ sources += [ " DnssdImpl.cpp" ]
192
+ }
193
+
172
194
if (chip_enable_ethernet ) {
173
195
sources += [
174
196
" ConnectivityManagerImpl_Ethernet.cpp" ,
175
197
" NetworkCommissioningDriver_Ethernet.cpp" ,
176
198
]
177
199
}
178
200
179
- if (chip_mdns == " platform" ) {
180
- sources += [ " DnssdImpl.cpp" ]
201
+ if (chip_enable_openthread ) {
202
+ sources += [
203
+ " ${ chip_root } /src/platform/OpenThread/GenericNetworkCommissioningThreadDriver.cpp" ,
204
+ " ${ chip_root } /src/platform/OpenThread/GenericNetworkCommissioningThreadDriver.h" ,
205
+ " ${ chip_root } /src/platform/OpenThread/OpenThreadUtils.cpp" ,
206
+ " OpenthreadLauncher.cpp" ,
207
+ " OpenthreadLauncher.h" ,
208
+ " ThreadStackManagerImpl.cpp" ,
209
+ " ThreadStackManagerImpl.h" ,
210
+ ]
211
+ if (chip_mdns == " platform" ) {
212
+ sources += [
213
+ " ${ chip_root } /src/platform/OpenThread/OpenThreadDnssdImpl.cpp" ,
214
+ " ${ chip_root } /src/platform/OpenThread/OpenThreadDnssdImpl.h" ,
215
+ ]
216
+ }
217
+ configs -= [ " ${ chip_root } /build/config/compiler:warnings_default" ]
181
218
}
182
219
183
220
if (chip_use_factory_data_provider ) {
@@ -193,4 +230,20 @@ static_library("ESP32_custom") {
193
230
" ESP32DeviceInfoProvider.h" ,
194
231
]
195
232
}
233
+
234
+ if (chip_use_secure_cert_dac_provider ) {
235
+ sources += [
236
+ " ESP32SecureCertDACProvider.cpp" ,
237
+ " ESP32SecureCertDACProvider.h" ,
238
+ ]
239
+ }
240
+
241
+ if (chip_use_esp32_ecdsa_peripheral ) {
242
+ sources += [
243
+ " ESP32CHIPCryptoPAL.cpp" ,
244
+ " ESP32CHIPCryptoPAL.h" ,
245
+ ]
246
+ }
247
+
248
+ cflags = [ " -Wconversion" ]
196
249
}
0 commit comments