zephyr/subsys/net/lib/dns/CMakeLists.txt
Jukka Rissanen 1eb4a709e8 net: dns: Allow using resolver and responder at the same time
Allow mDNS resolver and responder to to be used at the same
time so that both can use the port 5353. This requires
a DNS traffic dispatcher which affects also the normal DNS
resolver.

Fixes #72553

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
2024-06-03 09:49:01 +02:00

22 lines
668 B
CMake

# SPDX-License-Identifier: Apache-2.0
zephyr_include_directories(.)
zephyr_library()
zephyr_library_sources(dns_pack.c)
zephyr_library_sources_ifdef(CONFIG_DNS_SOCKET_DISPATCHER dispatcher.c)
zephyr_library_sources_ifdef(CONFIG_DNS_RESOLVER resolve.c)
zephyr_library_sources_ifdef(CONFIG_DNS_SD dns_sd.c)
zephyr_library_sources_ifdef(CONFIG_DNS_RESOLVER_CACHE dns_cache.c)
if(CONFIG_MDNS_RESPONDER)
zephyr_library_sources(mdns_responder.c)
zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/net/ip)
endif()
if(CONFIG_LLMNR_RESPONDER)
zephyr_library_sources(llmnr_responder.c)
zephyr_library_include_directories(${ZEPHYR_BASE}/subsys/net/ip)
endif()