File tree 2 files changed +7
-8
lines changed
2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -301,11 +301,9 @@ static_library("support") {
301
301
" ${ chip_root } /src/inet:inet_config_header" ,
302
302
]
303
303
304
- # Android has no 'platform' that provides logging
305
- if (current_os == " android" ) {
306
- public_deps += [ " ${ chip_root } /src/platform/android:logging" ]
307
- }
308
-
304
+ # Platforms that utilize CHIP_SYSTEM_CONFIG_PLATFORM_LOG need to
305
+ # be pulled in here as public_deps since they hook into logging at
306
+ # the macro level rather than just providing a LogV implementation.
309
307
if (current_os == " mac" || current_os == " ios" ) {
310
308
public_deps += [ " ${ chip_root } /src/platform/Darwin:logging" ]
311
309
}
Original file line number Diff line number Diff line change @@ -76,10 +76,11 @@ source_set("default") {
76
76
deps += [ " :stdio" ]
77
77
} else if (chip_device_platform == " nuttx" ) {
78
78
deps += [ " ${ chip_root } /src/platform/NuttX:logging" ]
79
+ } else if (chip_device_platform == " android" ) {
80
+ deps += [ " ${ chip_root } /src/platform/android:logging" ]
79
81
} else {
80
- assert (
81
- chip_device_platform == " fake" || chip_device_platform == " android" ||
82
- chip_device_platform == " external" || chip_device_platform == " none" )
82
+ assert (chip_device_platform == " fake" ||
83
+ chip_device_platform == " external" || chip_device_platform == " none" )
83
84
}
84
85
}
85
86
}
You can’t perform that action at this time.
0 commit comments