@@ -30,15 +30,13 @@ assert(chip_build_tools)
30
30
declare_args () {
31
31
chip_codesign = current_os == " ios"
32
32
33
- # When config_enable_yaml_tests is false, the Matter SDK options are not available.
34
- if (! config_enable_yaml_tests ) {
35
- chip_inet_config_enable_ipv4 = true
36
- if (! defined (chip_config_network_layer_ble )) {
37
- chip_config_network_layer_ble = true
38
- }
39
- if (! defined (is_clang )) {
40
- is_clang = false
41
- }
33
+ chip_inet_config_enable_ipv4 = true
34
+
35
+ if (! defined (chip_config_network_layer_ble )) {
36
+ chip_config_network_layer_ble = true
37
+ }
38
+ if (! defined (is_clang )) {
39
+ is_clang = false
42
40
}
43
41
44
42
enable_provisional_features = config_enable_yaml_tests
@@ -125,12 +123,17 @@ action("build-darwin-framework") {
125
123
output_name = " Matter.framework"
126
124
outputs = [
127
125
" ${ root_out_dir } /macos_framework_output/Build/Products/${ output_sdk_type } /${ output_name } " ,
126
+ " ${ root_out_dir } /macos_framework_output/Build/Intermediates.noindex/Matter.build/${ output_sdk_type } /Matter.build/out/gen/include" ,
128
127
" ${ root_build_dir } /darwin_framework_build.log" ,
129
128
" ${ root_out_dir } /macos_framework_output/ModuleCache.noindex/" ,
130
129
" ${ root_out_dir } /macos_framework_output/Logs" ,
131
130
" ${ root_out_dir } /macos_framework_output/Index" ,
132
131
" ${ root_out_dir } /macos_framework_output/Build" ,
133
132
]
133
+
134
+ if (sdk == " macosx" ) {
135
+ outputs += [ " ${ root_out_dir } /macos_framework_output/Build/Intermediates.noindex/Matter.build/${ output_sdk_type } /Matter.build/out/lib/libCHIP.a" ]
136
+ }
134
137
}
135
138
136
139
config (" config" ) {
@@ -150,7 +153,7 @@ config("config") {
150
153
]
151
154
152
155
defines = [
153
- " CONFIG_ENABLE_YAML_TESTS= ${ config_enable_yaml_tests } " ,
156
+ " CHIP_ADDRESS_RESOLVE_IMPL_INCLUDE_HEADER=<lib/address_resolve/AddressResolve_DefaultImpl.h> " ,
154
157
" CONFIG_USE_INTERACTIVE_MODE=${ config_use_interactive_mode } " ,
155
158
156
159
# Disable availability annotations in Matter.framework headers because we
@@ -171,6 +174,8 @@ executable("darwin-framework-tool") {
171
174
" ${ chip_root } /examples/chip-tool/commands/common/Commands.cpp" ,
172
175
" ${ chip_root } /examples/chip-tool/commands/common/Commands.h" ,
173
176
" ${ chip_root } /examples/chip-tool/commands/common/HexConversion.h" ,
177
+ " ${ chip_root } /examples/common/websocket-server/WebSocketServer.cpp" ,
178
+ " ${ chip_root } /examples/common/websocket-server/WebSocketServer.h" ,
174
179
" ${ chip_root } /zzz_generated/chip-tool/zap-generated/cluster/ComplexArgumentParser.cpp" ,
175
180
" commands/bdx/Commands.h" ,
176
181
" commands/bdx/DownloadLogCommand.mm" ,
@@ -214,17 +219,14 @@ executable("darwin-framework-tool") {
214
219
215
220
deps = [
216
221
" :build-darwin-framework" ,
222
+ " ${ chip_root } /third_party/libwebsockets" ,
217
223
jsoncpp_root ,
218
224
]
219
225
220
226
if (config_use_interactive_mode ) {
221
227
sources += [ " commands/interactive/InteractiveCommands.mm" ]
222
228
223
- deps += [
224
- " ${ chip_root } /examples/common/websocket-server" ,
225
- " ${ chip_root } /src/platform/logging:headers" ,
226
- " ${ editline_root } :editline" ,
227
- ]
229
+ deps += [ " ${ editline_root } :editline" ]
228
230
}
229
231
230
232
ldflags = [
@@ -237,63 +239,35 @@ executable("darwin-framework-tool") {
237
239
" Security.framework" ,
238
240
]
239
241
240
- # When config_enable_yaml_tests=true the Matter SDK is pulled in as a dependency because the code of the test suite
241
- # uses some helpers from the Matter SDK. As a result, the SDK is built twice. Once because of this dependency and once
242
- # when the Matter.framework is built.
243
- # It may results in different versions of the Matter SDK between the output binary and the linked Matter.framework.
244
- #
245
- # When config_enable_yaml_tests=false the Matter SDK is built once when the Matter.framework is built and the resulting
246
- # libCHIP.a library is linked statically to the output binary.
247
- if (config_enable_yaml_tests ) {
248
- deps += [
249
- " ${ chip_root } /src/app/tests/suites/commands/delay" ,
250
-
251
- # IM is needed for MTRError
252
- " ${ chip_root } /src/app/tests/suites/commands/interaction_model" ,
253
-
254
- # Log is needed by tests UserPrompt and Log
255
- " ${ chip_root } /src/app/tests/suites/commands/log" ,
256
-
257
- # System is needed by tests FactoryReset etc..
258
- " ${ chip_root } /src/app/tests/suites/commands/system" ,
259
-
260
- # pics is needed by tests
261
- " ${ chip_root } /src/app/tests/suites/pics" ,
262
- " ${ chip_root } /src/protocols/interaction_model" ,
263
- ]
264
-
265
- defines = []
266
- } else {
267
- include_dirs = [
268
- " ${ chip_root } /config/standalone/" ,
269
- " ${ chip_root } /src/" ,
270
- " ${ chip_root } /src/include/" ,
271
- " ${ chip_root } /src/protocols/" ,
272
- " ${ chip_root } /src/protocols/interaction_model" ,
273
- " ${ chip_root } /third_party/nlassert/repo/include/" ,
274
- " ${ chip_root } /third_party/nlio/repo/include/" ,
275
- " ${ chip_root } /zzz_generated/app-common/" ,
276
- " ${ root_gen_dir } /include" ,
277
- " ${ root_out_dir } /macos_framework_output/Build/Intermediates.noindex/Matter.build/${ output_sdk_type } /Matter.build/out/gen/include" ,
278
- ]
242
+ include_dirs = [
243
+ " ${ chip_root } /config/standalone/" ,
244
+ " ${ chip_root } /src/" ,
245
+ " ${ chip_root } /src/include/" ,
246
+ " ${ chip_root } /src/protocols/" ,
247
+ " ${ chip_root } /src/protocols/interaction_model" ,
248
+ " ${ chip_root } /third_party/nlassert/repo/include/" ,
249
+ " ${ chip_root } /third_party/nlio/repo/include/" ,
250
+ " ${ chip_root } /zzz_generated/app-common/" ,
251
+ " ${ root_gen_dir } /include" ,
252
+ " ${ root_out_dir } /macos_framework_output/Build/Intermediates.noindex/Matter.build/${ output_sdk_type } /Matter.build/out/gen/include" ,
253
+ ]
279
254
280
- defines = [
281
- " CHIP_HAVE_CONFIG_H=1" ,
282
- " CHIP_SYSTEM_CONFIG_USE_SOCKETS=1" ,
283
- ]
255
+ defines = [
256
+ " CHIP_HAVE_CONFIG_H=1" ,
257
+ " CHIP_SYSTEM_CONFIG_USE_SOCKETS=1" ,
258
+ ]
284
259
285
- frameworks += [
286
- " CoreFoundation.framework" ,
287
- " Foundation.framework" ,
288
- " CoreBluetooth.framework" ,
289
- " Network.framework" ,
290
- ]
260
+ frameworks += [
261
+ " CoreFoundation.framework" ,
262
+ " Foundation.framework" ,
263
+ " CoreBluetooth.framework" ,
264
+ " Network.framework" ,
265
+ ]
291
266
292
- # Other SDKs are linked statically to Matter.framework but the macosx SDK is linked dynamically but needs some symbols that are
293
- # not exposed by the dylib.
294
- if (sdk == " macosx" ) {
295
- libs = [ " ${ root_out_dir } /macos_framework_output/Build/Intermediates.noindex/Matter.build/${ output_sdk_type } /Matter.build/out/lib/libCHIP.a" ]
296
- }
267
+ # Other SDKs are linked statically to Matter.framework but the macosx SDK is linked dynamically but needs some symbols that are
268
+ # not exposed by the dylib.
269
+ if (sdk == " macosx" ) {
270
+ libs = [ " ${ root_out_dir } /macos_framework_output/Build/Intermediates.noindex/Matter.build/${ output_sdk_type } /Matter.build/out/lib/libCHIP.a" ]
297
271
}
298
272
299
273
if (enable_provisional_features ) {
0 commit comments