mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
3aa2573b88
* remove obsolete kodi code for grabbers * destroy grabbers and other stuff on hyperiond restart via webui
66 lines
1.6 KiB
CMake
66 lines
1.6 KiB
CMake
|
|
SET(Hyperiond_QT_HEADERS
|
|
hyperiond.h
|
|
)
|
|
|
|
QT5_WRAP_CPP(Hyperiond_HEADERS_MOC ${Hyperiond_QT_HEADERS})
|
|
|
|
add_executable(hyperiond
|
|
${Hyperiond_QT_HEADERS}
|
|
${Hyperiond_HEADERS_MOC}
|
|
configMigratorBase.cpp
|
|
configMigratorBase.h
|
|
configMigrator.cpp
|
|
configMigrator.h
|
|
hyperiond.cpp
|
|
main.cpp
|
|
)
|
|
|
|
target_link_libraries(hyperiond
|
|
commandline
|
|
hyperion
|
|
kodivideochecker
|
|
effectengine
|
|
jsonserver
|
|
boblightserver
|
|
udplistener
|
|
protoserver
|
|
webconfig
|
|
bonjour
|
|
)
|
|
|
|
if (ENABLE_DISPMANX)
|
|
target_link_libraries(hyperiond dispmanx-grabber)
|
|
endif ()
|
|
|
|
if (ENABLE_FB)
|
|
target_link_libraries(hyperiond framebuffer-grabber)
|
|
endif ()
|
|
|
|
if (ENABLE_OSX)
|
|
target_link_libraries(hyperiond osx-grabber)
|
|
endif ()
|
|
|
|
if (ENABLE_V4L2)
|
|
target_link_libraries(hyperiond v4l2-grabber)
|
|
endif ()
|
|
|
|
if (ENABLE_AMLOGIC)
|
|
target_link_libraries(hyperiond amlogic-grabber)
|
|
endif ()
|
|
|
|
if (ENABLE_X11)
|
|
target_link_libraries(hyperiond x11-grabber )
|
|
endif ()
|
|
|
|
install ( TARGETS hyperiond DESTINATION "share/hyperion/bin/" COMPONENT "${PLATFORM}" )
|
|
install ( DIRECTORY ${CMAKE_SOURCE_DIR}/bin/service DESTINATION "share/hyperion/" COMPONENT "${PLATFORM}" )
|
|
install ( FILES ${CMAKE_SOURCE_DIR}/effects/readme.txt DESTINATION "share/hyperion/effects" COMPONENT "${PLATFORM}" )
|
|
|
|
if(CMAKE_HOST_UNIX)
|
|
install(CODE "EXECUTE_PROCESS(COMMAND ln -sf \"../share/hyperion/bin/hyperiond\" \"${CMAKE_BINARY_DIR}/symlink_hyperiond\" )" COMPONENT "${PLATFORM}" )
|
|
install(FILES ${CMAKE_BINARY_DIR}/symlink_hyperiond DESTINATION "bin" RENAME hyperiond COMPONENT "${PLATFORM}" )
|
|
install(CODE "FILE (REMOVE ${CMAKE_BINARY_DIR}/symlink_hyperiond )" COMPONENT "${PLATFORM}" )
|
|
endif(CMAKE_HOST_UNIX)
|
|
|