Skip to content

Commit 3f8424a

Browse files
committed
Fix darwin
1 parent 2911449 commit 3f8424a

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

src/platform/Darwin/BUILD.gn

+1
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,7 @@ static_library("logging") {
151151
sources = [
152152
"Logging.h",
153153
"Logging.mm",
154+
"LoggingImpl.cpp",
154155
]
155156

156157
deps = [

src/platform/logging/BUILD.gn

+3-8
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import("${chip_root}/src/lib/core/core.gni")
88
import("${chip_root}/src/lib/shell/shell_device.gni")
99
import("${chip_root}/src/platform/device.gni")
1010

11-
static_library("default") {
11+
source_set("default") {
1212
if (!chip_use_external_logging) {
1313
deps = []
1414

@@ -62,12 +62,7 @@ static_library("default") {
6262
} else if (chip_device_platform == "qpg") {
6363
deps += [ "${chip_root}/src/platform/qpg:logging" ]
6464
} 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" ]
7166
} else if (chip_device_platform == "mw320") {
7267
deps += [ "${chip_root}/src/platform/nxp/mw320:logging" ]
7368
} else if (chip_device_platform == "k32w0" ||
@@ -113,7 +108,7 @@ if (current_os == "android") {
113108
# workaround, define a reasonable path and make the target use it.
114109
stdio_archive = "$root_out_dir/liblogging-stdio.a"
115110

116-
static_library("stdio") {
111+
source_set("stdio") {
117112
if (chip_device_platform == "darwin") {
118113
sources = [ "impl/stdio/darwin/Logging.cpp" ]
119114
} else {

0 commit comments

Comments
 (0)