cmake: build the offscreen platform plugin
Change-Id: I6ccd430a2779fb889329cd411221c29b2601acfb Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>bb10
parent
7edcdd7ac0
commit
beace29a57
|
|
@ -2,6 +2,10 @@ if (NOT ANDROID)
|
|||
add_subdirectory(minimal)
|
||||
endif()
|
||||
|
||||
if (NOT ANDROID AND QT_FEATURE_freetype)
|
||||
add_subdirectory(offscreen)
|
||||
endif()
|
||||
|
||||
if(QT_FEATURE_xcb)
|
||||
add_subdirectory(xcb)
|
||||
endif()
|
||||
|
|
|
|||
|
|
@ -0,0 +1,45 @@
|
|||
# Generated from offscreen.pro.
|
||||
|
||||
find_package(X11)
|
||||
|
||||
#####################################################################
|
||||
## qoffscreen Plugin:
|
||||
#####################################################################
|
||||
|
||||
add_qt_plugin(qoffscreen
|
||||
TYPE platforms
|
||||
SOURCES
|
||||
main.cpp
|
||||
qoffscreencommon.cpp qoffscreencommon.h
|
||||
qoffscreenintegration.cpp qoffscreenintegration.h
|
||||
qoffscreenwindow.cpp qoffscreenwindow.h
|
||||
DEFINES
|
||||
QT_NO_FOREACH
|
||||
LIBRARIES
|
||||
Qt::CorePrivate
|
||||
Qt::GuiPrivate
|
||||
Qt::EventDispatcherSupportPrivate
|
||||
Qt::FontDatabaseSupportPrivate
|
||||
# OTHER_FILES = "offscreen.json"
|
||||
# PLUGIN_CLASS_NAME = "QOffscreenIntegrationPlugin"
|
||||
# _LOADED = "qt_plugin"
|
||||
)
|
||||
|
||||
## Scopes:
|
||||
#####################################################################
|
||||
|
||||
extend_target(qoffscreen CONDITION QT_FEATURE_opengl AND QT_FEATURE_xlib AND NOT QT_FEATURE_opengles2
|
||||
SOURCES
|
||||
qoffscreenintegration_x11.cpp qoffscreenintegration_x11.h
|
||||
LIBRARIES
|
||||
Qt::GlxSupportPrivate
|
||||
)
|
||||
|
||||
extend_target(qoffscreen CONDITION QT_FEATURE_opengl AND QT_FEATURE_opengles2 AND QT_FEATURE_xlib
|
||||
SOURCES
|
||||
qoffscreenintegration_dummy.cpp
|
||||
)
|
||||
#
|
||||
#extend_target(qoffscreen CONDITION NOT TARGET___equals____ss_QT_DEFAULT_QPA_PLUGIN
|
||||
# # PLUGIN_EXTENDS = "-"
|
||||
#)
|
||||
Loading…
Reference in New Issue