remove obsolete -single_module linker flag (is the default)
[LibreOffice.git] / officecfg / CustomTarget_registry.mk
blob55548e1ffe89ffc499d083503563949698f9c41a
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,officecfg/registry))
12 $(call gb_CustomTarget_get_target,officecfg/registry) : \
13 $(foreach i,officecfg_qa_allheaders $(officecfg_XCSFILES),\
14 $(call gb_CustomTarget_get_workdir,officecfg/registry)/officecfg/$(i).hxx)
16 # via define so it can end with a newline
17 define officecfg_geninclude
18 #include <officecfg/$(1).hxx>
20 endef
22 # auto generated header file for unit test qa/cppheader.cxx
23 $(call gb_CustomTarget_get_workdir,officecfg/registry)/officecfg/officecfg_qa_allheaders.hxx: \
24 $(SRCDIR)/officecfg/files.mk
25 $(call gb_Output_announce,officecfg_qa_allheaders.hxx,$(true),CAT,1)
26 $(call gb_Trace_StartRange,officecfg_qa_allheaders.hxx,CAT)
27 $(shell mkdir -p $(dir $@))
28 $(file >$@,$(foreach file,$(officecfg_XCSFILES),$(call officecfg_geninclude,$(file))))
29 $(call gb_Trace_EndRange,officecfg_qa_allheaders.hxx,CAT)
31 # pass the stem as space separated path elements and get a set of --stringparam ns<level> <element> in return
32 officecfg_xsltparams=$(if $(filter-out $(lastword $1),$1),$(call officecfg_xsltparams,$(filter-out $(lastword $1),$1))) --stringparam ns$(words $1) $(lastword $1)
34 $(call gb_CustomTarget_get_workdir,officecfg/registry)/officecfg/%.hxx: \
35 $(SRCDIR)/officecfg/registry/schema/org/openoffice/%.xcs \
36 $(SRCDIR)/officecfg/registry/cppheader.xsl\
37 | $(call gb_ExternalExecutable_get_dependencies,xsltproc)
38 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),XSL,1)
39 $(call gb_Trace_StartRange,$(subst $(WORKDIR)/,,$@),XSL)
40 $(call gb_Helper_abbreviate_dirs, \
41 mkdir -p $(dir $@) && \
42 $(call gb_ExternalExecutable_get_command,xsltproc) --nonet $(call officecfg_xsltparams,$(subst /, ,$*)) \
43 -o $@ $(SRCDIR)/officecfg/registry/cppheader.xsl $<)
44 $(call gb_Trace_EndRange,$(subst $(WORKDIR)/,,$@),XSL)
46 # vim: set noet sw=4 ts=4: