Remove capitalization when specifying include-libraries.
[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 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
19
20 DEFINES *= QT_NO_CAST_FROM_ASCII
21
22 contains(QT_CONFIG, directwrite) {
23     LIBS *= -ldwrite
24     SOURCES += qwindowsfontenginedirectwrite.cpp
25     HEADERS += qwindowsfontenginedirectwrite.h
26 } else {
27     DEFINES *= QT_NO_DIRECTWRITE
28 }
29
30 SOURCES += \
31     main.cpp \
32     qwindowsnativeimage.cpp \
33     qwindowswindow.cpp \
34     qwindowsintegration.cpp \
35     qwindowscontext.cpp \
36     qwindowsbackingstore.cpp \
37     qwindowsscreen.cpp \
38     qwindowskeymapper.cpp \
39     qwindowsfontengine.cpp \
40     qwindowsfontdatabase.cpp \
41     qwindowsmousehandler.cpp \
42     qwindowsguieventdispatcher.cpp \
43     qwindowsole.cpp \
44     qwindowsmime.cpp \
45     qwindowsdrag.cpp \
46     qwindowsinternalmimedata.cpp \
47     qwindowscursor.cpp \
48     qwindowsinputcontext.cpp \
49     qwindowstheme.cpp \
50     qwindowsdialoghelpers.cpp \
51     qwindowsservices.cpp
52
53 HEADERS += \
54     qwindowsnativeimage.h \
55     qwindowswindow.h \
56     qwindowsintegration.h \
57     qwindowscontext.h \
58     qwindowsbackingstore.h \
59     qwindowsscreen.h \
60     qwindowskeymapper.h \
61     qwindowsfontengine.h \
62     qwindowsfontdatabase.h \
63     qwindowsmousehandler.h \
64     qwindowsguieventdispatcher.h \
65     qtwindowsglobal.h \
66     qtwindows_additional.h \
67     qwindowsole.h \
68     qwindowsmime.h \
69     qwindowsdrag.h \
70     qwindowsinternalmimedata.h \
71     qwindowscursor.h \
72     array.h \
73     qwindowsinputcontext.h \
74     qwindowstheme.h \
75     qwindowsdialoghelpers.h \
76     qwindowsservices.h \
77     qplatformfunctions_wince.h
78
79 contains(QT_CONFIG, opengl) {
80     SOURCES += qwindowsglcontext.cpp
81     HEADERS += qwindowsglcontext.h
82 }
83
84 !contains( DEFINES, QT_NO_CLIPBOARD ) {
85     SOURCES += qwindowsclipboard.cpp
86     HEADERS += qwindowsclipboard.h
87 }
88
89 # Enable access to HB_Face in harfbuzz includes included by qfontengine_p.h.
90 DEFINES *= QT_COMPILES_IN_HARFBUZZ
91
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
96
97     HEADERS += \
98                qwindowsfontdatabase_ft.h \
99                $$QT_SOURCE_TREE/src/gui/text/qfontengine_ft_p.h
100     SOURCES += \
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
146
147    SOURCES += $$QT_FREETYPE_DIR/src/base/ftsystem.c
148
149
150    INCLUDEPATH += \
151        $$QT_FREETYPE_DIR/src \
152        $$QT_FREETYPE_DIR/include
153
154    DEFINES += FT2_BUILD_LIBRARY
155    contains(QT_CONFIG, system-zlib) {
156         DEFINES += FT_CONFIG_OPTION_SYSTEM_ZLIB
157    }
158 }
159
160 OTHER_FILES += windows.json
161
162 contains(QT_CONFIG, accessibility):include(accessible/accessible.pri)
163
164 target.path += $$[QT_INSTALL_PLUGINS]/platforms
165 INSTALLS += target