@@ -21,6 +21,8 @@ import("${chip_root}/build/config/compiler/compiler.gni")
21
21
import (" ${ chip_root } /build/config/mac/mac_sdk.gni" )
22
22
import (" ${ chip_root } /examples//chip-tool/chip-tool.gni" )
23
23
24
+ import (" ${ build_root } /config/linux/pkg_config.gni" )
25
+
24
26
if (config_use_interactive_mode ) {
25
27
import (" //build_overrides/editline.gni" )
26
28
}
@@ -182,6 +184,10 @@ config("config") {
182
184
]
183
185
}
184
186
187
+ pkg_config (" openssl_config" ) {
188
+ packages = [ " openssl" ]
189
+ }
190
+
185
191
executable (" darwin-framework-tool" ) {
186
192
sources = [
187
193
" ${ chip_root } /examples/chip-tool/commands/common/Command.cpp" ,
@@ -191,6 +197,7 @@ executable("darwin-framework-tool") {
191
197
" ${ chip_root } /examples/chip-tool/commands/common/HexConversion.h" ,
192
198
" ${ chip_root } /examples/chip-tool/commands/dcl/DCLClient.cpp" ,
193
199
" ${ chip_root } /examples/chip-tool/commands/dcl/DisplayTermsAndConditions.cpp" ,
200
+ " ${ chip_root } /examples/chip-tool/commands/dcl/HTTPSRequest.cpp" ,
194
201
" ${ chip_root } /examples/chip-tool/commands/dcl/JsonSchemaMacros.cpp" ,
195
202
" ${ chip_root } /examples/common/websocket-server/WebSocketServer.cpp" ,
196
203
" ${ chip_root } /examples/common/websocket-server/WebSocketServer.h" ,
@@ -226,7 +233,6 @@ executable("darwin-framework-tool") {
226
233
" commands/configuration/ResetMRPParametersCommand.mm" ,
227
234
" commands/configuration/SetMRPParametersCommand.h" ,
228
235
" commands/configuration/SetMRPParametersCommand.mm" ,
229
- " commands/dcl/HTTPSRequest.mm" ,
230
236
" commands/delay/Commands.h" ,
231
237
" commands/delay/SleepCommand.h" ,
232
238
" commands/delay/SleepCommand.mm" ,
@@ -293,7 +299,10 @@ executable("darwin-framework-tool") {
293
299
" ${ root_out_dir } /macos_framework_output/Build/Intermediates.noindex/Matter.build/${ output_sdk_type } /Matter.build/out/gen/include" ,
294
300
]
295
301
296
- defines = [ " CHIP_HAVE_CONFIG_H=1" ]
302
+ defines = [
303
+ " CHIP_HAVE_CONFIG_H=1" ,
304
+ " CONFIG_ENABLE_HTTPS_REQUESTS" ,
305
+ ]
297
306
298
307
frameworks += [
299
308
" CoreFoundation.framework" ,
@@ -317,7 +326,10 @@ executable("darwin-framework-tool") {
317
326
defines += [ " DFT_ENABLE_LEAK_CHECKING=1" ]
318
327
}
319
328
320
- public_configs = [ " :config" ]
329
+ public_configs = [
330
+ " :config" ,
331
+ " :openssl_config" ,
332
+ ]
321
333
322
334
output_dir = root_out_dir
323
335
}
0 commit comments