Skip to content

Commit

Permalink
[chip-tool][darwin-framework-tool] Add libs to the declare_args secti…
Browse files Browse the repository at this point in the history
…on of BUILD.gn
  • Loading branch information
vivien-apple committed Dec 9, 2024
1 parent af8d173 commit 2148272
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions examples/chip-tool/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ if (config_use_interactive_mode) {

assert(chip_build_tools)

declare_args() {
libs = []
}

config("config") {
include_dirs = [
".",
Expand Down
4 changes: 3 additions & 1 deletion examples/darwin-framework-tool/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ declare_args() {

# Use Network.framework instead of POSIX sockets
use_network_framework = false

libs = []
}

sdk = "macosx"
Expand Down Expand Up @@ -299,7 +301,7 @@ executable("darwin-framework-tool") {
# Other SDKs are linked statically to Matter.framework but the macosx SDK is linked dynamically but needs some symbols that are
# not exposed by the dylib.
if (sdk == "macosx" || sdk_root_parts[0] == "macosx") {
libs = [ "${root_out_dir}/macos_framework_output/Build/Intermediates.noindex/Matter.build/${output_sdk_type}/Matter.build/out/lib/libCHIP.a" ]
libs += [ "${root_out_dir}/macos_framework_output/Build/Intermediates.noindex/Matter.build/${output_sdk_type}/Matter.build/out/lib/libCHIP.a" ]
}

if (enable_provisional_features) {
Expand Down

0 comments on commit 2148272

Please sign in to comment.