fix build failure for MinGW using "system" freetype
[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 wince*:DEFINES *= QT_LIBINFIX=L"\"\\\"$${QT_LIBINFIX}\\\"\""
22
23 DEFINES *= QT_NO_CAST_FROM_ASCII
24
25 contains(QT_CONFIG, directwrite) {
26     LIBS *= -ldwrite
27     SOURCES += qwindowsfontenginedirectwrite.cpp
28     HEADERS += qwindowsfontenginedirectwrite.h
29 } else {
30     DEFINES *= QT_NO_DIRECTWRITE
31 }
32
33 SOURCES += \
34     main.cpp \
35     qwindowsnativeimage.cpp \
36     qwindowswindow.cpp \
37     qwindowsintegration.cpp \
38     qwindowscontext.cpp \
39     qwindowsbackingstore.cpp \
40     qwindowsscreen.cpp \
41     qwindowskeymapper.cpp \
42     qwindowsfontengine.cpp \
43     qwindowsfontdatabase.cpp \
44     qwindowsmousehandler.cpp \
45     qwindowsguieventdispatcher.cpp \
46     qwindowsole.cpp \
47     qwindowsmime.cpp \
48     qwindowsdrag.cpp \
49     qwindowsinternalmimedata.cpp \
50     qwindowscursor.cpp \
51     qwindowsinputcontext.cpp \
52     qwindowstheme.cpp \
53     qwindowsdialoghelpers.cpp \
54     qwindowsservices.cpp
55
56 HEADERS += \
57     qwindowsnativeimage.h \
58     qwindowswindow.h \
59     qwindowsintegration.h \
60     qwindowscontext.h \
61     qwindowsbackingstore.h \
62     qwindowsscreen.h \
63     qwindowskeymapper.h \
64     qwindowsfontengine.h \
65     qwindowsfontdatabase.h \
66     qwindowsmousehandler.h \
67     qwindowsguieventdispatcher.h \
68     qtwindowsglobal.h \
69     qtwindows_additional.h \
70     qwindowsole.h \
71     qwindowsmime.h \
72     qwindowsdrag.h \
73     qwindowsinternalmimedata.h \
74     qwindowscursor.h \
75     array.h \
76     qwindowsinputcontext.h \
77     qwindowstheme.h \
78     qwindowsdialoghelpers.h \
79     qwindowsservices.h \
80     qplatformfunctions_wince.h
81
82 contains(QT_CONFIG, opengles2) {
83     SOURCES += qwindowseglcontext.cpp
84     HEADERS += qwindowseglcontext.h
85 } else {
86     contains(QT_CONFIG, opengl) {
87         SOURCES += qwindowsglcontext.cpp
88         HEADERS += qwindowsglcontext.h
89    }
90 }
91
92 !contains( DEFINES, QT_NO_CLIPBOARD ) {
93     SOURCES += qwindowsclipboard.cpp
94     HEADERS += qwindowsclipboard.h
95 }
96
97 # Enable access to HB_Face in harfbuzz includes included by qfontengine_p.h.
98 DEFINES *= QT_COMPILES_IN_HARFBUZZ
99
100 contains(QT_CONFIG, freetype) {
101     DEFINES *= QT_NO_FONTCONFIG
102     DEFINES *= QT_COMPILES_IN_HARFBUZZ
103     QT_FREETYPE_DIR = $$QT_SOURCE_TREE/src/3rdparty/freetype
104
105     HEADERS += \
106                qwindowsfontdatabase_ft.h
107     SOURCES += \
108                qwindowsfontdatabase_ft.cpp \
109                $$QT_FREETYPE_DIR/src/base/ftbase.c \
110                $$QT_FREETYPE_DIR/src/base/ftbbox.c \
111                $$QT_FREETYPE_DIR/src/base/ftdebug.c \
112                $$QT_FREETYPE_DIR/src/base/ftglyph.c \
113                $$QT_FREETYPE_DIR/src/base/ftinit.c \
114                $$QT_FREETYPE_DIR/src/base/ftmm.c \
115                $$QT_FREETYPE_DIR/src/base/fttype1.c \
116                $$QT_FREETYPE_DIR/src/base/ftsynth.c \
117                $$QT_FREETYPE_DIR/src/base/ftbitmap.c \
118                $$QT_FREETYPE_DIR/src/bdf/bdf.c \
119                $$QT_FREETYPE_DIR/src/cache/ftcache.c \
120                $$QT_FREETYPE_DIR/src/cff/cff.c \
121                $$QT_FREETYPE_DIR/src/cid/type1cid.c \
122                $$QT_FREETYPE_DIR/src/gzip/ftgzip.c \
123                $$QT_FREETYPE_DIR/src/pcf/pcf.c \
124                $$QT_FREETYPE_DIR/src/pfr/pfr.c \
125                $$QT_FREETYPE_DIR/src/psaux/psaux.c \
126                $$QT_FREETYPE_DIR/src/pshinter/pshinter.c \
127                $$QT_FREETYPE_DIR/src/psnames/psmodule.c \
128                $$QT_FREETYPE_DIR/src/raster/raster.c \
129                $$QT_FREETYPE_DIR/src/sfnt/sfnt.c \
130                $$QT_FREETYPE_DIR/src/smooth/smooth.c \
131                $$QT_FREETYPE_DIR/src/truetype/truetype.c \
132                $$QT_FREETYPE_DIR/src/type1/type1.c \
133                $$QT_FREETYPE_DIR/src/type42/type42.c \
134                $$QT_FREETYPE_DIR/src/winfonts/winfnt.c \
135                $$QT_FREETYPE_DIR/src/lzw/ftlzw.c\
136                $$QT_FREETYPE_DIR/src/otvalid/otvalid.c\
137                $$QT_FREETYPE_DIR/src/otvalid/otvbase.c\
138                $$QT_FREETYPE_DIR/src/otvalid/otvgdef.c\
139                $$QT_FREETYPE_DIR/src/otvalid/otvjstf.c\
140                $$QT_FREETYPE_DIR/src/otvalid/otvcommn.c\
141                $$QT_FREETYPE_DIR/src/otvalid/otvgpos.c\
142                $$QT_FREETYPE_DIR/src/otvalid/otvgsub.c\
143                $$QT_FREETYPE_DIR/src/otvalid/otvmod.c\
144                $$QT_FREETYPE_DIR/src/autofit/afangles.c\
145                $$QT_FREETYPE_DIR/src/autofit/afglobal.c\
146                $$QT_FREETYPE_DIR/src/autofit/aflatin.c\
147                $$QT_FREETYPE_DIR/src/autofit/afmodule.c\
148                $$QT_FREETYPE_DIR/src/autofit/afdummy.c\
149                $$QT_FREETYPE_DIR/src/autofit/afhints.c\
150                $$QT_FREETYPE_DIR/src/autofit/afloader.c\
151                $$QT_FREETYPE_DIR/src/autofit/autofit.c
152
153    SOURCES += $$QT_FREETYPE_DIR/src/base/ftsystem.c
154
155
156    INCLUDEPATH += \
157        $$QT_FREETYPE_DIR/src \
158        $$QT_FREETYPE_DIR/include
159
160    DEFINES += FT2_BUILD_LIBRARY
161    contains(QT_CONFIG, system-zlib) {
162         DEFINES += FT_CONFIG_OPTION_SYSTEM_ZLIB
163    }
164 } else:contains(QT_CONFIG, system-freetype) {
165     include($$QT_SOURCE_TREE/src/platformsupport/fontdatabases/basic/basic.pri)
166     HEADERS += \
167                qwindowsfontdatabase_ft.h
168     SOURCES += \
169                qwindowsfontdatabase_ft.cpp
170 }
171
172 OTHER_FILES += windows.json
173
174 contains(QT_CONFIG, accessibility):include(accessible/accessible.pri)
175
176 target.path += $$[QT_INSTALL_PLUGINS]/platforms
177 INSTALLS += target