cmake: build the minimalegl platform plugin

Change-Id: I5c509efa30257be6ccc3455dd40bef3882b7e1da
Reviewed-by: Liang Qi <liang.qi@qt.io>
This commit is contained in:
Albert Astals Cid 2019-02-11 14:59:27 +01:00
parent 7830b72fd5
commit 4ac0afb8ba
2 changed files with 42 additions and 0 deletions

View File

@ -10,6 +10,10 @@ if(QT_FEATURE_xcb)
add_subdirectory(xcb)
endif()
if(QT_FEATURE_eglfs)
add_subdirectory(minimalegl)
endif()
if(QT_FEATURE_linuxfb)
add_subdirectory(linuxfb)
endif()

View File

@ -0,0 +1,38 @@
# Generated from minimalegl.pro.
#####################################################################
## qminimalegl Plugin:
#####################################################################
add_qt_plugin(qminimalegl
TYPE platforms
SOURCES
main.cpp
qminimaleglintegration.cpp qminimaleglintegration.h
qminimaleglscreen.cpp qminimaleglscreen.h
qminimaleglwindow.cpp qminimaleglwindow.h
DEFINES
QT_EGL_NO_X11
LIBRARIES
Qt::CorePrivate
Qt::GuiPrivate
Qt::EventDispatcherSupportPrivate
Qt::FontDatabaseSupportPrivate
Qt::EglSupportPrivate
# CONFIG = "egl"
# OTHER_FILES = "minimalegl.json"
# PLUGIN_CLASS_NAME = "QMinimalEglIntegrationPlugin"
# _LOADED = "qt_plugin"
)
## Scopes:
#####################################################################
extend_target(qminimalegl CONDITION QT_FEATURE_opengl
SOURCES
qminimaleglbackingstore.cpp qminimaleglbackingstore.h
)
#
#extend_target(qminimalegl CONDITION NOT TARGET___equals____ss_QT_DEFAULT_QPA_PLUGIN
# # PLUGIN_EXTENDS = "-"
#)