summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/windows/windows.pro
diff options
context:
space:
mode:
authorLouai Al-Khanji <louai.al-khanji@digia.com>2013-12-04 13:38:41 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-10 15:10:29 +0100
commit5a2fc4c367d4645ae3350fdcfb6c1bbd0e9c1a97 (patch)
tree81ae8c949053b89aac24a820f464e27693d848d7 /src/plugins/platforms/windows/windows.pro
parent8166a34fc5dafd56a7a0d29bb6b7ed4db0654a45 (diff)
Shuffle things around in preparation for Direct2D platform plugin
Add a layer of abstraction in some spots where the Direct2D plugin will hook in. Change-Id: Ifca7daf6ad0284af52a81822e970c2317d339234 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
Diffstat (limited to 'src/plugins/platforms/windows/windows.pro')
-rw-r--r--src/plugins/platforms/windows/windows.pro181
1 files changed, 8 insertions, 173 deletions
diff --git a/src/plugins/platforms/windows/windows.pro b/src/plugins/platforms/windows/windows.pro
index 0249e156d9..188bd7917c 100644
--- a/src/plugins/platforms/windows/windows.pro
+++ b/src/plugins/platforms/windows/windows.pro
@@ -8,184 +8,19 @@ QT *= core-private
QT *= gui-private
QT *= platformsupport-private
-# Note: OpenGL32 must precede Gdi32 as it overwrites some functions.
-LIBS *= -lole32
-!wince*:LIBS *= -lgdi32 -luser32 -lwinspool -limm32 -lwinmm -loleaut32
+!wince:LIBS *= -lgdi32
-contains(QT_CONFIG, opengl):!contains(QT_CONFIG, opengles2):LIBS *= -lopengl32
+include(windows.pri)
-win32-g++*: LIBS *= -luuid
-# For the dialog helpers:
-!wince*:LIBS *= -lshlwapi -lshell32
-!wince*:LIBS *= -ladvapi32
-wince*:DEFINES *= QT_LIBINFIX=L"\"\\\"$${QT_LIBINFIX}\\\"\""
-
-DEFINES *= QT_NO_CAST_FROM_ASCII
-
-contains(QT_CONFIG, directwrite) {
- LIBS *= -ldwrite
- SOURCES += qwindowsfontenginedirectwrite.cpp
- HEADERS += qwindowsfontenginedirectwrite.h
-} else {
- DEFINES *= QT_NO_DIRECTWRITE
-}
-
-SOURCES += \
+SOURCES += \
main.cpp \
- qwindowsnativeimage.cpp \
- qwindowswindow.cpp \
- qwindowsintegration.cpp \
- qwindowscontext.cpp \
qwindowsbackingstore.cpp \
- qwindowsscreen.cpp \
- qwindowskeymapper.cpp \
- qwindowsfontengine.cpp \
- qwindowsfontdatabase.cpp \
- qwindowsmousehandler.cpp \
- qwindowsguieventdispatcher.cpp \
- qwindowsole.cpp \
- qwindowsmime.cpp \
- qwindowsinternalmimedata.cpp \
- qwindowscursor.cpp \
- qwindowsinputcontext.cpp \
- qwindowstheme.cpp \
- qwindowsdialoghelpers.cpp \
- qwindowsservices.cpp
+ qwindowsgdiintegration.cpp \
+ qwindowsgdinativeinterface.cpp
-HEADERS += \
- qwindowsnativeimage.h \
- qwindowswindow.h \
- qwindowsintegration.h \
- qwindowscontext.h \
+HEADERS += \
qwindowsbackingstore.h \
- qwindowsscreen.h \
- qwindowskeymapper.h \
- qwindowsfontengine.h \
- qwindowsfontdatabase.h \
- qwindowsmousehandler.h \
- qwindowsguieventdispatcher.h \
- qtwindowsglobal.h \
- qtwindows_additional.h \
- qwindowsole.h \
- qwindowsmime.h \
- qwindowsinternalmimedata.h \
- qwindowscursor.h \
- array.h \
- qwindowsinputcontext.h \
- qwindowstheme.h \
- qwindowsdialoghelpers.h \
- qwindowsservices.h \
- qplatformfunctions_wince.h
-
-contains(QT_CONFIG, opengles2) {
- SOURCES += qwindowseglcontext.cpp
- HEADERS += qwindowseglcontext.h
-} else {
- contains(QT_CONFIG, opengl) {
- SOURCES += qwindowsglcontext.cpp
- HEADERS += qwindowsglcontext.h
- }
-}
-
-!contains( DEFINES, QT_NO_CLIPBOARD ) {
- SOURCES += qwindowsclipboard.cpp
- HEADERS += qwindowsclipboard.h
-}
-
-# drag and drop on windows only works if a clipboard is available
-!contains( DEFINES, QT_NO_DRAGANDDROP ) {
- !win32:SOURCES += qwindowsdrag.cpp
- !win32:HEADERS += qwindowsdrag.h
- win32:!contains( DEFINES, QT_NO_CLIPBOARD ) {
- HEADERS += qwindowsdrag.h
- SOURCES += qwindowsdrag.cpp
- }
-}
-
-!wince*:!contains( DEFINES, QT_NO_TABLETEVENT ) {
- INCLUDEPATH += ../../../3rdparty/wintab
- HEADERS += qwindowstabletsupport.h
- SOURCES += qwindowstabletsupport.cpp
-}
-
-!wince*:!contains( DEFINES, QT_NO_SESSIONMANAGER ) {
- SOURCES += qwindowssessionmanager.cpp
- HEADERS += qwindowssessionmanager.h
-}
-
-contains(QT_CONFIG, freetype) {
- DEFINES *= QT_NO_FONTCONFIG
- QT_FREETYPE_DIR = $$QT_SOURCE_TREE/src/3rdparty/freetype
-
- HEADERS += \
- qwindowsfontdatabase_ft.h
- SOURCES += \
- qwindowsfontdatabase_ft.cpp \
- $$QT_FREETYPE_DIR/src/base/ftbase.c \
- $$QT_FREETYPE_DIR/src/base/ftbbox.c \
- $$QT_FREETYPE_DIR/src/base/ftdebug.c \
- $$QT_FREETYPE_DIR/src/base/ftglyph.c \
- $$QT_FREETYPE_DIR/src/base/ftinit.c \
- $$QT_FREETYPE_DIR/src/base/ftmm.c \
- $$QT_FREETYPE_DIR/src/base/fttype1.c \
- $$QT_FREETYPE_DIR/src/base/ftsynth.c \
- $$QT_FREETYPE_DIR/src/base/ftbitmap.c \
- $$QT_FREETYPE_DIR/src/bdf/bdf.c \
- $$QT_FREETYPE_DIR/src/cache/ftcache.c \
- $$QT_FREETYPE_DIR/src/cff/cff.c \
- $$QT_FREETYPE_DIR/src/cid/type1cid.c \
- $$QT_FREETYPE_DIR/src/gzip/ftgzip.c \
- $$QT_FREETYPE_DIR/src/pcf/pcf.c \
- $$QT_FREETYPE_DIR/src/pfr/pfr.c \
- $$QT_FREETYPE_DIR/src/psaux/psaux.c \
- $$QT_FREETYPE_DIR/src/pshinter/pshinter.c \
- $$QT_FREETYPE_DIR/src/psnames/psmodule.c \
- $$QT_FREETYPE_DIR/src/raster/raster.c \
- $$QT_FREETYPE_DIR/src/sfnt/sfnt.c \
- $$QT_FREETYPE_DIR/src/smooth/smooth.c \
- $$QT_FREETYPE_DIR/src/truetype/truetype.c \
- $$QT_FREETYPE_DIR/src/type1/type1.c \
- $$QT_FREETYPE_DIR/src/type42/type42.c \
- $$QT_FREETYPE_DIR/src/winfonts/winfnt.c \
- $$QT_FREETYPE_DIR/src/lzw/ftlzw.c\
- $$QT_FREETYPE_DIR/src/otvalid/otvalid.c\
- $$QT_FREETYPE_DIR/src/otvalid/otvbase.c\
- $$QT_FREETYPE_DIR/src/otvalid/otvgdef.c\
- $$QT_FREETYPE_DIR/src/otvalid/otvjstf.c\
- $$QT_FREETYPE_DIR/src/otvalid/otvcommn.c\
- $$QT_FREETYPE_DIR/src/otvalid/otvgpos.c\
- $$QT_FREETYPE_DIR/src/otvalid/otvgsub.c\
- $$QT_FREETYPE_DIR/src/otvalid/otvmod.c\
- $$QT_FREETYPE_DIR/src/autofit/afangles.c\
- $$QT_FREETYPE_DIR/src/autofit/afglobal.c\
- $$QT_FREETYPE_DIR/src/autofit/aflatin.c\
- $$QT_FREETYPE_DIR/src/autofit/afmodule.c\
- $$QT_FREETYPE_DIR/src/autofit/afdummy.c\
- $$QT_FREETYPE_DIR/src/autofit/afhints.c\
- $$QT_FREETYPE_DIR/src/autofit/afloader.c\
- $$QT_FREETYPE_DIR/src/autofit/autofit.c
-
- SOURCES += $$QT_FREETYPE_DIR/src/base/ftsystem.c
-
-
- INCLUDEPATH += \
- $$QT_FREETYPE_DIR/src \
- $$QT_FREETYPE_DIR/include
-
- TR_EXCLUDE += $$QT_FREETYPE_DIR/*
-
- DEFINES += FT2_BUILD_LIBRARY
- contains(QT_CONFIG, system-zlib) {
- DEFINES += FT_CONFIG_OPTION_SYSTEM_ZLIB
- }
-} else:contains(QT_CONFIG, system-freetype) {
- include($$QT_SOURCE_TREE/src/platformsupport/fontdatabases/basic/basic.pri)
- HEADERS += \
- qwindowsfontdatabase_ft.h
- SOURCES += \
- qwindowsfontdatabase_ft.cpp
-}
+ qwindowsgdiintegration.h \
+ qwindowsgdinativeinterface.h
OTHER_FILES += windows.json
-
-contains(QT_CONFIG, accessibility):include(accessible/accessible.pri)