mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
commit
1f6e12ae92
31
dependencies/CMakeLists.txt
vendored
31
dependencies/CMakeLists.txt
vendored
@ -12,7 +12,11 @@ endif()
|
||||
set(USE_SYSTEM_FLATBUFFERS_LIBS ${DEFAULT_USE_SYSTEM_FLATBUFFERS_LIBS} CACHE BOOL "use flatbuffers library from system")
|
||||
|
||||
if (USE_SYSTEM_FLATBUFFERS_LIBS)
|
||||
find_package(flatbuffers REQUIRED)
|
||||
if (ENABLE_AMLOGIC)
|
||||
find_program(FLATBUFFERS_FLATC_EXECUTABLE NAMES flatc REQUIRED)
|
||||
else ()
|
||||
find_package(flatbuffers REQUIRED)
|
||||
endif()
|
||||
include_directories(${FLATBUFFERS_INCLUDE_DIRS})
|
||||
else ()
|
||||
set(BUILD_SHARED_LIBS OFF CACHE BOOL "Build shared flatbuffers library")
|
||||
@ -41,12 +45,21 @@ message(STATUS "Using flatbuffers compiler: " ${FLATBUFFERS_FLATC_EXECUTABLE})
|
||||
|
||||
|
||||
function(compile_flattbuffer_schema SRC_FBS OUTPUT_DIR)
|
||||
string(REGEX REPLACE "\\.fbs$" "_generated.h" GEN_HEADER ${SRC_FBS})
|
||||
add_custom_command(
|
||||
OUTPUT ${GEN_HEADER}
|
||||
COMMAND "${FLATBUFFERS_FLATC_EXECUTABLE}" -c --no-includes --gen-mutable
|
||||
--gen-object-api
|
||||
-o "${OUTPUT_DIR}"
|
||||
"${SRC_FBS}"
|
||||
DEPENDS flatc)
|
||||
string(REGEX REPLACE "\\.fbs$" "_generated.h" GEN_HEADER ${SRC_FBS})
|
||||
if (ENABLE_AMLOGIC)
|
||||
add_custom_command(
|
||||
OUTPUT ${GEN_HEADER}
|
||||
COMMAND "${FLATBUFFERS_FLATC_EXECUTABLE}" -c --no-includes --gen-mutable
|
||||
--gen-object-api
|
||||
-o "${OUTPUT_DIR}"
|
||||
"${SRC_FBS}")
|
||||
else()
|
||||
add_custom_command(
|
||||
OUTPUT ${GEN_HEADER}
|
||||
COMMAND "${FLATBUFFERS_FLATC_EXECUTABLE}" -c --no-includes --gen-mutable
|
||||
--gen-object-api
|
||||
-o "${OUTPUT_DIR}"
|
||||
"${SRC_FBS}"
|
||||
DEPENDS flatc)
|
||||
endif()
|
||||
endfunction()
|
||||
|
@ -30,7 +30,11 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#define BONJOURSERVICEBROWSER_H
|
||||
|
||||
#include <QtCore/QObject>
|
||||
#ifndef PLATFORM_AMLOGIC
|
||||
#include <dns_sd.h>
|
||||
#else
|
||||
#include <avahi-compat-libdns_sd/dns_sd.h>
|
||||
#endif
|
||||
#include "bonjour/bonjourrecord.h"
|
||||
|
||||
|
||||
|
@ -34,7 +34,11 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#include "bonjourrecord.h"
|
||||
class QSocketNotifier;
|
||||
|
||||
#ifndef PLATFORM_AMLOGIC
|
||||
#include <dns_sd.h>
|
||||
#else
|
||||
#include <avahi-compat-libdns_sd/dns_sd.h>
|
||||
#endif
|
||||
|
||||
class BonjourServiceRegister : public QObject
|
||||
{
|
||||
|
@ -31,9 +31,11 @@ ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
#include <QtCore/QObject>
|
||||
|
||||
|
||||
#ifndef PLATFORM_AMLOGIC
|
||||
#include <dns_sd.h>
|
||||
|
||||
#else
|
||||
#include <avahi-compat-libdns_sd/dns_sd.h>
|
||||
#endif
|
||||
class QSocketNotifier;
|
||||
class QHostInfo;
|
||||
class BonjourRecord;
|
||||
|
@ -35,6 +35,12 @@ target_link_libraries(${PROJECT_NAME}
|
||||
Qt5::Network
|
||||
)
|
||||
|
||||
if (ENABLE_AMLOGIC)
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
pcre16 dl z
|
||||
)
|
||||
endif()
|
||||
|
||||
install ( TARGETS ${PROJECT_NAME} DESTINATION "share/hyperion/bin/" COMPONENT "${PLATFORM}" )
|
||||
|
||||
if(CMAKE_HOST_UNIX)
|
||||
|
@ -34,6 +34,12 @@ target_link_libraries( ${PROJECT_NAME}
|
||||
Qt5::Network
|
||||
)
|
||||
|
||||
if (ENABLE_AMLOGIC)
|
||||
target_link_libraries( ${PROJECT_NAME}
|
||||
pcre16 dl z
|
||||
)
|
||||
endif()
|
||||
|
||||
install ( TARGETS ${PROJECT_NAME} DESTINATION "share/hyperion/bin/" COMPONENT "${PLATFORM}" )
|
||||
|
||||
if(CMAKE_HOST_UNIX)
|
||||
|
@ -29,6 +29,12 @@ target_link_libraries(${PROJECT_NAME}
|
||||
Qt5::Core
|
||||
Qt5::Network)
|
||||
|
||||
if (ENABLE_AMLOGIC)
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
pcre16 dl z
|
||||
)
|
||||
endif()
|
||||
|
||||
install ( TARGETS ${PROJECT_NAME} DESTINATION "share/hyperion/bin/" COMPONENT "${PLATFORM}" )
|
||||
|
||||
if(CMAKE_HOST_UNIX)
|
||||
|
@ -34,6 +34,12 @@ target_link_libraries(${PROJECT_NAME}
|
||||
Qt5::Network
|
||||
)
|
||||
|
||||
if (ENABLE_AMLOGIC)
|
||||
target_link_libraries(${PROJECT_NAME}
|
||||
pcre16 dl z
|
||||
)
|
||||
endif()
|
||||
|
||||
install ( TARGETS ${PROJECT_NAME} DESTINATION "share/hyperion/bin/" COMPONENT "${PLATFORM}" )
|
||||
|
||||
if(CMAKE_HOST_UNIX)
|
||||
|
@ -24,6 +24,13 @@ target_link_libraries(hyperiond
|
||||
${PYTHON_LIBRARIES}
|
||||
)
|
||||
|
||||
if (ENABLE_AMLOGIC)
|
||||
target_link_libraries(hyperiond
|
||||
Qt5::Core
|
||||
pcre16 dl z
|
||||
)
|
||||
endif()
|
||||
|
||||
if (ENABLE_DISPMANX)
|
||||
IF ( "${PLATFORM}" MATCHES rpi)
|
||||
find_package(BCM REQUIRED)
|
||||
|
Loading…
Reference in New Issue
Block a user