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_CustomTarget_CustomTarget
,oox
/generated
))
12 oox_MISC
:= $(call gb_CustomTarget_get_workdir
,oox
/generated
)/misc
14 $(oox_MISC
)/vml-shape-types
: \
15 $(SRCDIR
)/oox
/source
/export/preset-definitions-to-shape-types.pl \
16 $(SRCDIR
)/oox
/source
/drawingml
/customshapes
/presetShapeDefinitions.xml \
17 $(SRCDIR
)/oox
/source
/export/presetTextWarpDefinitions.xml \
18 $(SRCDIR
)/oox
/CustomTarget_generated.mk
19 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),build
,PRL
,1)
21 perl
$< --vml-shape-types-data
$(filter-out $<,$^
) > $@.in_progress
2> $@.log
&& mv
$@.in_progress
$@
23 $(oox_MISC
)/oox-drawingml-adj-names
: \
24 $(SRCDIR
)/oox
/source
/export/preset-definitions-to-shape-types.pl \
25 $(SRCDIR
)/oox
/source
/drawingml
/customshapes
/presetShapeDefinitions.xml \
26 $(SRCDIR
)/oox
/source
/export/presetTextWarpDefinitions.xml \
27 $(SRCDIR
)/oox
/CustomTarget_generated.mk
28 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),build
,PRL
,1)
30 perl
$< --drawingml-adj-names-data
$(filter-out $<,$^
) > $@.in_progress
2> $@.log
&& mv
$@.in_progress
$@
32 # Generate tokens for oox
33 $(eval
$(call gb_CustomTarget_token_hash
,oox
/generated
,tokenhash.inc
,tokenhash.gperf
))
35 $(eval
$(call gb_CustomTarget_generate_tokens
,oox
/generated
,oox
,oox
/source
/token
,namespaces
,namespace
,namespaces.txt
,namespaces-strict
,namespaces.pl
))
36 $(eval
$(call gb_CustomTarget_generate_tokens
,oox
/generated
,oox
,oox
/source
/token
,properties
,property
,,,properties.pl
))
37 $(eval
$(call gb_CustomTarget_generate_tokens
,oox
/generated
,oox
,oox
/source
/token
,tokens
,token
,tokenhash.gperf
))
39 $(call gb_CustomTarget_get_target
,oox
/generated
) : \
40 $(oox_MISC
)/oox-drawingml-adj-names \
41 $(oox_MISC
)/vml-shape-types \
43 # vim: set noet sw=4 ts=4: