summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/qnx/qnx.pro
diff options
context:
space:
mode:
authorStephen Kelly <stephen.kelly.qnx@kdab.com>2012-04-18 15:07:23 +0200
committerQt by Nokia <qt-info@nokia.com>2012-04-23 17:04:04 +0200
commitd21f8c157a0726b6f365866d023bab9525f93f4d (patch)
treef1a1bed12d52fe6d7e132e6d018b516938be9e4e /src/plugins/platforms/qnx/qnx.pro
parent61c433785eb918d81b927f17bcad4687f2269afe (diff)
Build the QNX plugin with -no-opengl enabled.
Change-Id: I776a3eb0d7ada4399b8c191bbfa1e3ed9236b20e Reviewed-by: Andreas Holzammer <andreas.holzammer@kdab.com> Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Diffstat (limited to 'src/plugins/platforms/qnx/qnx.pro')
-rw-r--r--src/plugins/platforms/qnx/qnx.pro26
1 files changed, 20 insertions, 6 deletions
diff --git a/src/plugins/platforms/qnx/qnx.pro b/src/plugins/platforms/qnx/qnx.pro
index 04e3b43697..940c4639db 100644
--- a/src/plugins/platforms/qnx/qnx.pro
+++ b/src/plugins/platforms/qnx/qnx.pro
@@ -2,7 +2,11 @@ TARGET = qnx
include(../../qpluginbase.pri)
QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/platforms
-QT += opengl opengl-private platformsupport platformsupport-private widgets-private
+QT += platformsupport platformsupport-private widgets-private
+
+contains(QT_CONFIG, opengles2) {
+ QT += opengl opengl-private
+}
# Uncomment this to build with support for IMF once it becomes available in the BBNDK
#CONFIG += qqnx_imf
@@ -28,8 +32,6 @@ QT += opengl opengl-private platformsupport platformsupport-private widgets-priv
SOURCES = main.cpp \
qqnxbuffer.cpp \
qqnxeventthread.cpp \
- qqnxglcontext.cpp \
- qqnxglbackingstore.cpp \
qqnxintegration.cpp \
qqnxscreen.cpp \
qqnxwindow.cpp \
@@ -46,13 +48,16 @@ CONFIG(blackberry) {
qqnxabstractvirtualkeyboard.cpp
}
+contains(QT_CONFIG, opengles2) {
+ SOURCES += qqnxglcontext.cpp \
+ qqnxglbackingstore.cpp
+}
+
HEADERS = main.h \
qqnxbuffer.h \
qqnxeventthread.h \
qqnxkeytranslator.h \
qqnxintegration.h \
- qqnxglcontext.h \
- qqnxglbackingstore.h \
qqnxscreen.h \
qqnxwindow.h \
qqnxrasterbackingstore.h \
@@ -68,6 +73,11 @@ CONFIG(blackberry) {
qqnxabstractvirtualkeyboard.h
}
+contains(QT_CONFIG, opengles2) {
+ HEADERS += qqnxglcontext.h \
+ qqnxglbackingstore.h
+}
+
CONFIG(blackberry) {
SOURCES += qqnxservices.cpp
@@ -87,7 +97,11 @@ OTHER_FILES += qnx.json
QMAKE_CXXFLAGS += -I./private
-LIBS += -lscreen -lEGL
+LIBS += -lscreen
+
+contains(QT_CONFIG, opengles2) {
+ LIBS += -lEGL
+}
CONFIG(blackberry) {
LIBS += -lbps -lpps -lclipboard