The QFontEngineFT files are not built into QtGui anymore.
[profile/ivi/qtbase.git] / src / plugins / platforms / windows / windows.pro
1 TARGET = windows
2 load(qt_plugin)
3
4 QT *= core-private
5 QT *= gui-private
6 QT *= platformsupport-private
7
8 INCLUDEPATH += ../../../3rdparty/harfbuzz/src
9 QTDIR_build:DESTDIR = $$QT_BUILD_TREE/plugins/platforms
10
11 # Note: OpenGL32 must precede Gdi32 as it overwrites some functions.
12 LIBS *= -lole32
13 !wince*:LIBS *= -lgdi32 -luser32 -lwinspool -limm32 -lwinmm  -loleaut32
14
15 contains(QT_CONFIG, opengl):!contains(QT_CONFIG, opengles2):LIBS *= -lopengl32
16
17 win32-g++*: LIBS *= -luuid
18 # For the dialog helpers:
19 !wince*:LIBS *= -lshlwapi -lshell32
20 !wince*:LIBS *= -ladvapi32
21
22 DEFINES *= QT_NO_CAST_FROM_ASCII
23
24 contains(QT_CONFIG, directwrite) {
25     LIBS *= -ldwrite
26     SOURCES += qwindowsfontenginedirectwrite.cpp
27     HEADERS += qwindowsfontenginedirectwrite.h
28 } else {
29     DEFINES *= QT_NO_DIRECTWRITE
30 }
31
32 SOURCES += \
33     main.cpp \
34     qwindowsnativeimage.cpp \
35     qwindowswindow.cpp \
36     qwindowsintegration.cpp \
37     qwindowscontext.cpp \
38     qwindowsbackingstore.cpp \
39     qwindowsscreen.cpp \
40     qwindowskeymapper.cpp \
41     qwindowsfontengine.cpp \
42     qwindowsfontdatabase.cpp \
43     qwindowsmousehandler.cpp \
44     qwindowsguieventdispatcher.cpp \
45     qwindowsole.cpp \
46     qwindowsmime.cpp \
47     qwindowsdrag.cpp \
48     qwindowsinternalmimedata.cpp \
49     qwindowscursor.cpp \
50     qwindowsinputcontext.cpp \
51     qwindowstheme.cpp \
52     qwindowsdialoghelpers.cpp \
53     qwindowsservices.cpp
54
55 HEADERS += \
56     qwindowsnativeimage.h \
57     qwindowswindow.h \
58     qwindowsintegration.h \
59     qwindowscontext.h \
60     qwindowsbackingstore.h \
61     qwindowsscreen.h \
62     qwindowskeymapper.h \
63     qwindowsfontengine.h \
64     qwindowsfontdatabase.h \
65     qwindowsmousehandler.h \
66     qwindowsguieventdispatcher.h \
67     qtwindowsglobal.h \
68     qtwindows_additional.h \
69     qwindowsole.h \
70     qwindowsmime.h \
71     qwindowsdrag.h \
72     qwindowsinternalmimedata.h \
73     qwindowscursor.h \
74     array.h \
75     qwindowsinputcontext.h \
76     qwindowstheme.h \
77     qwindowsdialoghelpers.h \
78     qwindowsservices.h \
79     qplatformfunctions_wince.h
80
81 contains(QT_CONFIG, opengles2) {
82     SOURCES += qwindowseglcontext.cpp
83     HEADERS += qwindowseglcontext.h
84 } else {
85     contains(QT_CONFIG, opengl) {
86         SOURCES += qwindowsglcontext.cpp
87         HEADERS += qwindowsglcontext.h
88    }
89 }
90
91 !contains( DEFINES, QT_NO_CLIPBOARD ) {
92     SOURCES += qwindowsclipboard.cpp
93     HEADERS += qwindowsclipboard.h
94 }
95
96 # Enable access to HB_Face in harfbuzz includes included by qfontengine_p.h.
97 DEFINES *= QT_COMPILES_IN_HARFBUZZ
98
99 contains(QT_CONFIG, freetype) {
100     DEFINES *= QT_NO_FONTCONFIG
101     DEFINES *= QT_COMPILES_IN_HARFBUZZ
102     QT_FREETYPE_DIR = $$QT_SOURCE_TREE/src/3rdparty/freetype
103
104     HEADERS += \
105                qwindowsfontdatabase_ft.h
106     SOURCES += \
107                qwindowsfontdatabase_ft.cpp \
108                $$QT_FREETYPE_DIR/src/base/ftbase.c \
109                $$QT_FREETYPE_DIR/src/base/ftbbox.c \
110                $$QT_FREETYPE_DIR/src/base/ftdebug.c \
111                $$QT_FREETYPE_DIR/src/base/ftglyph.c \
112                $$QT_FREETYPE_DIR/src/base/ftinit.c \
113                $$QT_FREETYPE_DIR/src/base/ftmm.c \
114                $$QT_FREETYPE_DIR/src/base/fttype1.c \
115                $$QT_FREETYPE_DIR/src/base/ftsynth.c \
116                $$QT_FREETYPE_DIR/src/base/ftbitmap.c \
117                $$QT_FREETYPE_DIR/src/bdf/bdf.c \
118                $$QT_FREETYPE_DIR/src/cache/ftcache.c \
119                $$QT_FREETYPE_DIR/src/cff/cff.c \
120                $$QT_FREETYPE_DIR/src/cid/type1cid.c \
121                $$QT_FREETYPE_DIR/src/gzip/ftgzip.c \
122                $$QT_FREETYPE_DIR/src/pcf/pcf.c \
123                $$QT_FREETYPE_DIR/src/pfr/pfr.c \
124                $$QT_FREETYPE_DIR/src/psaux/psaux.c \
125                $$QT_FREETYPE_DIR/src/pshinter/pshinter.c \
126                $$QT_FREETYPE_DIR/src/psnames/psmodule.c \
127                $$QT_FREETYPE_DIR/src/raster/raster.c \
128                $$QT_FREETYPE_DIR/src/sfnt/sfnt.c \
129                $$QT_FREETYPE_DIR/src/smooth/smooth.c \
130                $$QT_FREETYPE_DIR/src/truetype/truetype.c \
131                $$QT_FREETYPE_DIR/src/type1/type1.c \
132                $$QT_FREETYPE_DIR/src/type42/type42.c \
133                $$QT_FREETYPE_DIR/src/winfonts/winfnt.c \
134                $$QT_FREETYPE_DIR/src/lzw/ftlzw.c\
135                $$QT_FREETYPE_DIR/src/otvalid/otvalid.c\
136                $$QT_FREETYPE_DIR/src/otvalid/otvbase.c\
137                $$QT_FREETYPE_DIR/src/otvalid/otvgdef.c\
138                $$QT_FREETYPE_DIR/src/otvalid/otvjstf.c\
139                $$QT_FREETYPE_DIR/src/otvalid/otvcommn.c\
140                $$QT_FREETYPE_DIR/src/otvalid/otvgpos.c\
141                $$QT_FREETYPE_DIR/src/otvalid/otvgsub.c\
142                $$QT_FREETYPE_DIR/src/otvalid/otvmod.c\
143                $$QT_FREETYPE_DIR/src/autofit/afangles.c\
144                $$QT_FREETYPE_DIR/src/autofit/afglobal.c\
145                $$QT_FREETYPE_DIR/src/autofit/aflatin.c\
146                $$QT_FREETYPE_DIR/src/autofit/afmodule.c\
147                $$QT_FREETYPE_DIR/src/autofit/afdummy.c\
148                $$QT_FREETYPE_DIR/src/autofit/afhints.c\
149                $$QT_FREETYPE_DIR/src/autofit/afloader.c\
150                $$QT_FREETYPE_DIR/src/autofit/autofit.c
151
152    SOURCES += $$QT_FREETYPE_DIR/src/base/ftsystem.c
153
154
155    INCLUDEPATH += \
156        $$QT_FREETYPE_DIR/src \
157        $$QT_FREETYPE_DIR/include
158
159    DEFINES += FT2_BUILD_LIBRARY
160    contains(QT_CONFIG, system-zlib) {
161         DEFINES += FT_CONFIG_OPTION_SYSTEM_ZLIB
162    }
163 }
164
165 OTHER_FILES += windows.json
166
167 contains(QT_CONFIG, accessibility):include(accessible/accessible.pri)
168
169 target.path += $$[QT_INSTALL_PLUGINS]/platforms
170 INSTALLS += target