Skip to content

Commit

Permalink
Allow building CHIP without lwip checked out
Browse files Browse the repository at this point in the history
This used to work prior to project-chip#2325, which added an unconditional
dependency on lwip even if we're using sockets. Make it conditional.
  • Loading branch information
mspang committed Sep 16, 2020
1 parent 764d241 commit 230f012
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/inet/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import("//build_overrides/nlio.gni")
import("${chip_root}/gn/chip/buildconfig_header.gni")
import("${chip_root}/gn/chip/tests.gni")
import("${chip_root}/src/platform/device.gni")
import("${chip_root}/src/system/system.gni")
import("inet.gni")

declare_args() {
Expand Down Expand Up @@ -97,11 +98,14 @@ static_library("inet") {
public_deps = [
":inet_config_header",
"${chip_root}/src/lib/support",
"${chip_root}/src/lwip",
"${chip_root}/src/system",
"${nlio_root}:nlio",
]

if (chip_system_config_use_lwip) {
public_deps += [ "${chip_root}/src/lwip" ]
}

if (chip_inet_config_enable_raw_endpoint) {
sources += [
"RawEndPoint.cpp",
Expand Down

0 comments on commit 230f012

Please sign in to comment.