summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/windows/windows.pro
diff options
context:
space:
mode:
authorBjoern Breitmeyer <bjoern.breitmeyer@kdab.com>2012-05-10 14:43:26 +0200
committerQt by Nokia <qt-info@nokia.com>2012-05-10 22:56:25 +0200
commit9b9895de8da08776e586f20807d4698e5d9e5680 (patch)
treec76d3316e75c93a6c993f0fea148f496cd3b291a /src/plugins/platforms/windows/windows.pro
parent4e8c20e97e17881e2de20640f81c3998f024287d (diff)
Fix for windows platform plugin to work with WINCE.
Made opengl optional. Made Clipboard and Accessability optional. Moved internal mime data into its on source file, was implemented in the clipboard source which is just strange. Change-Id: I6ddf0c656533bd45e22e24492fc2254d15b7822f Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Diffstat (limited to 'src/plugins/platforms/windows/windows.pro')
-rw-r--r--src/plugins/platforms/windows/windows.pro26
1 files changed, 18 insertions, 8 deletions
diff --git a/src/plugins/platforms/windows/windows.pro b/src/plugins/platforms/windows/windows.pro
index 63275d3402..5fcf9bfcc9 100644
--- a/src/plugins/platforms/windows/windows.pro
+++ b/src/plugins/platforms/windows/windows.pro
@@ -9,11 +9,13 @@ INCLUDEPATH += ../../../3rdparty/harfbuzz/src
QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/platforms
# Note: OpenGL32 must precede Gdi32 as it overwrites some functions.
-LIBS *= -lOpenGL32 -lGdi32 -lUser32 -lOle32 -lWinspool -lImm32 -lWinmm -lOleaut32
+LIBS *= -lole32
+!wince*:LIBS *= -lgdi32 -luser32 -lwinspool -limm32 -lwinmm -loleaut32
+contains(QT_CONFIG, opengl):LIBS *= -lOpenGL32
win32-g++: LIBS *= -luuid
# For the dialog helpers:
-LIBS *= -lshlwapi -lShell32
-LIBS *= -lAdvapi32
+!wince*:LIBS *= -lshlwapi -lshell32
+!wince*:LIBS *= -ladvapi32
DEFINES *= QT_NO_CAST_FROM_ASCII
@@ -38,11 +40,10 @@ SOURCES += \
qwindowsfontdatabase.cpp \
qwindowsmousehandler.cpp \
qwindowsguieventdispatcher.cpp \
- qwindowsglcontext.cpp \
- qwindowsclipboard.cpp \
qwindowsole.cpp \
qwindowsmime.cpp \
qwindowsdrag.cpp \
+ qwindowsinternalmimedata.cpp \
qwindowscursor.cpp \
qwindowsinputcontext.cpp \
qwindowstheme.cpp \
@@ -63,8 +64,6 @@ HEADERS += \
qwindowsguieventdispatcher.h \
qtwindowsglobal.h \
qtwindows_additional.h \
- qwindowsglcontext.h \
- qwindowsclipboard.h \
qwindowsole.h \
qwindowsmime.h \
qwindowsdrag.h \
@@ -74,7 +73,18 @@ HEADERS += \
qwindowsinputcontext.h \
qwindowstheme.h \
qwindowsdialoghelpers.h \
- qwindowsservices.h
+ qwindowsservices.h \
+ qplatformfunctions_wince.h
+
+contains(QT_CONFIG, opengl) {
+ SOURCES += qwindowsglcontext.cpp
+ HEADERS += qwindowsglcontext.h
+}
+
+!contains( DEFINES, QT_NO_CLIPBOARD ) {
+ SOURCES += qwindowsclipboard.cpp
+ HEADERS += qwindowsclipboard.h
+}
# Enable access to HB_Face in harfbuzz includes included by qfontengine_p.h.
DEFINES *= QT_COMPILES_IN_HARFBUZZ