diff options
-rw-r--r-- | src/plugins/platforms/CMakeLists.txt | 4 | ||||
-rw-r--r-- | src/plugins/platforms/offscreen/CMakeLists.txt | 45 |
2 files changed, 49 insertions, 0 deletions
diff --git a/src/plugins/platforms/CMakeLists.txt b/src/plugins/platforms/CMakeLists.txt index 78a7cd4075..c3a3baef44 100644 --- a/src/plugins/platforms/CMakeLists.txt +++ b/src/plugins/platforms/CMakeLists.txt @@ -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() diff --git a/src/plugins/platforms/offscreen/CMakeLists.txt b/src/plugins/platforms/offscreen/CMakeLists.txt new file mode 100644 index 0000000000..2a6baeff42 --- /dev/null +++ b/src/plugins/platforms/offscreen/CMakeLists.txt @@ -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 = "-" +#) |