2011-08-09 12:12:48 -05:00
|
|
|
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
2011-04-13 01:49:10 -05:00
|
|
|
# Version: MPL 1.1 / GPLv3+ / LGPLv3+
|
2011-03-07 06:07:44 -06:00
|
|
|
#
|
2011-04-13 01:49:10 -05:00
|
|
|
# The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
# 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
# the License or as specified alternatively below. You may obtain a copy of
|
|
|
|
# the License at http://www.mozilla.org/MPL/
|
2011-03-07 06:07:44 -06:00
|
|
|
#
|
2011-04-13 01:49:10 -05:00
|
|
|
# Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
# for the specific language governing rights and limitations under the
|
|
|
|
# License.
|
2011-03-07 06:07:44 -06:00
|
|
|
#
|
2011-04-13 01:49:10 -05:00
|
|
|
# Major Contributor(s):
|
2011-12-06 15:15:10 -06:00
|
|
|
# Copyright (C) 2010 Red Hat, Inc., David Tardon <dtardon@redhat.com>
|
|
|
|
# (initial developer)
|
|
|
|
#
|
|
|
|
# All Rights Reserved.
|
2011-03-07 06:07:44 -06:00
|
|
|
#
|
2011-04-13 01:49:10 -05:00
|
|
|
# For minor contributions see the git repository.
|
2011-03-07 06:07:44 -06:00
|
|
|
#
|
2011-04-13 01:49:10 -05:00
|
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
|
|
# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
|
|
|
|
# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
|
|
|
|
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
|
|
|
|
# instead of those above.
|
2011-03-07 06:07:44 -06:00
|
|
|
|
|
|
|
$(eval $(call gb_Library_Library,oox))
|
|
|
|
|
2011-04-13 01:49:10 -05:00
|
|
|
$(eval $(call gb_Library_add_package_headers,oox,\
|
|
|
|
oox_inc \
|
2011-08-11 23:10:40 -05:00
|
|
|
oox_generated \
|
|
|
|
oox_source \
|
|
|
|
oox_tokens \
|
2011-04-13 01:49:10 -05:00
|
|
|
))
|
2011-03-07 06:07:44 -06:00
|
|
|
|
|
|
|
$(eval $(call gb_Library_set_include,oox,\
|
2011-04-13 01:49:10 -05:00
|
|
|
$$(INCLUDE) \
|
2012-03-05 12:02:10 -06:00
|
|
|
-I$(SRCDIR)/oox/inc \
|
2011-03-07 06:07:44 -06:00
|
|
|
))
|
|
|
|
|
2012-01-31 16:09:32 -06:00
|
|
|
ifeq ($(COM)-$(OS)-$(CPUNAME),GCC-LINUX-IA64)
|
2012-01-31 16:57:37 -06:00
|
|
|
# at least Debian Linux ia64 fails at compile time on
|
|
|
|
# link libooxlo.so which is apparently too large
|
|
|
|
# for the toolchain to handle with default optimization
|
2012-01-31 14:09:48 -06:00
|
|
|
$(eval $(call gb_Library_add_cxxflags,oox,\
|
|
|
|
-Os \
|
|
|
|
))
|
2012-01-31 14:26:50 -06:00
|
|
|
endif
|
2012-01-31 14:09:48 -06:00
|
|
|
|
2011-04-15 12:27:06 -05:00
|
|
|
$(eval $(call gb_Library_add_defs,oox,\
|
2011-04-13 01:49:10 -05:00
|
|
|
-DOOX_DLLIMPLEMENTATION \
|
2011-03-07 06:07:44 -06:00
|
|
|
))
|
|
|
|
|
2011-05-30 11:47:54 -05:00
|
|
|
$(eval $(call gb_Library_add_api,oox,\
|
|
|
|
offapi \
|
|
|
|
udkapi \
|
|
|
|
))
|
|
|
|
|
2011-03-07 06:07:44 -06:00
|
|
|
$(eval $(call gb_Library_add_linked_libs,oox,\
|
2011-04-13 01:49:10 -05:00
|
|
|
basegfx \
|
|
|
|
comphelper \
|
|
|
|
cppu \
|
|
|
|
cppuhelper \
|
|
|
|
msfilter \
|
|
|
|
sal \
|
|
|
|
sax \
|
2012-03-07 03:41:12 -06:00
|
|
|
sfx \
|
2011-04-13 01:49:10 -05:00
|
|
|
svl \
|
|
|
|
svt \
|
|
|
|
svxcore \
|
2011-09-23 11:31:46 -05:00
|
|
|
sot \
|
2011-04-13 01:49:10 -05:00
|
|
|
tl \
|
|
|
|
utl \
|
|
|
|
vcl \
|
|
|
|
xo \
|
|
|
|
xcr \
|
|
|
|
$(gb_STDLIBS) \
|
2011-03-07 06:07:44 -06:00
|
|
|
))
|
|
|
|
|
2011-06-20 07:45:33 -05:00
|
|
|
$(eval $(call gb_Library_use_external,oox,openssl))
|
2011-04-13 01:49:10 -05:00
|
|
|
|
|
|
|
$(eval $(call gb_Library_set_componentfile,oox,oox/util/oox))
|
2011-03-07 06:07:44 -06:00
|
|
|
|
|
|
|
$(eval $(call gb_Library_add_exception_objects,oox,\
|
2011-04-13 01:49:10 -05:00
|
|
|
oox/source/core/binarycodec \
|
|
|
|
oox/source/core/binaryfilterbase \
|
|
|
|
oox/source/core/contexthandler2 \
|
|
|
|
oox/source/core/contexthandler \
|
|
|
|
oox/source/core/fastparser \
|
|
|
|
oox/source/core/fasttokenhandler \
|
|
|
|
oox/source/core/filterbase \
|
|
|
|
oox/source/core/filterdetect \
|
|
|
|
oox/source/core/fragmenthandler2 \
|
|
|
|
oox/source/core/fragmenthandler \
|
|
|
|
oox/source/core/recordparser \
|
|
|
|
oox/source/core/relations \
|
|
|
|
oox/source/core/relationshandler \
|
|
|
|
oox/source/core/services \
|
|
|
|
oox/source/core/xmlfilterbase \
|
|
|
|
oox/source/docprop/docprophandler \
|
|
|
|
oox/source/docprop/ooxmldocpropimport \
|
|
|
|
oox/source/drawingml/chart/axiscontext \
|
|
|
|
oox/source/drawingml/chart/axisconverter \
|
|
|
|
oox/source/drawingml/chart/axismodel \
|
|
|
|
oox/source/drawingml/chart/chartcontextbase \
|
|
|
|
oox/source/drawingml/chart/chartconverter \
|
|
|
|
oox/source/drawingml/chart/chartdrawingfragment \
|
|
|
|
oox/source/drawingml/chart/chartspaceconverter \
|
|
|
|
oox/source/drawingml/chart/chartspacefragment \
|
|
|
|
oox/source/drawingml/chart/chartspacemodel \
|
|
|
|
oox/source/drawingml/chart/converterbase \
|
|
|
|
oox/source/drawingml/chart/datasourcecontext \
|
|
|
|
oox/source/drawingml/chart/datasourceconverter \
|
|
|
|
oox/source/drawingml/chart/datasourcemodel \
|
|
|
|
oox/source/drawingml/chart/modelbase \
|
|
|
|
oox/source/drawingml/chart/objectformatter \
|
|
|
|
oox/source/drawingml/chart/plotareacontext \
|
|
|
|
oox/source/drawingml/chart/plotareaconverter \
|
|
|
|
oox/source/drawingml/chart/plotareamodel \
|
|
|
|
oox/source/drawingml/chart/seriescontext \
|
|
|
|
oox/source/drawingml/chart/seriesconverter \
|
|
|
|
oox/source/drawingml/chart/seriesmodel \
|
|
|
|
oox/source/drawingml/chart/titlecontext \
|
|
|
|
oox/source/drawingml/chart/titleconverter \
|
|
|
|
oox/source/drawingml/chart/titlemodel \
|
|
|
|
oox/source/drawingml/chart/typegroupcontext \
|
|
|
|
oox/source/drawingml/chart/typegroupconverter \
|
|
|
|
oox/source/drawingml/chart/typegroupmodel \
|
|
|
|
oox/source/drawingml/clrschemecontext \
|
|
|
|
oox/source/drawingml/clrscheme \
|
|
|
|
oox/source/drawingml/colorchoicecontext \
|
|
|
|
oox/source/drawingml/color \
|
|
|
|
oox/source/drawingml/connectorshapecontext \
|
|
|
|
oox/source/drawingml/customshapegeometry \
|
2011-10-06 08:08:23 -05:00
|
|
|
oox/source/drawingml/customshapepresets1 \
|
|
|
|
oox/source/drawingml/customshapepresets2 \
|
|
|
|
oox/source/drawingml/customshapepresets3 \
|
|
|
|
oox/source/drawingml/customshapepresets4 \
|
|
|
|
oox/source/drawingml/customshapepresets5 \
|
|
|
|
oox/source/drawingml/customshapepresets6 \
|
2011-04-13 01:49:10 -05:00
|
|
|
oox/source/drawingml/customshapeproperties \
|
2011-08-12 08:53:12 -05:00
|
|
|
oox/source/drawingml/diagram/constraintlistcontext \
|
2011-04-13 01:49:10 -05:00
|
|
|
oox/source/drawingml/diagram/datamodelcontext \
|
|
|
|
oox/source/drawingml/diagram/diagram \
|
|
|
|
oox/source/drawingml/diagram/diagramdefinitioncontext \
|
|
|
|
oox/source/drawingml/diagram/diagramfragmenthandler \
|
|
|
|
oox/source/drawingml/diagram/diagramlayoutatoms \
|
|
|
|
oox/source/drawingml/diagram/layoutnodecontext \
|
|
|
|
oox/source/drawingml/drawingmltypes \
|
|
|
|
oox/source/drawingml/embeddedwavaudiofile \
|
|
|
|
oox/source/drawingml/fillproperties \
|
|
|
|
oox/source/drawingml/fillpropertiesgroupcontext \
|
|
|
|
oox/source/drawingml/graphicshapecontext \
|
|
|
|
oox/source/drawingml/guidcontext \
|
|
|
|
oox/source/drawingml/hyperlinkcontext \
|
|
|
|
oox/source/drawingml/linepropertiescontext \
|
|
|
|
oox/source/drawingml/lineproperties \
|
|
|
|
oox/source/drawingml/objectdefaultcontext \
|
|
|
|
oox/source/drawingml/shapecontext \
|
|
|
|
oox/source/drawingml/shape \
|
2011-08-12 08:53:12 -05:00
|
|
|
oox/source/drawingml/shape3dproperties \
|
2011-04-13 01:49:10 -05:00
|
|
|
oox/source/drawingml/shapegroupcontext \
|
|
|
|
oox/source/drawingml/shapepropertiescontext \
|
2011-05-27 13:45:30 -05:00
|
|
|
oox/source/drawingml/shapepropertymap \
|
2011-04-13 01:49:10 -05:00
|
|
|
oox/source/drawingml/shapestylecontext \
|
|
|
|
oox/source/drawingml/spdefcontext \
|
|
|
|
oox/source/drawingml/table/tablebackgroundstylecontext \
|
|
|
|
oox/source/drawingml/table/tablecellcontext \
|
|
|
|
oox/source/drawingml/table/tablecell \
|
|
|
|
oox/source/drawingml/table/tablecontext \
|
|
|
|
oox/source/drawingml/table/tablepartstylecontext \
|
|
|
|
oox/source/drawingml/table/tableproperties \
|
|
|
|
oox/source/drawingml/table/tablerowcontext \
|
|
|
|
oox/source/drawingml/table/tablerow \
|
|
|
|
oox/source/drawingml/table/tablestylecellstylecontext \
|
|
|
|
oox/source/drawingml/table/tablestylecontext \
|
|
|
|
oox/source/drawingml/table/tablestyle \
|
|
|
|
oox/source/drawingml/table/tablestylelist \
|
|
|
|
oox/source/drawingml/table/tablestylelistfragmenthandler \
|
|
|
|
oox/source/drawingml/table/tablestylepart \
|
|
|
|
oox/source/drawingml/table/tablestyletextstylecontext \
|
|
|
|
oox/source/drawingml/textbodycontext \
|
|
|
|
oox/source/drawingml/textbody \
|
|
|
|
oox/source/drawingml/textbodypropertiescontext \
|
|
|
|
oox/source/drawingml/textbodyproperties \
|
|
|
|
oox/source/drawingml/textcharacterpropertiescontext \
|
|
|
|
oox/source/drawingml/textcharacterproperties \
|
|
|
|
oox/source/drawingml/textfieldcontext \
|
|
|
|
oox/source/drawingml/textfield \
|
|
|
|
oox/source/drawingml/textfont \
|
|
|
|
oox/source/drawingml/textliststylecontext \
|
|
|
|
oox/source/drawingml/textliststyle \
|
|
|
|
oox/source/drawingml/textparagraph \
|
|
|
|
oox/source/drawingml/textparagraphpropertiescontext \
|
|
|
|
oox/source/drawingml/textparagraphproperties \
|
|
|
|
oox/source/drawingml/textrun \
|
|
|
|
oox/source/drawingml/textspacingcontext \
|
|
|
|
oox/source/drawingml/texttabstoplistcontext \
|
|
|
|
oox/source/drawingml/theme \
|
|
|
|
oox/source/drawingml/themeelementscontext \
|
|
|
|
oox/source/drawingml/themefragmenthandler \
|
|
|
|
oox/source/drawingml/transform2dcontext \
|
|
|
|
oox/source/dump/dffdumper \
|
|
|
|
oox/source/dump/dumperbase \
|
|
|
|
oox/source/dump/oledumper \
|
|
|
|
oox/source/dump/pptxdumper \
|
|
|
|
oox/source/export/chartexport \
|
|
|
|
oox/source/export/ColorPropertySet \
|
|
|
|
oox/source/export/drawingml \
|
|
|
|
oox/source/export/SchXMLSeriesHelper \
|
|
|
|
oox/source/export/shapes \
|
|
|
|
oox/source/export/vmlexport \
|
|
|
|
oox/source/helper/attributelist \
|
|
|
|
oox/source/helper/binaryinputstream \
|
|
|
|
oox/source/helper/binaryoutputstream \
|
|
|
|
oox/source/helper/binarystreambase \
|
|
|
|
oox/source/helper/containerhelper \
|
|
|
|
oox/source/helper/graphichelper \
|
|
|
|
oox/source/helper/modelobjecthelper \
|
|
|
|
oox/source/helper/progressbar \
|
|
|
|
oox/source/helper/propertymap \
|
|
|
|
oox/source/helper/propertyset \
|
|
|
|
oox/source/helper/storagebase \
|
|
|
|
oox/source/helper/textinputstream \
|
|
|
|
oox/source/helper/zipstorage \
|
2011-11-18 14:06:54 -06:00
|
|
|
oox/source/mathml/export \
|
|
|
|
oox/source/mathml/import \
|
|
|
|
oox/source/mathml/importutils \
|
2011-04-13 01:49:10 -05:00
|
|
|
oox/source/ole/axbinaryreader \
|
2011-09-23 11:31:46 -05:00
|
|
|
oox/source/ole/axbinarywriter \
|
|
|
|
oox/source/ole/axfontdata \
|
2011-04-13 01:49:10 -05:00
|
|
|
oox/source/ole/axcontrol \
|
|
|
|
oox/source/ole/axcontrolfragment \
|
|
|
|
oox/source/ole/olehelper \
|
|
|
|
oox/source/ole/oleobjecthelper \
|
|
|
|
oox/source/ole/olestorage \
|
|
|
|
oox/source/ole/vbacontrol \
|
|
|
|
oox/source/ole/vbahelper \
|
|
|
|
oox/source/ole/vbainputstream \
|
|
|
|
oox/source/ole/vbamodule \
|
|
|
|
oox/source/ole/vbaproject \
|
|
|
|
oox/source/ppt/animationspersist \
|
|
|
|
oox/source/ppt/animationtypes \
|
|
|
|
oox/source/ppt/animvariantcontext \
|
|
|
|
oox/source/ppt/backgroundproperties \
|
|
|
|
oox/source/ppt/buildlistcontext \
|
|
|
|
oox/source/ppt/commonbehaviorcontext \
|
|
|
|
oox/source/ppt/commontimenodecontext \
|
|
|
|
oox/source/ppt/conditioncontext \
|
|
|
|
oox/source/ppt/customshowlistcontext \
|
2011-08-12 08:53:12 -05:00
|
|
|
oox/source/ppt/dgmimport \
|
|
|
|
oox/source/ppt/dgmlayout \
|
2011-04-13 01:49:10 -05:00
|
|
|
oox/source/ppt/headerfootercontext \
|
|
|
|
oox/source/ppt/layoutfragmenthandler \
|
|
|
|
oox/source/ppt/pptfilterhelpers \
|
|
|
|
oox/source/ppt/pptgraphicshapecontext \
|
|
|
|
oox/source/ppt/pptimport \
|
|
|
|
oox/source/ppt/pptshapecontext \
|
|
|
|
oox/source/ppt/pptshape \
|
|
|
|
oox/source/ppt/pptshapegroupcontext \
|
|
|
|
oox/source/ppt/pptshapepropertiescontext \
|
|
|
|
oox/source/ppt/presentationfragmenthandler \
|
|
|
|
oox/source/ppt/slidefragmenthandler \
|
|
|
|
oox/source/ppt/slidemastertextstylescontext \
|
|
|
|
oox/source/ppt/slidepersist \
|
|
|
|
oox/source/ppt/slidetimingcontext \
|
|
|
|
oox/source/ppt/slidetransitioncontext \
|
|
|
|
oox/source/ppt/slidetransition \
|
|
|
|
oox/source/ppt/soundactioncontext \
|
|
|
|
oox/source/ppt/timeanimvaluecontext \
|
|
|
|
oox/source/ppt/timenode \
|
|
|
|
oox/source/ppt/timenodelistcontext \
|
|
|
|
oox/source/ppt/timetargetelementcontext \
|
2011-12-30 04:39:42 -06:00
|
|
|
oox/source/ppt/extdrawingfragmenthandler \
|
2011-04-13 01:49:10 -05:00
|
|
|
oox/source/shape/ShapeContextHandler \
|
|
|
|
oox/source/shape/ShapeFilterBase \
|
|
|
|
oox/source/token/namespacemap \
|
|
|
|
oox/source/token/propertynames \
|
|
|
|
oox/source/token/tokenmap \
|
|
|
|
oox/source/vml/vmldrawing \
|
|
|
|
oox/source/vml/vmldrawingfragment \
|
|
|
|
oox/source/vml/vmlformatting \
|
|
|
|
oox/source/vml/vmlinputstream \
|
|
|
|
oox/source/vml/vmlshapecontainer \
|
|
|
|
oox/source/vml/vmlshapecontext \
|
|
|
|
oox/source/vml/vmlshape \
|
|
|
|
oox/source/vml/vmltextboxcontext \
|
|
|
|
oox/source/vml/vmltextbox \
|
2011-03-07 06:07:44 -06:00
|
|
|
))
|
|
|
|
|
2011-04-13 01:49:10 -05:00
|
|
|
$(eval $(call gb_Library_add_generated_exception_objects,oox,\
|
|
|
|
oox/source/export/vmlexport-shape-types \
|
|
|
|
))
|
|
|
|
|
|
|
|
$(call gb_GenCxxObject_get_source,oox/source/export/vmlexport-shape-types) : $(SRCDIR)/oox/source/export/preset-definitions-to-shape-types.pl $(SRCDIR)/oox/source/export/presetShapeDefinitions.xml $(SRCDIR)/oox/source/export/presetTextWarpDefinitions.xml
|
|
|
|
mkdir -p $(dir $@)
|
|
|
|
perl $^ > $@.in_progress 2> $@.log && mv $@.in_progress $@
|
|
|
|
|
|
|
|
oox_SRC := $(SRCDIR)/oox/source/token
|
|
|
|
oox_MISC := $(WORKDIR)/oox/misc
|
|
|
|
oox_INC := $(WORKDIR)/oox/inc
|
|
|
|
oox_GENHEADERPATH := $(oox_INC)/oox/token
|
|
|
|
|
|
|
|
# these three generated headers are included from just about everywhere--might
|
|
|
|
# just as well make them before everything else...
|
|
|
|
$(call gb_Package_get_target,oox_inc) : $(oox_GENHEADERPATH)/namespaces.hxx
|
|
|
|
$(call gb_Package_get_target,oox_inc) : $(oox_GENHEADERPATH)/properties.hxx
|
|
|
|
$(call gb_Package_get_target,oox_inc) : $(oox_GENHEADERPATH)/tokens.hxx
|
2011-08-11 23:10:40 -05:00
|
|
|
$(call gb_Package_get_target,oox_inc) : $(call gb_Package_get_target,oox_source)
|
|
|
|
$(call gb_Package_get_target,oox_inc) : $(call gb_Package_get_target,oox_generated)
|
|
|
|
|
|
|
|
|
2011-04-13 01:49:10 -05:00
|
|
|
|
|
|
|
$(call gb_CxxObject_get_target,oox/source/token/tokenmap) : $(oox_INC)/tokenhash.inc
|
|
|
|
|
|
|
|
$(eval $(call gb_Library_set_include,oox,\
|
|
|
|
$$(INCLUDE) \
|
|
|
|
-I$(oox_INC) \
|
|
|
|
))
|
|
|
|
|
|
|
|
$(oox_INC)/tokenhash.inc : $(oox_MISC)/tokenhash.gperf
|
2012-01-23 04:09:39 -06:00
|
|
|
$(GPERF) --compare-strncmp $< | sed -e 's/(char\*)0/(char\*)0, 0/g' | grep -v '^#line' > $@
|
2011-04-13 01:49:10 -05:00
|
|
|
|
|
|
|
oox_GenTarget_get_target = $(oox_MISC)/$(1)
|
|
|
|
|
|
|
|
define oox_GenTarget_GenTarget
|
|
|
|
$(oox_GENHEADERPATH)/$(1).hxx $(oox_MISC)/$(2)ids.inc $(oox_INC)/$(2)names.inc $(if $(3),$(oox_MISC)/$(3)) : $(call oox_GenTarget_get_target,$(1))
|
|
|
|
$(call oox_GenTarget_get_target,$(1)) : $(oox_SRC)/$(1).pl $(oox_SRC)/$(1).txt $(oox_SRC)/$(1).hxx.head $(oox_SRC)/$(1).hxx.tail
|
|
|
|
mkdir -p $(oox_MISC) $(oox_INC) $(oox_GENHEADERPATH)
|
|
|
|
perl $(oox_SRC)/$(1).pl $(oox_SRC)/$(1).txt $(oox_MISC)/$(2)ids.inc $(oox_INC)/$(2)names.inc $(if $(3),$(oox_MISC)/$(3)) \
|
|
|
|
&& cat $(oox_SRC)/$(1).hxx.head $(oox_MISC)/$(2)ids.inc $(oox_SRC)/$(1).hxx.tail > $(oox_GENHEADERPATH)/$(1).hxx \
|
|
|
|
&& touch $$@
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call oox_GenTarget_GenTarget,namespaces,namespace,namespaces.txt))
|
|
|
|
$(eval $(call oox_GenTarget_GenTarget,properties,property,))
|
|
|
|
$(eval $(call oox_GenTarget_GenTarget,tokens,token,tokenhash.gperf))
|
|
|
|
|
|
|
|
$(call gb_Library_get_clean_target,oox) : oox_clean
|
2011-04-13 09:07:41 -05:00
|
|
|
|
2011-04-13 01:49:10 -05:00
|
|
|
oox_clean :
|
|
|
|
rm -rf $(WORKDIR)/oox
|
2011-04-14 07:47:30 -05:00
|
|
|
.PHONY: oox_clean
|
2011-04-13 01:49:10 -05:00
|
|
|
|
2011-07-30 15:01:51 -05:00
|
|
|
# vim: set noet sw=4 ts=4:
|