From 27ebca8548c3fbb8809d85a25262200f79d82448 Mon Sep 17 00:00:00 2001 From: Jonathan Sieber Date: Wed, 20 Sep 2017 19:05:16 +0200 Subject: Local Discovery through Avahi/ZeroConf module (#293) * Avahi Service Announce and Discovery * Replace all instances of error() with warning() to work around #295 * avahi: Fix IPv4/v6 support, and a few nitpicks * avahi: Advertise non-standard ports --- mk/modules.mk | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mk/modules.mk') diff --git a/mk/modules.mk b/mk/modules.mk index c5e02f0..20ff07a 100644 --- a/mk/modules.mk +++ b/mk/modules.mk @@ -81,6 +81,7 @@ USE_AVFORMAT := $(shell [ -f $(SYSROOT)/include/libavformat/avformat.h ] || \ [ -f $(SYSROOT)/local/include/libavformat/avformat.h ] || \ [ -f $(SYSROOT)/include/$(MACHINE)/libavformat/avformat.h ] || \ [ -f $(SYSROOT_ALT)/include/libavformat/avformat.h ] && echo "yes") +USE_AVAHI := $(shell pkg-config --exists avahi-client && echo "yes") USE_BV32 := $(shell [ -f $(SYSROOT)/include/bv32/bv32.h ] || \ [ -f $(SYSROOT)/local/include/bv32/bv32.h ] && echo "yes") USE_CAIRO := $(shell [ -f $(SYSROOT)/include/cairo/cairo.h ] || \ @@ -300,6 +301,9 @@ MODULES += avcodec ifneq ($(USE_AVFORMAT),) MODULES += avformat endif +ifneq ($(USE_AVAHI),) +MODULES += avahi +endif endif ifneq ($(USE_BV32),) MODULES += bv32 -- cgit v1.2.3