Skip to content

Commit

Permalink
Only add avahi as build dependency when platform mDNS is selected (#1…
Browse files Browse the repository at this point in the history
…8899)

* Only add avahi as build dependency when platform mDNS is selected

* Remove duplicate global avahi check for linux platform
  • Loading branch information
agners authored and pull[bot] committed Jan 19, 2024
1 parent 6bf497f commit df22cb0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
6 changes: 0 additions & 6 deletions src/platform/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,6 @@ if (chip_enable_openthread) {
}
}

if (chip_device_platform == "linux" && chip_mdns != "none") {
pkg_config("avahi_client_config") {
packages = [ "avahi-client" ]
}
}

if (chip_device_platform != "none" && chip_device_platform != "external") {
declare_args() {
# Extra header to include in CHIPDeviceConfig.h for project.
Expand Down
4 changes: 2 additions & 2 deletions src/platform/Linux/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if (chip_enable_openthread) {
import("//build_overrides/ot_br_posix.gni")
}

if (chip_mdns != "none") {
if (chip_mdns == "platform") {
pkg_config("avahi_client_config") {
packages = [ "avahi-client" ]
}
Expand Down Expand Up @@ -92,7 +92,7 @@ static_library("Linux") {

public_configs = []

if (chip_mdns != "none") {
if (chip_mdns == "platform") {
sources += [
"DnssdImpl.cpp",
"DnssdImpl.h",
Expand Down
4 changes: 2 additions & 2 deletions src/platform/webos/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ if (chip_enable_openthread) {
import("//build_overrides/ot_br_posix.gni")
}

if (chip_mdns != "none") {
if (chip_mdns == "platform") {
pkg_config("avahi_client_config") {
packages = [ "avahi-client" ]
}
Expand Down Expand Up @@ -111,7 +111,7 @@ static_library("webos") {

public_configs = []

if (chip_mdns != "none") {
if (chip_mdns == "platform") {
sources += [
"DnssdImpl.cpp",
"DnssdImpl.h",
Expand Down

0 comments on commit df22cb0

Please sign in to comment.