mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
a6e1b89724
* Fixed compile error when no grabbers are defined * Remove stupid avahi warning... * Started on the new integrated UDP listener to replace the python effect. Cloned boblight server and rename it to be UDP listener It compiles!, It starts! it seems to work as a second boblight protocol server... * moving from the exsting TCP to UDP. i can catch packets now.. need to consider ditching the connection handling * It kinda works right now. UDP packets are received, led data is sent and hyperion displays them. .... for a moment before going back to what it was doing * It works! looks like the default priority of 900 was fighting with something else that was also 900 commented out some udp packet debugging * oops, forgot to add the changes the the previous commit * resolving merge conflicts * Fixed random http port due to uninitialized _port * cleaning up compiler warning * cleaned up CMakeLists to remove warning: Note: No relevant classes found. No output generated.
59 lines
1.2 KiB
CMake
59 lines
1.2 KiB
CMake
|
|
# Define the current source locations
|
|
set(CURRENT_HEADER_DIR ${CMAKE_SOURCE_DIR}/include/bonjour)
|
|
set(CURRENT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/libsrc/bonjour)
|
|
|
|
# Group the headers that go through the MOC compiler
|
|
set(Bonjour_QT_HEADERS
|
|
${CURRENT_HEADER_DIR}/bonjourserviceregister.h
|
|
)
|
|
|
|
set(Bonjour_HEADERS
|
|
)
|
|
|
|
set(Bonjour_SOURCES
|
|
${CURRENT_SOURCE_DIR}/bonjourserviceregister.cpp
|
|
)
|
|
|
|
set(Bonjour_RESOURCES
|
|
)
|
|
|
|
qt5_wrap_cpp(Bonjour_HEADERS_MOC ${Bonjour_QT_HEADERS})
|
|
qt5_add_resources(Bonjour_RESOURCES_RCC ${Bonjour_RESOURCES} OPTIONS "-no-compress")
|
|
|
|
add_library(bonjour
|
|
${Bonjour_HEADERS}
|
|
${Bonjour_QT_HEADERS}
|
|
${Bonjour_SOURCES}
|
|
${Bonjour_RESOURCES}
|
|
${Bonjour_HEADERS_MOC}
|
|
${Bonjour_RESOURCES_RCC}
|
|
)
|
|
|
|
qt5_use_modules(bonjour Network)
|
|
|
|
target_link_libraries(bonjour
|
|
hyperion
|
|
hyperion-utils
|
|
${QT_LIBRARIES})
|
|
|
|
set(USE_SHARED_AVAHI_LIBS ${DEFAULT_USE_SHARED_AVAHI_LIBS} CACHE BOOL "use avahi libraries from system")
|
|
|
|
if (USE_SHARED_AVAHI_LIBS)
|
|
target_link_libraries(bonjour
|
|
dns_sd
|
|
avahi-client
|
|
avahi-common
|
|
avahi-core
|
|
# avahi-qt4
|
|
dbus-1)
|
|
else()
|
|
target_link_libraries(bonjour
|
|
libdns_sd.a
|
|
libavahi-client.a
|
|
libavahi-common.a
|
|
libavahi-core.a
|
|
# libavahi-qt4.a
|
|
libdbus-1.a)
|
|
endif()
|