so that we don't have to inject privates from the outside.
after recent cleanups, only qtcore and qtopengl privates are necessary,
and that only in the compositor api.
QT += declarative
QT += opengl
-!isEmpty(QT.core.MAJOR_VERSION):greaterThan(QT.core.MAJOR_VERSION, 4) {
- QT += core-private gui-private declarative-private opengl-private
-}
-
include (../../src/qt-compositor/qt-compositor.pri)
# Input
# comment out the following to not use pkg-config in the pri files
CONFIG += use_pkgconfig
-!isEmpty(QT.core.MAJOR_VERSION):greaterThan(QT.core.MAJOR_VERSION, 4) {
-QT += core-private gui-private
-}
-
DESTDIR=$$PWD/../../bin/
include (../../src/qt-compositor/qt-compositor.pri)
# comment out the following to not use pkg-config in the pri files
CONFIG += use_pkgconfig
-!isEmpty(QT.core.MAJOR_VERSION):greaterThan(QT.core.MAJOR_VERSION, 4) {
-QT += core-private gui-private
-}
-
DESTDIR=$$PWD/../../bin/
include (../../src/qt-compositor/qt-compositor.pri)
DEFINES += QT_COMPOSITOR_DECLARATIVE
}
+
+!isEmpty(QT.core.MAJOR_VERSION):greaterThan(QT.core.MAJOR_VERSION, 4) {
+ QT += core-private
+ contains(QT, opengl):QT += opengl-private gui-private
+}
#include "waylandsurface.h"
#include <QtDeclarative/QSGEngine>
-//#include <private/qsgitem_p.h>
#include <QtGui/QKeyEvent>