mirror of
https://agent.ghink.cloud/wb2osz/direwolf
synced 2025-04-07 13:18:29 +00:00
This allows client applications to locate the IP addresses and the port of the KISS TCP service, allowing the end user to just select a Dire Wolf from a list instead of trying to guess its dynamic IP address and typing it in manually. This is especially convenient on mobile devices. On Linux, the standard Avahi daemon is used via dbus and the avahi-client library. Building with it requires installing the development header package; README.md is updated accordingly. On Mac, the MacOS dnssd API is used: https://developer.apple.com/documentation/dnssd?language=objc I don't have Windows, but more recent Windows 10 builds apparently have a working DNS-SD mDNS implementation that can be used on 64-bit builds.
20 lines
615 B
CMake
20 lines
615 B
CMake
|
|
find_library(AVAHI_COMMON_LIBRARY NAMES avahi-common PATHS ${PC_AVAHI_CLIENT_LIBRARY_DIRS})
|
|
if(AVAHI_COMMON_LIBRARY)
|
|
set(AVAHI_COMMON_FOUND TRUE)
|
|
endif()
|
|
|
|
find_library(AVAHI_CLIENT_LIBRARY NAMES avahi-client PATHS ${PC_AVAHI_CLIENT_LIBRARY_DIRS})
|
|
if(AVAHI_CLIENT_LIBRARY)
|
|
set(AVAHI_CLIENT_FOUND TRUE)
|
|
endif()
|
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(AVAHI DEFAULT_MSG AVAHI_COMMON_FOUND AVAHI_CLIENT_FOUND)
|
|
|
|
if (AVAHI_FOUND)
|
|
set(AVAHI_INCLUDE_DIRS ${AVAHI_UI_INCLUDE_DIR})
|
|
set(AVAHI_LIBRARIES ${AVAHI_COMMON_LIBRARY} ${AVAHI_CLIENT_LIBRARY})
|
|
endif()
|
|
|
|
mark_as_advanced(AVAHI_INCLUDE_DIRS AVAHI_LIBRARIES)
|