@@ -8,7 +8,7 @@ import("${chip_root}/src/lib/core/core.gni")
8
8
import (" ${ chip_root } /src/lib/shell/shell_device.gni" )
9
9
import (" ${ chip_root } /src/platform/device.gni" )
10
10
11
- static_library (" default" ) {
11
+ source_set (" default" ) {
12
12
if (! chip_use_external_logging ) {
13
13
deps = []
14
14
@@ -62,12 +62,7 @@ static_library("default") {
62
62
} else if (chip_device_platform == " qpg" ) {
63
63
deps += [ " ${ chip_root } /src/platform/qpg:logging" ]
64
64
} else if (chip_device_platform == " darwin" ) {
65
- sources = [ " ${ chip_root } /src/platform/Darwin/LoggingImpl.cpp" ]
66
- deps += [
67
- " :headers" ,
68
- " ${ chip_root } /src/platform:platform_base" ,
69
- " ${ chip_root } /src/platform/Darwin:logging" ,
70
- ]
65
+ deps += [ " ${ chip_root } /src/platform/Darwin:logging" ]
71
66
} else if (chip_device_platform == " mw320" ) {
72
67
deps += [ " ${ chip_root } /src/platform/nxp/mw320:logging" ]
73
68
} else if (chip_device_platform == " k32w0" ||
@@ -113,7 +108,7 @@ if (current_os == "android") {
113
108
# workaround, define a reasonable path and make the target use it.
114
109
stdio_archive = " $root_out_dir /liblogging-stdio.a"
115
110
116
- static_library (" stdio" ) {
111
+ source_set (" stdio" ) {
117
112
if (chip_device_platform == " darwin" ) {
118
113
sources = [ " impl/stdio/darwin/Logging.cpp" ]
119
114
} else {
0 commit comments