2012-03-31 15:25:10 +02:00
|
|
|
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
2011-07-23 11:03:35 +02:00
|
|
|
#
|
2012-06-08 16:37:20 -05:00
|
|
|
# This file is part of the LibreOffice project.
|
2011-07-23 11:03:35 +02:00
|
|
|
#
|
2012-06-08 16:37:20 -05:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2011-07-23 11:03:35 +02:00
|
|
|
#
|
|
|
|
|
2012-04-07 08:40:35 +02:00
|
|
|
$(eval $(call gb_CustomTarget_CustomTarget,writerfilter/source))
|
2012-03-31 15:25:10 +02:00
|
|
|
|
2012-05-09 23:15:42 +02:00
|
|
|
writerfilter_WORK := $(call gb_CustomTarget_get_workdir,writerfilter/source)
|
|
|
|
writerfilter_SRC := $(SRCDIR)/writerfilter/source
|
2011-11-29 18:04:42 +01:00
|
|
|
|
2014-06-10 09:08:50 +02:00
|
|
|
writerfilter_PYTHONCOMMAND := $(call gb_ExternalExecutable_get_command,python)
|
2014-08-16 17:33:42 +02:00
|
|
|
writerfilter_XMLLINTCOMMAND := $(call gb_ExternalExecutable_get_command,xmllint)
|
2012-12-02 10:51:37 +01:00
|
|
|
|
2012-06-08 16:37:20 -05:00
|
|
|
writerfilter_OOXMLNAMESPACES= \
|
|
|
|
dml-baseStylesheet \
|
|
|
|
dml-baseTypes \
|
|
|
|
dml-chartDrawing \
|
|
|
|
dml-documentProperties \
|
|
|
|
dml-graphicalObject \
|
|
|
|
dml-shape3DCamera \
|
|
|
|
dml-shape3DLighting \
|
|
|
|
dml-shape3DScene \
|
|
|
|
dml-shape3DStyles \
|
|
|
|
dml-shapeEffects \
|
|
|
|
dml-shapeGeometry \
|
|
|
|
dml-shapeLineProperties \
|
|
|
|
dml-shapeProperties \
|
|
|
|
dml-styleDefaults \
|
|
|
|
dml-stylesheet \
|
|
|
|
dml-textCharacter \
|
|
|
|
dml-wordprocessingDrawing \
|
|
|
|
shared-math \
|
|
|
|
shared-relationshipReference \
|
|
|
|
sml-customXmlMappings \
|
|
|
|
vml-main \
|
|
|
|
vml-officeDrawing \
|
|
|
|
vml-wordprocessingDrawing \
|
2014-01-27 14:14:52 +01:00
|
|
|
wp14 \
|
2014-02-18 13:37:21 +01:00
|
|
|
w14 \
|
2014-05-20 20:11:13 +02:00
|
|
|
a14 \
|
2012-06-08 16:37:20 -05:00
|
|
|
wml
|
|
|
|
|
|
|
|
writerfilter_ALL = \
|
|
|
|
$(writerfilter_GEN_ooxml_Factory_cxx) \
|
|
|
|
$(writerfilter_GEN_ooxml_Factory_hxx) \
|
|
|
|
$(writerfilter_GEN_ooxml_FactoryValues_hxx) \
|
2012-11-23 09:42:39 +00:00
|
|
|
$(writerfilter_GEN_ooxml_QNameToStr_cxx) \
|
2012-06-08 16:37:20 -05:00
|
|
|
$(writerfilter_GEN_ooxml_ResourceIds_hxx) \
|
2014-08-16 17:33:42 +02:00
|
|
|
$(writerfilter_GEN_ooxml_Model_validated) \
|
2013-02-02 15:44:30 -05:00
|
|
|
$(writerfilter_GEN_ooxml_Model_processed) \
|
2014-06-28 22:21:03 +02:00
|
|
|
$(patsubst %,$(writerfilter_WORK)/ooxml/OOXMLFactory_%.hxx,$(writerfilter_OOXMLNAMESPACES)) \
|
|
|
|
$(patsubst %,$(writerfilter_WORK)/ooxml/OOXMLFactory_%.cxx,$(writerfilter_OOXMLNAMESPACES)) \
|
2012-06-08 16:37:20 -05:00
|
|
|
|
2013-05-07 15:53:03 +02:00
|
|
|
writerfilter_DEP_ooxml_Namespaces_txt=$(call gb_CustomTarget_get_workdir,oox/generated)/misc/namespaces.txt
|
2014-06-28 22:21:03 +02:00
|
|
|
writerfilter_GEN_ooxml_FactoryValues_hxx=$(writerfilter_WORK)/ooxml/OOXMLFactory_values.hxx
|
|
|
|
writerfilter_GEN_ooxml_Factory_cxx=$(writerfilter_WORK)/ooxml/OOXMLFactory_generated.cxx
|
|
|
|
writerfilter_GEN_ooxml_Factory_hxx=$(writerfilter_WORK)/ooxml/OOXMLFactory_generated.hxx
|
2014-08-16 17:33:42 +02:00
|
|
|
writerfilter_GEN_ooxml_Model_validated=$(writerfilter_WORK)/ooxml/model.validated
|
2014-06-28 22:21:03 +02:00
|
|
|
writerfilter_GEN_ooxml_Model_processed=$(writerfilter_WORK)/ooxml/model_preprocessed.xml
|
2012-11-23 09:42:39 +00:00
|
|
|
writerfilter_GEN_ooxml_QNameToStr_cxx=$(writerfilter_WORK)/ooxml/qnametostr.cxx
|
2012-06-08 16:37:20 -05:00
|
|
|
writerfilter_GEN_ooxml_ResourceIds_hxx=$(writerfilter_WORK)/ooxml/resourceids.hxx
|
|
|
|
writerfilter_SRC_ooxml_Model=$(writerfilter_SRC)/ooxml/model.xml
|
2014-06-21 10:51:49 +02:00
|
|
|
writerfilter_SRC_ooxml_Preprocess_py=$(writerfilter_SRC)/ooxml/modelpreprocess.py
|
2014-07-05 11:04:48 +02:00
|
|
|
writerfilter_SRC_ooxml_QNameToStr_py=$(writerfilter_SRC)/ooxml/qnametostr.py
|
2014-06-25 21:16:16 +02:00
|
|
|
writerfilter_SRC_ooxml_ResourceIds_py=$(writerfilter_SRC)/ooxml/resourceids.py
|
2012-06-08 16:37:20 -05:00
|
|
|
|
2014-08-19 14:26:28 +02:00
|
|
|
$(writerfilter_GEN_ooxml_Factory_cxx) : $(writerfilter_SRC)/ooxml/factoryimpl.py $(writerfilter_DEP_ooxml_Namespaces_txt) $(writerfilter_GEN_ooxml_Model_processed)
|
2014-07-12 10:09:53 +02:00
|
|
|
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),build,PY ,1)
|
2014-08-19 14:26:28 +02:00
|
|
|
$(call gb_Helper_abbreviate_dirs, $(writerfilter_PYTHONCOMMAND) $< $(writerfilter_DEP_ooxml_Namespaces_txt) $(writerfilter_GEN_ooxml_Model_processed)) > $@
|
2011-07-23 11:03:35 +02:00
|
|
|
|
2014-06-22 16:07:51 +02:00
|
|
|
$(writerfilter_GEN_ooxml_Factory_hxx) : $(writerfilter_SRC)/ooxml/factoryinc.py $(writerfilter_GEN_ooxml_Model_processed)
|
|
|
|
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),build,PY ,1)
|
|
|
|
$(call gb_Helper_abbreviate_dirs, $(writerfilter_PYTHONCOMMAND) $< $(writerfilter_GEN_ooxml_Model_processed)) > $@
|
2011-07-23 11:03:35 +02:00
|
|
|
|
2014-08-29 16:58:03 +02:00
|
|
|
$(writerfilter_GEN_ooxml_Model_validated) : $(writerfilter_SRC)/../documentation/ooxml/model.rng $(writerfilter_SRC_ooxml_Model)
|
2014-08-16 17:33:42 +02:00
|
|
|
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),build,VAL,1)
|
|
|
|
$(call gb_Helper_abbreviate_dirs,\
|
|
|
|
$(writerfilter_XMLLINTCOMMAND) --noout --relaxng $(writerfilter_SRC)/../documentation/ooxml/model.rng $(writerfilter_SRC_ooxml_Model) > $@ 2>&1 \
|
|
|
|
|| (cat $@; false))
|
|
|
|
|
|
|
|
$(writerfilter_GEN_ooxml_Model_processed) : $(writerfilter_SRC_ooxml_Preprocess_py) $(writerfilter_DEP_ooxml_Namespaces_txt) $(writerfilter_GEN_ooxml_Model_validated)
|
2014-06-21 10:51:49 +02:00
|
|
|
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),build,PY ,1)
|
|
|
|
$(call gb_Helper_abbreviate_dirs, $(writerfilter_PYTHONCOMMAND) $(writerfilter_SRC_ooxml_Preprocess_py) $(writerfilter_DEP_ooxml_Namespaces_txt) $(writerfilter_SRC_ooxml_Model)) > $@
|
2011-07-23 11:03:35 +02:00
|
|
|
|
2014-07-05 11:04:48 +02:00
|
|
|
$(writerfilter_GEN_ooxml_QNameToStr_cxx): $(writerfilter_SRC_ooxml_QNameToStr_py) $(writerfilter_GEN_ooxml_Model_processed)
|
|
|
|
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),build,PY ,1)
|
|
|
|
$(call gb_Helper_abbreviate_dirs, $(writerfilter_PYTHONCOMMAND) $(writerfilter_SRC_ooxml_QNameToStr_py) $(writerfilter_GEN_ooxml_Model_processed)) > $@
|
2011-07-23 11:03:35 +02:00
|
|
|
|
2014-06-25 21:16:16 +02:00
|
|
|
$(writerfilter_GEN_ooxml_ResourceIds_hxx) : $(writerfilter_SRC_ooxml_ResourceIds_py) $(writerfilter_GEN_ooxml_Model_processed) | $(writerfilter_WORK)/ooxml/.dir
|
|
|
|
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),build,PY ,1)
|
|
|
|
$(call gb_Helper_abbreviate_dirs, $(writerfilter_PYTHONCOMMAND) $(writerfilter_SRC_ooxml_ResourceIds_py) $(writerfilter_GEN_ooxml_Model_processed)) > $@
|
2011-07-23 11:03:35 +02:00
|
|
|
|
2014-07-27 17:46:42 +02:00
|
|
|
$(writerfilter_WORK)/ooxml/OOXMLFactory%.cxx : $(writerfilter_SRC)/ooxml/factoryimpl_ns.py $(writerfilter_GEN_ooxml_Model_processed)
|
|
|
|
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),build,PY ,1)
|
|
|
|
$(call gb_Helper_abbreviate_dirs, $(writerfilter_PYTHONCOMMAND) $< $(writerfilter_GEN_ooxml_Model_processed) $@) > $@
|
2011-07-23 11:03:35 +02:00
|
|
|
|
2014-07-15 21:13:01 +02:00
|
|
|
$(writerfilter_WORK)/ooxml/OOXMLFactory%.hxx : $(writerfilter_SRC)/ooxml/factory_ns.py $(writerfilter_GEN_ooxml_Model_processed)
|
|
|
|
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),build,PY ,1)
|
|
|
|
$(call gb_Helper_abbreviate_dirs, $(writerfilter_PYTHONCOMMAND) $< $(writerfilter_GEN_ooxml_Model_processed) $@) > $@
|
2011-07-23 11:03:35 +02:00
|
|
|
|
|
|
|
|
2012-06-08 16:37:20 -05:00
|
|
|
$(call gb_CustomTarget_get_target,writerfilter/source) : $(writerfilter_ALL)
|
|
|
|
|
2014-08-16 17:33:42 +02:00
|
|
|
$(writerfilter_ALL) :| $(call gb_ExternalExecutable_get_dependencies,python) $(call gb_ExternalExecutable_get_dependencies,xmllint) $(writerfilter_WORK)/ooxml/.dir
|
2011-10-19 16:45:13 +02:00
|
|
|
|
2012-03-31 15:25:10 +02:00
|
|
|
# vim: set noet sw=4 ts=4:
|