mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
implement dispmanx forwarding a a separate dispmanx wrapper
implement forwarding for amlogic grabber Former-commit-id: 8a793d24bd083f9eca07c34ec3b222f0e54b4426
This commit is contained in:
70
src/hyperion-dispmanx/CMakeLists.txt
Normal file
70
src/hyperion-dispmanx/CMakeLists.txt
Normal file
@@ -0,0 +1,70 @@
|
||||
# Configure minimum CMAKE version
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
|
||||
# Set the project name
|
||||
project(hyperion-dispmanx)
|
||||
|
||||
if(ENABLE_QT5)
|
||||
find_package(Qt5Widgets REQUIRED)
|
||||
else(ENABLE_QT5)
|
||||
# find Qt4
|
||||
find_package(Qt4 REQUIRED QtCore QtGui QtNetwork )
|
||||
endif(ENABLE_QT5)
|
||||
|
||||
# Find the BCM-package (VC control)
|
||||
#find_package(BCM REQUIRED)
|
||||
SET( BCM_INCLUDE_DIRS ${CMAKE_SOURCE_DIR}/dependencies/external/rapsi_vc )
|
||||
SET( BCM_LIBRARIES "" )
|
||||
ADD_DEFINITIONS ( -DDISPMANX_DUMMY )
|
||||
|
||||
|
||||
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_BINARY_DIR}/../../libsrc/protoserver
|
||||
${QT_INCLUDES}
|
||||
${BCM_INCLUDE_DIRS}
|
||||
${PROTOBUF_INCLUDE_DIRS}
|
||||
)
|
||||
|
||||
set(Hyperion_Dispmanx_QT_HEADERS
|
||||
DispmanxWrapper.h)
|
||||
|
||||
set(Hyperion_Dispmanx_HEADERS
|
||||
)
|
||||
|
||||
set(Hyperion_Dispmanx_SOURCES
|
||||
hyperion-dispmanx.cpp
|
||||
DispmanxWrapper.cpp
|
||||
)
|
||||
|
||||
if(ENABLE_QT5)
|
||||
QT5_WRAP_CPP(Hyperion_Dispmanx_HEADERS_MOC ${Hyperion_Dispmanx_QT_HEADERS})
|
||||
else(ENABLE_QT5)
|
||||
QT4_WRAP_CPP(Hyperion_Dispmanx_HEADERS_MOC ${Hyperion_Dispmanx_QT_HEADERS})
|
||||
endif(ENABLE_QT5)
|
||||
|
||||
add_executable( ${PROJECT_NAME}
|
||||
${Hyperion_Dispmanx_HEADERS}
|
||||
${Hyperion_Dispmanx_SOURCES}
|
||||
${Hyperion_Dispmanx_HEADERS_MOC}
|
||||
)
|
||||
|
||||
target_link_libraries( ${PROJECT_NAME}
|
||||
getoptPlusPlus
|
||||
blackborder
|
||||
hyperion-utils
|
||||
protoserver
|
||||
dispmanx-grabber
|
||||
${Dispmanx_LIBRARIES}
|
||||
pthread
|
||||
)
|
||||
|
||||
if(ENABLE_QT5)
|
||||
qt5_use_modules(hyperion-dispmanx Widgets Core Gui Network)
|
||||
else(ENABLE_QT5)
|
||||
qt4_use_modules(hyperion-dispmanx
|
||||
Core
|
||||
Gui
|
||||
Network
|
||||
)
|
||||
endif(ENABLE_QT5)
|
||||
Reference in New Issue
Block a user