1TARGET = qoffscreen
2
3QT += \
4    core-private gui-private \
5    eventdispatcher_support-private fontdatabase_support-private
6
7DEFINES += QT_NO_FOREACH
8
9SOURCES =   main.cpp \
10            qoffscreenintegration.cpp \
11            qoffscreenwindow.cpp \
12            qoffscreencommon.cpp
13
14HEADERS =   qoffscreenintegration.h \
15            qoffscreenwindow.h \
16            qoffscreencommon.h
17
18OTHER_FILES += offscreen.json
19
20qtConfig(xlib):qtConfig(opengl):!qtConfig(opengles2) {
21    SOURCES += qoffscreenintegration_x11.cpp
22    HEADERS += qoffscreenintegration_x11.h
23    QT += glx_support-private
24}
25
26PLUGIN_TYPE = platforms
27PLUGIN_CLASS_NAME = QOffscreenIntegrationPlugin
28!equals(TARGET, $$QT_DEFAULT_QPA_PLUGIN): PLUGIN_EXTENDS = -
29load(qt_plugin)
30