6 QT *= platformsupport-private
8 INCLUDEPATH += ../../../3rdparty/harfbuzz/src
9 QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/platforms
11 # Note: OpenGL32 must precede Gdi32 as it overwrites some functions.
13 !wince*:LIBS *= -lgdi32 -luser32 -lwinspool -limm32 -lwinmm -loleaut32
14 contains(QT_CONFIG, opengl):LIBS *= -lopengl32
15 win32-g++: LIBS *= -luuid
16 # For the dialog helpers:
17 !wince*:LIBS *= -lshlwapi -lshell32
18 !wince*:LIBS *= -ladvapi32
20 DEFINES *= QT_NO_CAST_FROM_ASCII
22 contains(QT_CONFIG, directwrite) {
24 SOURCES += qwindowsfontenginedirectwrite.cpp
25 HEADERS += qwindowsfontenginedirectwrite.h
27 DEFINES *= QT_NO_DIRECTWRITE
32 qwindowsnativeimage.cpp \
34 qwindowsintegration.cpp \
36 qwindowsbackingstore.cpp \
38 qwindowskeymapper.cpp \
39 qwindowsfontengine.cpp \
40 qwindowsfontdatabase.cpp \
41 qwindowsmousehandler.cpp \
42 qwindowsguieventdispatcher.cpp \
46 qwindowsinternalmimedata.cpp \
48 qwindowsinputcontext.cpp \
50 qwindowsdialoghelpers.cpp \
54 qwindowsnativeimage.h \
56 qwindowsintegration.h \
58 qwindowsbackingstore.h \
61 qwindowsfontengine.h \
62 qwindowsfontdatabase.h \
63 qwindowsmousehandler.h \
64 qwindowsguieventdispatcher.h \
66 qtwindows_additional.h \
70 qwindowsinternalmimedata.h \
73 qwindowsinputcontext.h \
75 qwindowsdialoghelpers.h \
77 qplatformfunctions_wince.h
79 contains(QT_CONFIG, opengl) {
80 SOURCES += qwindowsglcontext.cpp
81 HEADERS += qwindowsglcontext.h
84 !contains( DEFINES, QT_NO_CLIPBOARD ) {
85 SOURCES += qwindowsclipboard.cpp
86 HEADERS += qwindowsclipboard.h
89 # Enable access to HB_Face in harfbuzz includes included by qfontengine_p.h.
90 DEFINES *= QT_COMPILES_IN_HARFBUZZ
92 contains(QT_CONFIG, freetype) {
93 DEFINES *= QT_NO_FONTCONFIG
94 DEFINES *= QT_COMPILES_IN_HARFBUZZ
95 QT_FREETYPE_DIR = $$QT_SOURCE_TREE/src/3rdparty/freetype
98 qwindowsfontdatabase_ft.h \
99 $$QT_SOURCE_TREE/src/gui/text/qfontengine_ft_p.h
101 qwindowsfontdatabase_ft.cpp \
102 $$QT_SOURCE_TREE/src/gui/text/qfontengine_ft.cpp \
103 $$QT_FREETYPE_DIR/src/base/ftbase.c \
104 $$QT_FREETYPE_DIR/src/base/ftbbox.c \
105 $$QT_FREETYPE_DIR/src/base/ftdebug.c \
106 $$QT_FREETYPE_DIR/src/base/ftglyph.c \
107 $$QT_FREETYPE_DIR/src/base/ftinit.c \
108 $$QT_FREETYPE_DIR/src/base/ftmm.c \
109 $$QT_FREETYPE_DIR/src/base/fttype1.c \
110 $$QT_FREETYPE_DIR/src/base/ftsynth.c \
111 $$QT_FREETYPE_DIR/src/base/ftbitmap.c \
112 $$QT_FREETYPE_DIR/src/bdf/bdf.c \
113 $$QT_FREETYPE_DIR/src/cache/ftcache.c \
114 $$QT_FREETYPE_DIR/src/cff/cff.c \
115 $$QT_FREETYPE_DIR/src/cid/type1cid.c \
116 $$QT_FREETYPE_DIR/src/gzip/ftgzip.c \
117 $$QT_FREETYPE_DIR/src/pcf/pcf.c \
118 $$QT_FREETYPE_DIR/src/pfr/pfr.c \
119 $$QT_FREETYPE_DIR/src/psaux/psaux.c \
120 $$QT_FREETYPE_DIR/src/pshinter/pshinter.c \
121 $$QT_FREETYPE_DIR/src/psnames/psmodule.c \
122 $$QT_FREETYPE_DIR/src/raster/raster.c \
123 $$QT_FREETYPE_DIR/src/sfnt/sfnt.c \
124 $$QT_FREETYPE_DIR/src/smooth/smooth.c \
125 $$QT_FREETYPE_DIR/src/truetype/truetype.c \
126 $$QT_FREETYPE_DIR/src/type1/type1.c \
127 $$QT_FREETYPE_DIR/src/type42/type42.c \
128 $$QT_FREETYPE_DIR/src/winfonts/winfnt.c \
129 $$QT_FREETYPE_DIR/src/lzw/ftlzw.c\
130 $$QT_FREETYPE_DIR/src/otvalid/otvalid.c\
131 $$QT_FREETYPE_DIR/src/otvalid/otvbase.c\
132 $$QT_FREETYPE_DIR/src/otvalid/otvgdef.c\
133 $$QT_FREETYPE_DIR/src/otvalid/otvjstf.c\
134 $$QT_FREETYPE_DIR/src/otvalid/otvcommn.c\
135 $$QT_FREETYPE_DIR/src/otvalid/otvgpos.c\
136 $$QT_FREETYPE_DIR/src/otvalid/otvgsub.c\
137 $$QT_FREETYPE_DIR/src/otvalid/otvmod.c\
138 $$QT_FREETYPE_DIR/src/autofit/afangles.c\
139 $$QT_FREETYPE_DIR/src/autofit/afglobal.c\
140 $$QT_FREETYPE_DIR/src/autofit/aflatin.c\
141 $$QT_FREETYPE_DIR/src/autofit/afmodule.c\
142 $$QT_FREETYPE_DIR/src/autofit/afdummy.c\
143 $$QT_FREETYPE_DIR/src/autofit/afhints.c\
144 $$QT_FREETYPE_DIR/src/autofit/afloader.c\
145 $$QT_FREETYPE_DIR/src/autofit/autofit.c
147 SOURCES += $$QT_FREETYPE_DIR/src/base/ftsystem.c
151 $$QT_FREETYPE_DIR/src \
152 $$QT_FREETYPE_DIR/include
154 DEFINES += FT2_BUILD_LIBRARY
155 contains(QT_CONFIG, system-zlib) {
156 DEFINES += FT_CONFIG_OPTION_SYSTEM_ZLIB
160 OTHER_FILES += windows.json
162 contains(QT_CONFIG, accessibility):include(accessible/accessible.pri)
164 target.path += $$[QT_INSTALL_PLUGINS]/platforms