Skip to content

Commit 976dacd

Browse files
Build dft with HTTPSRequest from chip-tool and openssl / boringssl
1 parent 73fe30c commit 976dacd

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

examples/darwin-framework-tool/BUILD.gn

+15-3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ import("${chip_root}/build/config/compiler/compiler.gni")
2121
import("${chip_root}/build/config/mac/mac_sdk.gni")
2222
import("${chip_root}/examples//chip-tool/chip-tool.gni")
2323

24+
import("${build_root}/config/linux/pkg_config.gni")
25+
2426
if (config_use_interactive_mode) {
2527
import("//build_overrides/editline.gni")
2628
}
@@ -182,6 +184,10 @@ config("config") {
182184
]
183185
}
184186

187+
pkg_config("openssl_config") {
188+
packages = [ "openssl" ]
189+
}
190+
185191
executable("darwin-framework-tool") {
186192
sources = [
187193
"${chip_root}/examples/chip-tool/commands/common/Command.cpp",
@@ -191,6 +197,7 @@ executable("darwin-framework-tool") {
191197
"${chip_root}/examples/chip-tool/commands/common/HexConversion.h",
192198
"${chip_root}/examples/chip-tool/commands/dcl/DCLClient.cpp",
193199
"${chip_root}/examples/chip-tool/commands/dcl/DisplayTermsAndConditions.cpp",
200+
"${chip_root}/examples/chip-tool/commands/dcl/HTTPSRequest.cpp",
194201
"${chip_root}/examples/chip-tool/commands/dcl/JsonSchemaMacros.cpp",
195202
"${chip_root}/examples/common/websocket-server/WebSocketServer.cpp",
196203
"${chip_root}/examples/common/websocket-server/WebSocketServer.h",
@@ -226,7 +233,6 @@ executable("darwin-framework-tool") {
226233
"commands/configuration/ResetMRPParametersCommand.mm",
227234
"commands/configuration/SetMRPParametersCommand.h",
228235
"commands/configuration/SetMRPParametersCommand.mm",
229-
"commands/dcl/HTTPSRequest.mm",
230236
"commands/delay/Commands.h",
231237
"commands/delay/SleepCommand.h",
232238
"commands/delay/SleepCommand.mm",
@@ -293,7 +299,10 @@ executable("darwin-framework-tool") {
293299
"${root_out_dir}/macos_framework_output/Build/Intermediates.noindex/Matter.build/${output_sdk_type}/Matter.build/out/gen/include",
294300
]
295301

296-
defines = [ "CHIP_HAVE_CONFIG_H=1" ]
302+
defines = [
303+
"CHIP_HAVE_CONFIG_H=1",
304+
"CONFIG_ENABLE_HTTPS_REQUESTS",
305+
]
297306

298307
frameworks += [
299308
"CoreFoundation.framework",
@@ -317,7 +326,10 @@ executable("darwin-framework-tool") {
317326
defines += [ "DFT_ENABLE_LEAK_CHECKING=1" ]
318327
}
319328

320-
public_configs = [ ":config" ]
329+
public_configs = [
330+
":config",
331+
":openssl_config",
332+
]
321333

322334
output_dir = root_out_dir
323335
}

0 commit comments

Comments
 (0)