Skip to content

Commit

Permalink
Make WiFi commissioning driver source include conditional on chip_ena…
Browse files Browse the repository at this point in the history
…ble_wifi

Linux platform is unconditionally including the WiFI commissioning
driver source files.  But this only makes sense if wifi is enabled.

Configure includes to be conditional on this.
  • Loading branch information
msandstedt committed Jul 6, 2022
1 parent 848f2b0 commit 2e026cc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/platform/Linux/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ static_library("Linux") {
"Logging.cpp",
"NetworkCommissioningDriver.h",
"NetworkCommissioningEthernetDriver.cpp",
"NetworkCommissioningWiFiDriver.cpp",
"PlatformManagerImpl.cpp",
"PlatformManagerImpl.h",
"PosixConfig.cpp",
Expand Down Expand Up @@ -140,7 +139,10 @@ static_library("Linux") {
}

if (chip_enable_wifi) {
sources += [ "GlibTypeDeleter.h" ]
sources += [
"GlibTypeDeleter.h",
"NetworkCommissioningWiFiDriver.cpp",
]

public_deps += [ "dbus/wpa" ]
}
Expand Down

0 comments on commit 2e026cc

Please sign in to comment.