@@ -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
}
@@ -88,11 +89,6 @@ source_set("headers") {
88
89
public = [ " LogV.h" ]
89
90
}
90
91
91
- # We need to reference the output file of ":stdio" at build time,
92
- # but get_target_outputs() does not work for binary targets. As a
93
- # workaround, define a reasonable path and make the target use it.
94
- stdio_archive = " $root_out_dir /liblogging-stdio.a"
95
-
96
92
source_set (" stdio" ) {
97
93
sources = [ " impl/stdio/Logging.cpp" ]
98
94
@@ -104,10 +100,4 @@ source_set("stdio") {
104
100
" ${ chip_root } /src/platform:platform_config_header" ,
105
101
" ${ chip_root } /src/platform/logging:headers" ,
106
102
]
107
-
108
- # Ensure we end up with the expected output file name
109
- output_dir = get_path_info (stdio_archive , " dir" )
110
- output_name = get_path_info (stdio_archive , " name" )
111
- output_extension = get_path_info (stdio_archive , " extension" )
112
- output_prefix_override = true
113
103
}
0 commit comments