cmake: build linuxfb platform plugin

Change-Id: I74c84ca410bdcf9c46828c5da903e241b2fa5d0d
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
This commit is contained in:
Albert Astals Cid 2019-02-11 14:03:38 +01:00
parent 8a1110f388
commit 324bf0f344
2 changed files with 48 additions and 0 deletions

View File

@ -2,6 +2,10 @@ if(QT_FEATURE_xcb)
add_subdirectory(xcb)
endif()
if(QT_FEATURE_linuxfb)
add_subdirectory(linuxfb)
endif()
if(APPLE)
add_subdirectory(cocoa)
endif(APPLE)

View File

@ -0,0 +1,44 @@
# Generated from linuxfb.pro.
#####################################################################
## qlinuxfb Plugin:
#####################################################################
add_qt_plugin(qlinuxfb
TYPE platforms
SOURCES
main.cpp
qlinuxfbintegration.cpp qlinuxfbintegration.h
qlinuxfbscreen.cpp qlinuxfbscreen.h
DEFINES
QT_NO_FOREACH
LIBRARIES
Qt::CorePrivate
Qt::GuiPrivate
Qt::ServiceSupportPrivate
Qt::EventDispatcherSupportPrivate
Qt::FontDatabaseSupportPrivate
Qt::FbSupportPrivate
# OTHER_FILES = "linuxfb.json"
# PLUGIN_CLASS_NAME = "QLinuxFbIntegrationPlugin"
# _LOADED = "qt_plugin"
)
## Scopes:
#####################################################################
extend_target(qlinuxfb CONDITION TARGET Qt::InputSupportPrivate
LIBRARIES
Qt::InputSupportPrivate
)
extend_target(qlinuxfb CONDITION TARGET Qt::KmsSupportPrivate
SOURCES
qlinuxfbdrmscreen.cpp qlinuxfbdrmscreen.h
LIBRARIES
Qt::KmsSupportPrivate
)
#
#extend_target(qlinuxfb CONDITION NOT TARGET___equals____ss_QT_DEFAULT_QPA_PLUGIN
# # PLUGIN_EXTENDS = "-"
#)