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