Fix uses of qRound on non-floating-point types.
[profile/ivi/qtbase.git] / src / gui / text / text.pri
1 # Qt kernel module
2
3 HEADERS += \
4         text/qfont.h \
5         text/qfontdatabase.h \
6         text/qfontengine_p.h \
7         text/qfontengineglyphcache_p.h \
8         text/qfontinfo.h \
9         text/qfontmetrics.h \
10         text/qfont_p.h \
11         text/qfontsubset_p.h \
12         text/qtextcontrol_p.h \
13         text/qtextcontrol_p_p.h \
14         text/qtextengine_p.h \
15         text/qtextlayout.h \
16         text/qtextformat.h \
17         text/qtextformat_p.h \
18         text/qtextobject.h \
19         text/qtextobject_p.h \
20         text/qtextoption.h \
21         text/qfragmentmap_p.h \
22         text/qtextdocument.h \
23         text/qtextdocument_p.h \
24         text/qtexthtmlparser_p.h \
25         text/qabstracttextdocumentlayout.h \
26         text/qtextdocumentlayout_p.h \
27         text/qtextcursor.h \
28         text/qtextcursor_p.h \
29         text/qtextdocumentfragment.h \
30         text/qtextdocumentfragment_p.h \
31         text/qtextimagehandler_p.h \
32         text/qtexttable.h \
33         text/qtextlist.h \
34         text/qsyntaxhighlighter.h \
35         text/qtextdocumentwriter.h \
36         text/qcssparser_p.h \
37         text/qtexttable_p.h \
38         text/qzipreader_p.h \
39         text/qzipwriter_p.h \
40         text/qtextodfwriter_p.h \
41         text/qstatictext_p.h \
42         text/qstatictext.h \
43         text/qrawfont.h \
44         text/qrawfont_p.h \
45     text/qglyphrun.h \
46     text/qglyphrun_p.h \
47     text/qharfbuzz_copy_p.h
48
49 SOURCES += \
50         text/qfont.cpp \
51         text/qfontengine.cpp \
52         text/qfontsubset.cpp \
53         text/qfontmetrics.cpp \
54         text/qfontdatabase.cpp \
55         text/qtextcontrol.cpp \
56         text/qtextengine.cpp \
57         text/qtextlayout.cpp \
58         text/qtextformat.cpp \
59         text/qtextobject.cpp \
60         text/qtextoption.cpp \
61         text/qfragmentmap.cpp \
62         text/qtextdocument.cpp \
63         text/qtextdocument_p.cpp \
64         text/qtexthtmlparser.cpp \
65         text/qabstracttextdocumentlayout.cpp \
66         text/qtextdocumentlayout.cpp \
67         text/qtextcursor.cpp \
68         text/qtextdocumentfragment.cpp \
69         text/qtextimagehandler.cpp \
70         text/qtexttable.cpp \
71         text/qtextlist.cpp \
72         text/qtextdocumentwriter.cpp \
73         text/qsyntaxhighlighter.cpp \
74         text/qcssparser.cpp \
75         text/qzip.cpp \
76         text/qtextodfwriter.cpp \
77         text/qstatictext.cpp \
78         text/qrawfont.cpp \
79     text/qglyphrun.cpp
80
81 win32 {
82         SOURCES += \
83                 text/qfont_win.cpp \
84                 text/qfontengine_win.cpp \
85                 text/qrawfont_win.cpp
86         HEADERS += text/qfontengine_win_p.h
87 }
88
89 contains(QT_CONFIG, directwrite) {
90     LIBS_PRIVATE += -ldwrite
91     HEADERS += text/qfontenginedirectwrite_p.h
92     SOURCES += text/qfontenginedirectwrite.cpp
93 }
94
95 unix:x11 {
96         HEADERS += \
97                 text/qfontengine_x11_p.h \
98                 text/qfontdatabase_x11.cpp \
99                 text/qfontengine_ft_p.h
100         SOURCES += \
101                 text/qfont_x11.cpp \
102                 text/qfontengine_x11.cpp \
103                 text/qfontengine_ft.cpp \
104                 text/qrawfont_ft.cpp
105 }
106
107 !embedded:!qpa:!x11:mac {
108         HEADERS += \
109                 text/qfontengine_mac_p.h
110         OBJECTIVE_HEADERS += \
111                 text/qfontengine_coretext_p.h
112         SOURCES += \
113                 text/qfont_mac.cpp \
114                 text/qrawfont_mac.cpp
115         OBJECTIVE_SOURCES += \
116                 text/qfontengine_coretext.mm \
117                 text/qfontengine_mac.mm
118         contains(QT_CONFIG, harfbuzz) {
119             DEFINES += QT_ENABLE_HARFBUZZ_FOR_MAC
120         }
121 }
122
123 embedded {
124         SOURCES += \
125                 text/qfont_qws.cpp \
126                 text/qfontengine_qws.cpp \
127                 text/qfontengine_ft.cpp \
128                 text/qfontengine_qpf.cpp \
129                 text/qabstractfontengine_qws.cpp \
130                 text/qrawfont_ft.cpp
131         HEADERS += \
132                 text/qfontengine_ft_p.h \
133                 text/qfontengine_qpf_p.h \
134                 text/qabstractfontengine_qws.h \
135                 text/qabstractfontengine_p.h
136         DEFINES += QT_NO_FONTCONFIG
137 }
138
139 qpa {
140         SOURCES += \
141                 text/qfont_qpa.cpp \
142                 text/qfontengine_qpa.cpp \
143                 text/qplatformfontdatabase_qpa.cpp \
144                 text/qrawfont_qpa.cpp
145
146         HEADERS += \
147                 text/qplatformfontdatabase_qpa.h
148
149         DEFINES += QT_NO_FONTCONFIG
150         DEFINES += QT_NO_FREETYPE
151 }
152
153 symbian {
154         SOURCES += \
155                 text/qfont_s60.cpp
156         contains(QT_CONFIG, freetype) {
157                 SOURCES += \
158                         text/qfontengine_ft.cpp \
159                         text/qrawfont_ft.cpp
160                 HEADERS += \
161                         text/qfontengine_ft_p.h
162                 DEFINES += \
163                         QT_NO_FONTCONFIG
164         } else {
165                 SOURCES += \
166                         text/qfontengine_s60.cpp
167                 HEADERS += \
168                         text/qfontengine_s60_p.h
169         }
170         LIBS += -lfntstr -lecom
171 }
172
173 !qpa {
174 contains(QT_CONFIG, freetype) {
175     SOURCES += \
176         ../3rdparty/freetype/src/base/ftbase.c \
177         ../3rdparty/freetype/src/base/ftbbox.c \
178         ../3rdparty/freetype/src/base/ftdebug.c \
179         ../3rdparty/freetype/src/base/ftglyph.c \
180         ../3rdparty/freetype/src/base/ftinit.c \
181         ../3rdparty/freetype/src/base/ftmm.c \
182         ../3rdparty/freetype/src/base/fttype1.c \
183         ../3rdparty/freetype/src/base/ftsynth.c \
184         ../3rdparty/freetype/src/base/ftbitmap.c \
185         ../3rdparty/freetype/src/bdf/bdf.c \
186         ../3rdparty/freetype/src/cache/ftcache.c \
187         ../3rdparty/freetype/src/cff/cff.c \
188         ../3rdparty/freetype/src/cid/type1cid.c \
189         ../3rdparty/freetype/src/gzip/ftgzip.c \
190         ../3rdparty/freetype/src/pcf/pcf.c \
191         ../3rdparty/freetype/src/pfr/pfr.c \
192         ../3rdparty/freetype/src/psaux/psaux.c \
193         ../3rdparty/freetype/src/pshinter/pshinter.c \
194         ../3rdparty/freetype/src/psnames/psmodule.c \
195         ../3rdparty/freetype/src/raster/raster.c \
196         ../3rdparty/freetype/src/sfnt/sfnt.c \
197         ../3rdparty/freetype/src/smooth/smooth.c \
198         ../3rdparty/freetype/src/truetype/truetype.c \
199         ../3rdparty/freetype/src/type1/type1.c \
200         ../3rdparty/freetype/src/type42/type42.c \
201         ../3rdparty/freetype/src/winfonts/winfnt.c \
202         ../3rdparty/freetype/src/lzw/ftlzw.c\
203           ../3rdparty/freetype/src/otvalid/otvalid.c\
204           ../3rdparty/freetype/src/otvalid/otvbase.c\
205           ../3rdparty/freetype/src/otvalid/otvgdef.c\
206           ../3rdparty/freetype/src/otvalid/otvjstf.c\
207           ../3rdparty/freetype/src/otvalid/otvcommn.c\
208           ../3rdparty/freetype/src/otvalid/otvgpos.c\
209           ../3rdparty/freetype/src/otvalid/otvgsub.c\
210           ../3rdparty/freetype/src/otvalid/otvmod.c\
211           ../3rdparty/freetype/src/autofit/afangles.c\
212           ../3rdparty/freetype/src/autofit/afglobal.c\
213           ../3rdparty/freetype/src/autofit/aflatin.c\
214           ../3rdparty/freetype/src/autofit/afmodule.c\
215           ../3rdparty/freetype/src/autofit/afdummy.c\
216           ../3rdparty/freetype/src/autofit/afhints.c\
217           ../3rdparty/freetype/src/autofit/afloader.c\
218           ../3rdparty/freetype/src/autofit/autofit.c
219
220     symbian {
221         SOURCES += \
222             ../3rdparty/freetype/src/base/ftsystem.c
223     } else {
224         SOURCES += \
225             ../3rdparty/freetype/builds/unix/ftsystem.c
226         INCLUDEPATH += \
227             ../3rdparty/freetype/builds/unix
228     }
229
230     INCLUDEPATH += \
231         ../3rdparty/freetype/src \
232         ../3rdparty/freetype/include
233
234     DEFINES += FT2_BUILD_LIBRARY FT_CONFIG_OPTION_SYSTEM_ZLIB
235     
236     embedded:CONFIG += opentype
237 } else:contains(QT_CONFIG, system-freetype) {
238     embedded:CONFIG += opentype
239     # pull in the proper freetype2 include directory
240     include($$QT_SOURCE_TREE/config.tests/unix/freetype/freetype.pri)
241     LIBS_PRIVATE += -lfreetype
242 }
243
244 contains(QT_CONFIG, fontconfig) {
245     CONFIG += opentype
246 }
247 }#!qpa
248
249 DEFINES += QT_NO_OPENTYPE
250 INCLUDEPATH += ../3rdparty/harfbuzz/src