sw HTML export: fix PNG export of Writer images containing metafiles
[LibreOffice.git] / oox / Library_oox.mk
blob88da558a3f8924e9e33509b8cafdcf7e1b2b2123
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 $(eval $(call gb_Library_Library,oox))
12 $(eval $(call gb_Library_set_precompiled_header,oox,oox/inc/pch/precompiled_oox))
14 $(eval $(call gb_Library_use_custom_headers,oox,oox/generated))
16 $(eval $(call gb_Library_set_include,oox,\
17 $$(INCLUDE) \
18 -I$(SRCDIR)/oox/inc \
21 ifeq ($(COM)-$(OS)-$(CPUNAME),GCC-LINUX-IA64)
22 # at least Debian Linux ia64 fails at compile time on
23 # link libooxlo.so which is apparently too large
24 # for the toolchain to handle with default optimization
25 $(eval $(call gb_Library_add_cxxflags,oox,\
26 -Os \
28 endif
30 $(eval $(call gb_Library_add_defs,oox,\
31 -DOOX_DLLIMPLEMENTATION \
34 $(eval $(call gb_Library_use_sdk_api,oox))
36 $(eval $(call gb_Library_use_api,oox,\
37 oovbaapi \
40 $(eval $(call gb_Library_use_libraries,oox,\
41 $(call gb_Helper_optional,AVMEDIA,avmedia) \
42 basegfx \
43 comphelper \
44 cppu \
45 cppuhelper \
46 editeng \
47 expwrap \
48 drawinglayer \
49 msfilter \
50 sal \
51 i18nlangtag \
52 sax \
53 sfx \
54 svl \
55 svt \
56 svx \
57 svxcore \
58 sot \
59 tl \
60 utl \
61 vcl \
62 xo \
63 xmlscript \
66 $(eval $(call gb_Library_use_externals,oox,\
67 boost_headers \
70 ifeq ($(TLS),OPENSSL)
71 $(eval $(call gb_Library_use_externals,oox,\
72 openssl \
73 openssl_headers \
75 else
76 ifeq ($(TLS),NSS)
77 $(eval $(call gb_Library_use_externals,oox,\
78 plc4 \
79 nss3 \
81 endif
82 endif
84 $(eval $(call gb_Library_set_componentfile,oox,oox/util/oox,services))
86 # WASM_CHART change
87 ifeq (,$(ENABLE_WASM_STRIP_CHART))
88 $(eval $(call gb_Library_add_exception_objects,oox,\
89 oox/source/export/chartexport \
90 oox/source/drawingml/chart/axiscontext \
91 oox/source/drawingml/chart/axisconverter \
92 oox/source/drawingml/chart/axismodel \
93 oox/source/drawingml/chart/chartcontextbase \
94 oox/source/drawingml/chart/chartconverter \
95 oox/source/drawingml/chart/chartdrawingfragment \
96 oox/source/drawingml/chart/chartspaceconverter \
97 oox/source/drawingml/chart/chartspacefragment \
98 oox/source/drawingml/chart/chartspacemodel \
99 oox/source/drawingml/chart/converterbase \
100 oox/source/drawingml/chart/datasourcecontext \
101 oox/source/drawingml/chart/datasourceconverter \
102 oox/source/drawingml/chart/datasourcemodel \
103 oox/source/drawingml/chart/datatablecontext \
104 oox/source/drawingml/chart/datatableconverter \
105 oox/source/drawingml/chart/modelbase \
106 oox/source/drawingml/chart/objectformatter \
107 oox/source/drawingml/chart/plotareacontext \
108 oox/source/drawingml/chart/plotareaconverter \
109 oox/source/drawingml/chart/plotareamodel \
110 oox/source/drawingml/chart/seriescontext \
111 oox/source/drawingml/chart/seriesconverter \
112 oox/source/drawingml/chart/seriesmodel \
113 oox/source/drawingml/chart/titlecontext \
114 oox/source/drawingml/chart/titleconverter \
115 oox/source/drawingml/chart/titlemodel \
116 oox/source/drawingml/chart/typegroupcontext \
117 oox/source/drawingml/chart/typegroupconverter \
118 oox/source/drawingml/chart/typegroupmodel \
120 endif
122 $(eval $(call gb_Library_add_exception_objects,oox,\
123 oox/source/core/binarycodec \
124 oox/source/core/contexthandler2 \
125 oox/source/core/contexthandler \
126 oox/source/core/fastparser \
127 oox/source/core/fasttokenhandler \
128 oox/source/core/filterbase \
129 oox/source/core/filterdetect \
130 oox/source/core/fragmenthandler2 \
131 oox/source/core/fragmenthandler \
132 oox/source/core/recordparser \
133 oox/source/core/relations \
134 oox/source/core/relationshandler \
135 oox/source/core/xmlfilterbase \
136 oox/source/crypto/AgileEngine \
137 oox/source/crypto/CryptTools \
138 oox/source/crypto/DocumentEncryption \
139 oox/source/crypto/DocumentDecryption \
140 oox/source/crypto/Standard2007Engine \
141 oox/source/crypto/StrongEncryptionDataSpace \
142 oox/source/docprop/docprophandler \
143 oox/source/docprop/ooxmldocpropimport \
144 oox/source/drawingml/clrschemecontext \
145 oox/source/drawingml/clrscheme \
146 oox/source/drawingml/colorchoicecontext \
147 oox/source/drawingml/connectorshapecontext \
148 oox/source/drawingml/customshapegeometry \
149 oox/source/drawingml/customshapepresetdata \
150 oox/source/drawingml/customshapeproperties \
151 oox/source/drawingml/diagram/constraintlistcontext \
152 oox/source/drawingml/diagram/datamodel \
153 oox/source/drawingml/diagram/datamodelcontext \
154 oox/source/drawingml/diagram/diagram \
155 oox/source/drawingml/diagram/diagramhelper \
156 oox/source/drawingml/diagram/diagramdefinitioncontext \
157 oox/source/drawingml/diagram/diagramfragmenthandler \
158 oox/source/drawingml/diagram/diagramlayoutatoms \
159 oox/source/drawingml/diagram/layoutatomvisitorbase \
160 oox/source/drawingml/diagram/layoutatomvisitors \
161 oox/source/drawingml/diagram/layoutnodecontext \
162 oox/source/drawingml/diagram/rulelistcontext \
163 oox/source/drawingml/drawingmltypes \
164 oox/source/drawingml/effectproperties \
165 oox/source/drawingml/effectpropertiescontext \
166 oox/source/drawingml/embeddedwavaudiofile \
167 oox/source/drawingml/fillproperties \
168 oox/source/drawingml/misccontexts \
169 oox/source/drawingml/graphicshapecontext \
170 oox/source/drawingml/guidcontext \
171 oox/source/drawingml/hyperlinkcontext \
172 oox/source/drawingml/linepropertiescontext \
173 oox/source/drawingml/lineproperties \
174 oox/source/drawingml/objectdefaultcontext \
175 oox/source/drawingml/presetgeometrynames \
176 oox/source/drawingml/scene3dcontext \
177 oox/source/drawingml/shapecontext \
178 oox/source/drawingml/shape \
179 oox/source/drawingml/shape3dproperties \
180 oox/source/drawingml/shapegroupcontext \
181 oox/source/drawingml/shapepropertiescontext \
182 oox/source/drawingml/shapepropertymap \
183 oox/source/drawingml/shapestylecontext \
184 oox/source/drawingml/spdefcontext \
185 oox/source/drawingml/table/tablebackgroundstylecontext \
186 oox/source/drawingml/table/tablecellcontext \
187 oox/source/drawingml/table/tablecell \
188 oox/source/drawingml/table/tablecontext \
189 oox/source/drawingml/table/tablepartstylecontext \
190 oox/source/drawingml/table/tableproperties \
191 oox/source/drawingml/table/tablerowcontext \
192 oox/source/drawingml/table/tablerow \
193 oox/source/drawingml/table/tablestylecellstylecontext \
194 oox/source/drawingml/table/tablestylecontext \
195 oox/source/drawingml/table/tablestyle \
196 oox/source/drawingml/table/tablestylelist \
197 oox/source/drawingml/table/tablestylelistfragmenthandler \
198 oox/source/drawingml/table/tablestylepart \
199 oox/source/drawingml/table/tablestyletextstylecontext \
200 oox/source/drawingml/textbodycontext \
201 oox/source/drawingml/textbody \
202 oox/source/drawingml/textbodypropertiescontext \
203 oox/source/drawingml/textbodyproperties \
204 oox/source/drawingml/textcharacterpropertiescontext \
205 oox/source/drawingml/textcharacterproperties \
206 oox/source/drawingml/texteffectscontext \
207 oox/source/drawingml/textfieldcontext \
208 oox/source/drawingml/textfield \
209 oox/source/drawingml/textfont \
210 oox/source/drawingml/textliststylecontext \
211 oox/source/drawingml/textliststyle \
212 oox/source/drawingml/textparagraph \
213 oox/source/drawingml/textparagraphpropertiescontext \
214 oox/source/drawingml/textparagraphproperties \
215 oox/source/drawingml/textrun \
216 oox/source/drawingml/textspacingcontext \
217 oox/source/drawingml/texttabstoplistcontext \
218 oox/source/drawingml/theme \
219 oox/source/drawingml/themeelementscontext \
220 oox/source/drawingml/themefragmenthandler \
221 oox/source/drawingml/ThemeOverrideFragmentHandler \
222 oox/source/drawingml/transform2dcontext \
223 oox/source/dump/dffdumper \
224 oox/source/dump/dumperbase \
225 oox/source/dump/oledumper \
226 oox/source/dump/pptxdumper \
227 oox/source/export/ColorPropertySet \
228 oox/source/export/drawingml \
229 oox/source/export/DMLPresetShapeExport \
230 oox/source/export/shapes \
231 oox/source/export/vmlexport \
232 oox/source/helper/attributelist \
233 oox/source/helper/binaryinputstream \
234 oox/source/helper/binaryoutputstream \
235 oox/source/helper/binarystreambase \
236 oox/source/helper/containerhelper \
237 oox/source/helper/graphichelper \
238 oox/source/helper/grabbagstack \
239 oox/source/helper/modelobjecthelper \
240 oox/source/helper/ooxresid \
241 oox/source/helper/progressbar \
242 oox/source/helper/propertymap \
243 oox/source/helper/propertyset \
244 oox/source/helper/storagebase \
245 oox/source/helper/textinputstream \
246 oox/source/helper/zipstorage \
247 oox/source/mathml/export \
248 oox/source/mathml/import \
249 oox/source/mathml/importutils \
250 oox/source/ole/axbinaryreader \
251 oox/source/ole/axbinarywriter \
252 oox/source/ole/axfontdata \
253 oox/source/ole/axcontrol \
254 oox/source/ole/axcontrolfragment \
255 oox/source/ole/olehelper \
256 oox/source/ole/oleobjecthelper \
257 oox/source/ole/olestorage \
258 oox/source/ole/vbacontrol \
259 oox/source/ole/vbaexport \
260 oox/source/ole/vbahelper \
261 oox/source/ole/vbainputstream \
262 oox/source/ole/vbamodule \
263 oox/source/ole/vbaproject \
264 oox/source/ppt/animationspersist \
265 oox/source/ppt/animationtypes \
266 oox/source/ppt/animvariantcontext \
267 oox/source/ppt/backgroundproperties \
268 oox/source/ppt/buildlistcontext \
269 oox/source/ppt/comments \
270 oox/source/ppt/commonbehaviorcontext \
271 oox/source/ppt/commontimenodecontext \
272 oox/source/ppt/conditioncontext \
273 oox/source/ppt/customshowlistcontext \
274 oox/source/ppt/headerfootercontext \
275 oox/source/ppt/layoutfragmenthandler \
276 oox/source/ppt/pptfilterhelpers \
277 oox/source/ppt/pptgraphicshapecontext \
278 oox/source/ppt/pptimport \
279 oox/source/ppt/pptshapecontext \
280 oox/source/ppt/pptshape \
281 oox/source/ppt/pptshapegroupcontext \
282 oox/source/ppt/pptshapepropertiescontext \
283 oox/source/ppt/presentationfragmenthandler \
284 oox/source/ppt/presPropsfragmenthandler \
285 oox/source/ppt/slidefragmenthandler \
286 oox/source/ppt/slidemastertextstylescontext \
287 oox/source/ppt/slidepersist \
288 oox/source/ppt/slidetimingcontext \
289 oox/source/ppt/slidetransitioncontext \
290 oox/source/ppt/slidetransition \
291 oox/source/ppt/soundactioncontext \
292 oox/source/ppt/timeanimvaluecontext \
293 oox/source/ppt/timenode \
294 oox/source/ppt/timenodelistcontext \
295 oox/source/ppt/timetargetelementcontext \
296 oox/source/ppt/extdrawingfragmenthandler \
297 oox/source/shape/LockedCanvasContext \
298 oox/source/shape/ShapeContextHandler \
299 oox/source/shape/ShapeDrawingFragmentHandler \
300 oox/source/shape/ShapeFilterBase \
301 oox/source/shape/WpgContext \
302 oox/source/shape/WpsContext \
303 oox/source/token/namespacemap \
304 oox/source/token/propertynames \
305 oox/source/token/tokenmap \
306 oox/source/token/relationship \
307 oox/source/vml/vmldrawing \
308 oox/source/vml/vmldrawingfragment \
309 oox/source/vml/vmlformatting \
310 oox/source/vml/vmlinputstream \
311 oox/source/vml/vmlshapecontainer \
312 oox/source/vml/vmlshapecontext \
313 oox/source/vml/vmlshape \
314 oox/source/vml/vmltextboxcontext \
315 oox/source/vml/vmltextbox \
318 ifeq ($(OS),iOS)
319 # Either a compiler bug in Xcode 5.1.1 or some hard-to-spot undefined
320 # behaviour in the source code... Compiling this source file with
321 # optimization causes some Smart Art images to end up with completely
322 # wrong colour, some even totally black.
323 $(eval $(call gb_Library_add_exception_objects,oox,\
324 oox/source/drawingml/color \
325 , $(gb_COMPILERNOOPTFLAGS) \
327 else
328 $(eval $(call gb_Library_add_exception_objects,oox,\
329 oox/source/drawingml/color \
331 endif
333 ifeq ($(CPUNAME),M68K)
334 $(eval $(call gb_Library_add_cxxflags,oox,\
335 -mlong-jump-table-offsets \
337 endif
339 # vim: set noet sw=4 ts=4: