xref: /aoo41x/main/svx/Library_svxcore.mk (revision 78d93489)
1#*************************************************************************
2#
3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4#
5# Copyright 2000, 2011 Oracle and/or its affiliates.
6#
7# OpenOffice.org - a multi-platform office productivity suite
8#
9# This file is part of OpenOffice.org.
10#
11# OpenOffice.org is free software: you can redistribute it and/or modify
12# it under the terms of the GNU Lesser General Public License version 3
13# only, as published by the Free Software Foundation.
14#
15# OpenOffice.org is distributed in the hope that it will be useful,
16# but WITHOUT ANY WARRANTY; without even the implied warranty of
17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18# GNU Lesser General Public License version 3 for more details
19# (a copy is included in the LICENSE file that accompanied this code).
20#
21# You should have received a copy of the GNU Lesser General Public License
22# version 3 along with OpenOffice.org.  If not, see
23# <http://www.openoffice.org/license.html>
24# for a copy of the LGPLv3 License.
25#
26#*************************************************************************
27
28$(eval $(call gb_Library_Library,svxcore))
29
30$(eval $(call gb_Library_set_componentfile,svxcore,svx/util/svxcore))
31
32$(eval $(call gb_Library_add_sdi_headers,svx,svx/sdi/svxslots))
33
34$(eval $(call gb_Library_add_package_headers,svxcore,\
35	svx_inc \
36	svx_sdi \
37))
38
39$(eval $(call gb_Library_set_include,svxcore,\
40	-I$(SRCDIR)/svx/inc \
41	-I$(SRCDIR)/svx/inc/pch \
42	-I$(SRCDIR)/svx/source/inc \
43	$$(INCLUDE) \
44	-I$(OUTDIR)/inc/offuh \
45	-I$(WORKDIR)/SdiTarget/svx/sdi \
46))
47
48#BOOST switch in customshapes
49#dialog:
50#.IF "$(GUI)"=="WNT"
51#CFLAGS+= -DUNICODE -D_UNICODE
52#.ENDIF
53
54$(eval $(call gb_Library_set_defs,svxcore,\
55	$$(DEFS) \
56	-DSVX_DLLIMPLEMENTATION \
57	-DBOOST_SPIRIT_USE_OLD_NAMESPACE \
58))
59
60$(eval $(call gb_Library_add_linked_libs,svxcore,\
61	avmedia \
62	basegfx \
63	sb \
64	comphelper \
65	cppuhelper \
66	cppu \
67	drawinglayer \
68	editeng \
69	fwe \
70	i18nisolang1 \
71	icuuc \
72	lng \
73	sal \
74	sfx \
75	sot \
76    stl \
77	svl \
78	svt \
79	tk \
80	tl \
81	ucbhelper \
82	utl \
83	vcl \
84	vos3 \
85	xo \
86    $(gb_STDLIBS) \
87))
88
89$(eval $(call gb_Library_add_exception_objects,svxcore,\
90	svx/source/core/coreservices \
91    svx/source/customshapes/EnhancedCustomShape2d \
92    svx/source/customshapes/EnhancedCustomShapeGeometry \
93    svx/source/customshapes/EnhancedCustomShapeTypeNames \
94    svx/source/dialog/checklbx \
95    svx/source/dialog/dialmgr \
96    svx/source/dialog/dlgutil \
97    svx/source/dialog/framelink \
98    svx/source/dialog/langbox \
99    svx/source/dialog/simptabl \
100    svx/source/dialog/stddlg \
101    svx/source/dialog/svxdlg \
102    svx/source/engine3d/camera3d \
103    svx/source/engine3d/cube3d \
104    svx/source/engine3d/deflt3d \
105    svx/source/engine3d/dragmt3d \
106    svx/source/engine3d/e3dsceneupdater \
107    svx/source/engine3d/e3dundo \
108    svx/source/engine3d/extrud3d \
109    svx/source/engine3d/helperhittest3d \
110    svx/source/engine3d/helperminimaldepth3d \
111    svx/source/engine3d/lathe3d \
112    svx/source/engine3d/obj3d \
113    svx/source/engine3d/objfac3d \
114    svx/source/engine3d/polygn3d \
115    svx/source/engine3d/polysc3d \
116    svx/source/engine3d/scene3d \
117    svx/source/engine3d/sphere3d \
118    svx/source/engine3d/svx3ditems \
119    svx/source/engine3d/view3d \
120    svx/source/engine3d/view3d1 \
121    svx/source/engine3d/viewpt3d2 \
122    svx/source/fmcomp/dbaexchange \
123    svx/source/fmcomp/fmgridcl \
124    svx/source/fmcomp/fmgridif \
125    svx/source/fmcomp/gridcell \
126    svx/source/fmcomp/gridcols \
127    svx/source/fmcomp/gridctrl \
128    svx/source/fmcomp/trace \
129    svx/source/fmcomp/xmlexchg \
130    svx/source/form/dataaccessdescriptor \
131    svx/source/form/datalistener \
132    svx/source/form/datanavi \
133    svx/source/form/dbtoolsclient \
134    svx/source/form/delayedevent \
135    svx/source/form/fmcontrolbordermanager \
136    svx/source/form/fmcontrollayout \
137    svx/source/form/fmdmod \
138    svx/source/form/fmdocumentclassification \
139    svx/source/form/fmdpage \
140    svx/source/form/fmexch \
141    svx/source/form/fmexpl \
142    svx/source/form/fmitems \
143    svx/source/form/fmmodel \
144    svx/source/form/fmobj \
145    svx/source/form/fmpage \
146    svx/source/form/fmpgeimp \
147    svx/source/form/fmscriptingenv \
148    svx/source/form/fmservs \
149    svx/source/form/fmshell \
150    svx/source/form/fmshimp \
151    svx/source/form/fmtextcontroldialogs \
152    svx/source/form/fmtextcontrolfeature \
153    svx/source/form/fmtextcontrolshell \
154    svx/source/form/fmtools \
155    svx/source/form/fmundo \
156    svx/source/form/fmview \
157    svx/source/form/fmvwimp \
158    svx/source/form/formcontrolfactory \
159    svx/source/form/formcontroller \
160    svx/source/form/formcontrolling \
161    svx/source/form/formdispatchinterceptor \
162    svx/source/form/formfeaturedispatcher \
163    svx/source/form/formtoolbars \
164    svx/source/form/legacyformcontroller \
165    svx/source/form/navigatortree \
166    svx/source/form/navigatortreemodel \
167    svx/source/form/ParseContext \
168    svx/source/form/sdbdatacolumn \
169    svx/source/form/sqlparserclient \
170    svx/source/form/stringlistresource \
171    svx/source/form/typeconversionclient \
172    svx/source/form/typemap \
173    svx/source/form/xfm_addcondition \
174    svx/source/gallery2/codec \
175    svx/source/gallery2/galbrws \
176    svx/source/gallery2/galbrws1 \
177    svx/source/gallery2/galbrws2 \
178    svx/source/gallery2/galctrl \
179    svx/source/gallery2/galexpl \
180    svx/source/gallery2/gallery1 \
181    svx/source/gallery2/galmisc \
182    svx/source/gallery2/galobj \
183    svx/source/gallery2/galtheme \
184    svx/source/items/chrtitem \
185    svx/source/items/clipfmtitem \
186    svx/source/items/customshapeitem \
187    svx/source/items/drawitem \
188    svx/source/items/e3ditem \
189    svx/source/items/grfitem \
190    svx/source/sdr/animation/scheduler \
191    svx/source/sdr/animation/objectanimator \
192    svx/source/sdr/animation/animationstate \
193    svx/source/sdr/attribute/sdrlinefillshadowtextattribute \
194    svx/source/sdr/attribute/sdrfilltextattribute \
195    svx/source/sdr/attribute/sdrshadowtextattribute \
196    svx/source/sdr/attribute/sdrtextattribute \
197    svx/source/sdr/attribute/sdrlineshadowtextattribute \
198    svx/source/sdr/attribute/sdrformtextattribute \
199    svx/source/sdr/attribute/sdrformtextoutlineattribute \
200    svx/source/sdr/contact/viewobjectcontactofgroup \
201    svx/source/sdr/contact/viewobjectcontactofsdrpage \
202    svx/source/sdr/contact/viewcontactofpageobj \
203    svx/source/sdr/contact/viewcontactofe3d \
204    svx/source/sdr/contact/viewcontactofe3dcube \
205    svx/source/sdr/contact/viewcontactofsdrmediaobj \
206    svx/source/sdr/contact/viewobjectcontactofmasterpagedescriptor \
207    svx/source/sdr/contact/viewobjectcontactofpageobj \
208    svx/source/sdr/contact/viewobjectcontactofe3dscene \
209    svx/source/sdr/contact/viewcontactofgraphic \
210    svx/source/sdr/contact/viewobjectcontactredirector \
211    svx/source/sdr/contact/viewcontactofsdrcircobj \
212    svx/source/sdr/contact/viewcontactofgroup \
213    svx/source/sdr/contact/viewcontactofunocontrol \
214    svx/source/sdr/contact/viewcontactofsdrobjcustomshape \
215    svx/source/sdr/contact/viewcontactofsdrobj \
216    svx/source/sdr/contact/objectcontact \
217    svx/source/sdr/contact/viewcontactoftextobj \
218    svx/source/sdr/contact/viewcontactofe3dlathe \
219    svx/source/sdr/contact/viewcontactofsdrpage \
220    svx/source/sdr/contact/viewcontactofe3dextrude \
221    svx/source/sdr/contact/viewcontactofmasterpagedescriptor \
222    svx/source/sdr/contact/viewcontact \
223    svx/source/sdr/contact/viewcontactofsdrole2obj \
224    svx/source/sdr/contact/displayinfo \
225    svx/source/sdr/contact/objectcontacttools \
226    svx/source/sdr/contact/viewcontactofe3dscene \
227    svx/source/sdr/contact/viewcontactofsdrrectobj \
228    svx/source/sdr/contact/viewobjectcontactofsdrole2obj \
229    svx/source/sdr/contact/viewobjectcontactofunocontrol \
230    svx/source/sdr/contact/viewobjectcontactofgraphic \
231    svx/source/sdr/contact/sdrmediawindow \
232    svx/source/sdr/contact/viewobjectcontactofsdrmediaobj \
233    svx/source/sdr/contact/viewcontactofsdrcaptionobj \
234    svx/source/sdr/contact/viewcontactofvirtobj \
235    svx/source/sdr/contact/viewcontactofe3dsphere \
236    svx/source/sdr/contact/viewcontactofe3dpolygon \
237    svx/source/sdr/contact/viewcontactofsdredgeobj \
238    svx/source/sdr/contact/viewobjectcontact \
239    svx/source/sdr/contact/viewobjectcontactofsdrobj \
240    svx/source/sdr/contact/objectcontactofpageview \
241    svx/source/sdr/contact/viewcontactofsdrpathobj \
242    svx/source/sdr/contact/viewcontactofsdrmeasureobj \
243    svx/source/sdr/contact/objectcontactofobjlistpainter \
244    svx/source/sdr/contact/viewobjectcontactofe3d \
245    svx/source/sdr/event/eventhandler \
246    svx/source/sdr/overlay/overlayline \
247    svx/source/sdr/overlay/overlaycrosshair \
248    svx/source/sdr/overlay/overlayrollingrectangle \
249    svx/source/sdr/overlay/overlaytriangle \
250    svx/source/sdr/overlay/overlayselection \
251    svx/source/sdr/overlay/overlayhatchrect \
252    svx/source/sdr/overlay/overlaybitmapex \
253    svx/source/sdr/overlay/overlaymanagerbuffered \
254    svx/source/sdr/overlay/overlayhelpline \
255    svx/source/sdr/overlay/overlayanimatedbitmapex \
256    svx/source/sdr/overlay/overlaypolypolygon \
257    svx/source/sdr/overlay/overlayobjectcell \
258    svx/source/sdr/overlay/overlaytools \
259    svx/source/sdr/overlay/overlayprimitive2dsequenceobject \
260    svx/source/sdr/overlay/overlayobject \
261    svx/source/sdr/overlay/overlaymanager \
262    svx/source/sdr/overlay/overlayobjectlist \
263    svx/source/sdr/primitive2d/sdrellipseprimitive2d \
264    svx/source/sdr/primitive2d/sdrprimitivetools \
265    svx/source/sdr/primitive2d/sdrtextprimitive2d \
266    svx/source/sdr/primitive2d/primitivefactory2d \
267    svx/source/sdr/primitive2d/sdrolecontentprimitive2d \
268    svx/source/sdr/primitive2d/sdrcustomshapeprimitive2d \
269    svx/source/sdr/primitive2d/sdrgrafprimitive2d \
270    svx/source/sdr/primitive2d/sdrole2primitive2d \
271    svx/source/sdr/primitive2d/sdrpathprimitive2d \
272    svx/source/sdr/primitive2d/sdrrectangleprimitive2d \
273    svx/source/sdr/primitive2d/sdrcaptionprimitive2d \
274    svx/source/sdr/primitive2d/sdrconnectorprimitive2d \
275    svx/source/sdr/primitive2d/sdrmeasureprimitive2d \
276    svx/source/sdr/primitive2d/sdrattributecreator \
277    svx/source/sdr/primitive2d/sdrdecompositiontools \
278    svx/source/sdr/primitive3d/sdrattributecreator3d \
279    svx/source/sdr/properties/pageproperties \
280    svx/source/sdr/properties/e3dsceneproperties \
281    svx/source/sdr/properties/itemsettools \
282    svx/source/sdr/properties/captionproperties \
283    svx/source/sdr/properties/e3dextrudeproperties \
284    svx/source/sdr/properties/e3dproperties \
285    svx/source/sdr/properties/measureproperties \
286    svx/source/sdr/properties/customshapeproperties \
287    svx/source/sdr/properties/rectangleproperties \
288    svx/source/sdr/properties/groupproperties \
289    svx/source/sdr/properties/properties \
290    svx/source/sdr/properties/e3dlatheproperties \
291    svx/source/sdr/properties/graphicproperties \
292    svx/source/sdr/properties/circleproperties \
293    svx/source/sdr/properties/emptyproperties \
294    svx/source/sdr/properties/e3dsphereproperties \
295    svx/source/sdr/properties/defaultproperties \
296    svx/source/sdr/properties/textproperties \
297    svx/source/sdr/properties/attributeproperties \
298    svx/source/sdr/properties/connectorproperties \
299    svx/source/sdr/properties/e3dcompoundproperties \
300    svx/source/sdr/properties/oleproperties \
301    svx/source/svdraw/charthelper \
302    svx/source/svdraw/clonelist \
303    svx/source/svdraw/gradtrns \
304    svx/source/svdraw/polypolygoneditor \
305    svx/source/svdraw/sdrcomment \
306    svx/source/svdraw/sdrhittesthelper \
307    svx/source/svdraw/sdrmasterpagedescriptor \
308    svx/source/svdraw/sdrpagewindow \
309    svx/source/svdraw/sdrpaintwindow \
310    svx/source/svdraw/selectioncontroller \
311    svx/source/svdraw/svdattr \
312    svx/source/svdraw/svdcrtv \
313    svx/source/svdraw/svddrag \
314    svx/source/svdraw/svddrgmt \
315    svx/source/svdraw/svddrgv \
316    svx/source/svdraw/svdedtv \
317    svx/source/svdraw/svdedtv1 \
318    svx/source/svdraw/svdedtv2 \
319    svx/source/svdraw/svdedxv \
320    svx/source/svdraw/svdetc \
321    svx/source/svdraw/svdfmtf \
322    svx/source/svdraw/svdglev \
323    svx/source/svdraw/svdglue \
324    svx/source/svdraw/svdhdl \
325    svx/source/svdraw/svdhlpln \
326    svx/source/svdraw/svdibrow \
327    svx/source/svdraw/svditer \
328    svx/source/svdraw/svdlayer \
329    svx/source/svdraw/svdmark \
330    svx/source/svdraw/svdmodel \
331    svx/source/svdraw/svdmrkv \
332    svx/source/svdraw/svdmrkv1 \
333    svx/source/svdraw/svdoashp \
334    svx/source/svdraw/svdoattr \
335    svx/source/svdraw/svdobj \
336    svx/source/svdraw/svdocapt \
337    svx/source/svdraw/svdocirc \
338    svx/source/svdraw/svdoedge \
339    svx/source/svdraw/svdograf \
340    svx/source/svdraw/svdogrp \
341    svx/source/svdraw/svdomeas \
342    svx/source/svdraw/svdomedia \
343    svx/source/svdraw/svdoole2 \
344    svx/source/svdraw/svdopage \
345    svx/source/svdraw/svdopath \
346    svx/source/svdraw/svdorect \
347    svx/source/svdraw/svdotext \
348    svx/source/svdraw/svdotextdecomposition \
349    svx/source/svdraw/svdotextpathdecomposition \
350    svx/source/svdraw/svdotxat \
351    svx/source/svdraw/svdotxdr \
352    svx/source/svdraw/svdotxed \
353    svx/source/svdraw/svdotxfl \
354    svx/source/svdraw/svdotxln \
355    svx/source/svdraw/svdotxtr \
356    svx/source/svdraw/svdouno \
357    svx/source/svdraw/svdoutl \
358    svx/source/svdraw/svdoutlinercache \
359    svx/source/svdraw/svdovirt \
360    svx/source/svdraw/svdpage \
361    svx/source/svdraw/svdpagv \
362    svx/source/svdraw/svdpntv \
363    svx/source/svdraw/svdpoev \
364    svx/source/svdraw/svdsnpv \
365    svx/source/svdraw/svdtext \
366    svx/source/svdraw/svdtrans \
367    svx/source/svdraw/svdundo \
368    svx/source/svdraw/svdview \
369    svx/source/svdraw/svdviter \
370    svx/source/svdraw/svdxcgv \
371    svx/source/table/cell \
372    svx/source/table/cellcursor \
373    svx/source/table/cellrange \
374    svx/source/table/propertyset \
375    svx/source/table/svdotable \
376    svx/source/table/tablecolumn \
377    svx/source/table/tablecolumns \
378    svx/source/table/tablecontroller \
379    svx/source/table/tablehandles \
380    svx/source/table/tablelayouter \
381    svx/source/table/tablemodel \
382    svx/source/table/tablerow \
383    svx/source/table/tablerows \
384    svx/source/table/tableundo \
385    svx/source/table/viewcontactoftableobj \
386    svx/source/tbxctrls/extrusioncontrols \
387    svx/source/tbxctrls/fontworkgallery \
388    svx/source/tbxctrls/tbcontrl \
389    svx/source/tbxctrls/tbxcolorupdate \
390    svx/source/toolbars/extrusionbar \
391    svx/source/toolbars/fontworkbar \
392    svx/source/unodraw/gluepts \
393    svx/source/unodraw/shapepropertynotifier \
394    svx/source/unodraw/tableshape \
395    svx/source/unodraw/unobtabl \
396    svx/source/unodraw/unodtabl \
397    svx/source/unodraw/UnoGraphicExporter \
398    svx/source/unodraw/unogtabl \
399    svx/source/unodraw/unohtabl \
400    svx/source/unodraw/unomlstr \
401    svx/source/unodraw/unomod \
402    svx/source/unodraw/unomtabl \
403    svx/source/unodraw/UnoNameItemTable \
404    svx/source/unodraw/unopage \
405    svx/source/unodraw/unoprov \
406    svx/source/unodraw/unoshap2 \
407    svx/source/unodraw/unoshap3 \
408    svx/source/unodraw/unoshap4 \
409    svx/source/unodraw/unoshape \
410    svx/source/unodraw/unoshtxt \
411    svx/source/unodraw/unottabl \
412    svx/source/unodraw/XPropertyTable \
413    svx/source/xml/xmleohlp \
414    svx/source/xml/xmlexport \
415    svx/source/xml/xmlgrhlp \
416    svx/source/xml/xmlxtexp \
417    svx/source/xml/xmlxtimp \
418    svx/source/xoutdev/xattr \
419    svx/source/xoutdev/xattr2 \
420    svx/source/xoutdev/xattrbmp \
421    svx/source/xoutdev/xexch \
422    svx/source/xoutdev/_xoutbmp \
423    svx/source/xoutdev/_xpoly \
424    svx/source/xoutdev/xpool \
425    svx/source/xoutdev/xtabbtmp \
426    svx/source/xoutdev/xtabcolr \
427    svx/source/xoutdev/xtabdash \
428    svx/source/xoutdev/xtabgrdt \
429    svx/source/xoutdev/xtabhtch \
430    svx/source/xoutdev/xtable \
431    svx/source/xoutdev/xtablend \
432))
433
434# the following source file can't be compiled with optimization by some compilers (crash or endless loop):
435# Solaris Sparc with Sun compiler, gcc on MacOSX and Linux PPC
436# the latter is currently not supported by gbuild and needs a fix here later
437ifeq ($(OS),$(filter-out SOLARIS MACOSX,$(OS)))
438$(eval $(call gb_Library_add_exception_objects,svxcore,\
439    svx/source/customshapes/EnhancedCustomShapeFunctionParser \
440))
441else
442$(eval $(call gb_Library_add_cxxobjects,svxcore,\
443    svx/source/customshapes/EnhancedCustomShapeFunctionParser \
444    , $(gb_COMPILERNOOPTFLAGS) $(gb_LinkTarget_EXCEPTIONFLAGS) \
445))
446endif
447
448$(eval $(call gb_SdiTarget_SdiTarget,svx/sdi/svxslots,svx/sdi/svx))
449
450$(eval $(call gb_SdiTarget_set_include,svx/sdi/svxslots,\
451	$$(INCLUDE) \
452	-I$(SRCDIR)/svx/inc \
453	-I$(SRCDIR)/svx/sdi \
454))
455
456# vim: set noet sw=4 ts=4:
457