QWS removal, part 2
[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/qglyphs.h \
44         text/qglyphs_p.h \
45         text/qrawfont.h \
46         text/qrawfont_p.h
47
48 SOURCES += \
49         text/qfont.cpp \
50         text/qfontengine.cpp \
51         text/qfontsubset.cpp \
52         text/qfontmetrics.cpp \
53         text/qfontdatabase.cpp \
54         text/qtextcontrol.cpp \
55         text/qtextengine.cpp \
56         text/qtextlayout.cpp \
57         text/qtextformat.cpp \
58         text/qtextobject.cpp \
59         text/qtextoption.cpp \
60         text/qfragmentmap.cpp \
61         text/qtextdocument.cpp \
62         text/qtextdocument_p.cpp \
63         text/qtexthtmlparser.cpp \
64         text/qabstracttextdocumentlayout.cpp \
65         text/qtextdocumentlayout.cpp \
66         text/qtextcursor.cpp \
67         text/qtextdocumentfragment.cpp \
68         text/qtextimagehandler.cpp \
69         text/qtexttable.cpp \
70         text/qtextlist.cpp \
71         text/qtextdocumentwriter.cpp \
72         text/qsyntaxhighlighter.cpp \
73         text/qcssparser.cpp \
74         text/qzip.cpp \
75         text/qtextodfwriter.cpp \
76         text/qstatictext.cpp \
77         text/qglyphs.cpp \
78         text/qrawfont.cpp
79
80 win32 {
81         SOURCES += \
82                 text/qfont_win.cpp \
83                 text/qfontengine_win.cpp \
84                 text/qrawfont_win.cpp
85         HEADERS += text/qfontengine_win_p.h
86 }
87
88 contains(QT_CONFIG, directwrite) {
89     LIBS_PRIVATE += -ldwrite
90     HEADERS += text/qfontenginedirectwrite_p.h
91     SOURCES += text/qfontenginedirectwrite.cpp
92 }
93
94 unix:x11 {
95         HEADERS += \
96                 text/qfontengine_x11_p.h \
97                 text/qfontdatabase_x11.cpp \
98                 text/qfontengine_ft_p.h
99         SOURCES += \
100                 text/qfont_x11.cpp \
101                 text/qfontengine_x11.cpp \
102                 text/qfontengine_ft.cpp \
103                 text/qrawfont_ft.cpp
104 }
105
106 !qpa:!x11:mac {
107         HEADERS += \
108                 text/qfontengine_mac_p.h
109         OBJECTIVE_HEADERS += \
110                 text/qfontengine_coretext_p.h
111         SOURCES += \
112                 text/qfont_mac.cpp \
113                 text/qrawfont_mac.cpp
114         OBJECTIVE_SOURCES += \
115                 text/qfontengine_coretext.mm \
116                 text/qfontengine_mac.mm
117 }
118
119 qpa {
120         SOURCES += \
121                 text/qfont_qpa.cpp \
122                 text/qfontengine_qpa.cpp \
123                 text/qplatformfontdatabase_qpa.cpp
124
125         HEADERS += \
126                 text/qplatformfontdatabase_qpa.h
127
128         DEFINES += QT_NO_FONTCONFIG
129         DEFINES += QT_NO_FREETYPE
130 }
131
132 symbian {
133         SOURCES += \
134                 text/qfont_s60.cpp
135         contains(QT_CONFIG, freetype) {
136                 SOURCES += \
137                         text/qfontengine_ft.cpp \
138                         text/qrawfont_ft.cpp
139                 HEADERS += \
140                         text/qfontengine_ft_p.h
141                 DEFINES += \
142                         QT_NO_FONTCONFIG
143         } else {
144                 SOURCES += \
145                         text/qfontengine_s60.cpp
146                 HEADERS += \
147                         text/qfontengine_s60_p.h
148         }
149         LIBS += -lfntstr -lecom
150 }
151
152 !qpa {
153 contains(QT_CONFIG, freetype) {
154     SOURCES += \
155         ../3rdparty/freetype/src/base/ftbase.c \
156         ../3rdparty/freetype/src/base/ftbbox.c \
157         ../3rdparty/freetype/src/base/ftdebug.c \
158         ../3rdparty/freetype/src/base/ftglyph.c \
159         ../3rdparty/freetype/src/base/ftinit.c \
160         ../3rdparty/freetype/src/base/ftmm.c \
161         ../3rdparty/freetype/src/base/fttype1.c \
162         ../3rdparty/freetype/src/base/ftsynth.c \
163         ../3rdparty/freetype/src/base/ftbitmap.c \
164         ../3rdparty/freetype/src/bdf/bdf.c \
165         ../3rdparty/freetype/src/cache/ftcache.c \
166         ../3rdparty/freetype/src/cff/cff.c \
167         ../3rdparty/freetype/src/cid/type1cid.c \
168         ../3rdparty/freetype/src/gzip/ftgzip.c \
169         ../3rdparty/freetype/src/pcf/pcf.c \
170         ../3rdparty/freetype/src/pfr/pfr.c \
171         ../3rdparty/freetype/src/psaux/psaux.c \
172         ../3rdparty/freetype/src/pshinter/pshinter.c \
173         ../3rdparty/freetype/src/psnames/psmodule.c \
174         ../3rdparty/freetype/src/raster/raster.c \
175         ../3rdparty/freetype/src/sfnt/sfnt.c \
176         ../3rdparty/freetype/src/smooth/smooth.c \
177         ../3rdparty/freetype/src/truetype/truetype.c \
178         ../3rdparty/freetype/src/type1/type1.c \
179         ../3rdparty/freetype/src/type42/type42.c \
180         ../3rdparty/freetype/src/winfonts/winfnt.c \
181         ../3rdparty/freetype/src/lzw/ftlzw.c\
182           ../3rdparty/freetype/src/otvalid/otvalid.c\
183           ../3rdparty/freetype/src/otvalid/otvbase.c\
184           ../3rdparty/freetype/src/otvalid/otvgdef.c\
185           ../3rdparty/freetype/src/otvalid/otvjstf.c\
186           ../3rdparty/freetype/src/otvalid/otvcommn.c\
187           ../3rdparty/freetype/src/otvalid/otvgpos.c\
188           ../3rdparty/freetype/src/otvalid/otvgsub.c\
189           ../3rdparty/freetype/src/otvalid/otvmod.c\
190           ../3rdparty/freetype/src/autofit/afangles.c\
191           ../3rdparty/freetype/src/autofit/afglobal.c\
192           ../3rdparty/freetype/src/autofit/aflatin.c\
193           ../3rdparty/freetype/src/autofit/afmodule.c\
194           ../3rdparty/freetype/src/autofit/afdummy.c\
195           ../3rdparty/freetype/src/autofit/afhints.c\
196           ../3rdparty/freetype/src/autofit/afloader.c\
197           ../3rdparty/freetype/src/autofit/autofit.c
198
199     symbian {
200         SOURCES += \
201             ../3rdparty/freetype/src/base/ftsystem.c
202     } else {
203         SOURCES += \
204             ../3rdparty/freetype/builds/unix/ftsystem.c
205         INCLUDEPATH += \
206             ../3rdparty/freetype/builds/unix
207     }
208
209     INCLUDEPATH += \
210         ../3rdparty/freetype/src \
211         ../3rdparty/freetype/include
212
213     DEFINES += FT2_BUILD_LIBRARY FT_CONFIG_OPTION_SYSTEM_ZLIB
214     
215 } else:contains(QT_CONFIG, system-freetype) {
216     # pull in the proper freetype2 include directory
217     include($$QT_SOURCE_TREE/config.tests/unix/freetype/freetype.pri)
218     LIBS_PRIVATE += -lfreetype
219 }
220
221 contains(QT_CONFIG, fontconfig) {
222     CONFIG += opentype
223 }
224 }#!qpa
225
226 DEFINES += QT_NO_OPENTYPE
227 INCLUDEPATH += ../3rdparty/harfbuzz/src