Bump version to 4.1-6
[LibreOffice.git] / i18npool / CustomTarget_localedata.mk
blob7e8774c77b8b87fcce89b093956ea31e0664bb91
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,i18npool/localedata))
12 i18npool_LDDIR := $(call gb_CustomTarget_get_workdir,i18npool/localedata)
14 i18npool_LD_NAMES := $(basename $(notdir $(wildcard $(SRCDIR)/i18npool/source/localedata/data/*.xml)))
16 $(call gb_CustomTarget_get_target,i18npool/localedata) : \
17 $(foreach name,$(i18npool_LD_NAMES),$(i18npool_LDDIR)/localedata_$(name).cxx)
19 define i18npool_LD_RULE
20 $(i18npool_LDDIR)/localedata_$(1).cxx : \
21 $(SRCDIR)/i18npool/source/localedata/data/$(1).xml \
22 $(i18npool_LDDIR)/saxparser.rdb \
23 | $(call gb_Executable_get_runtime_dependencies,saxparser)
24 $$(call gb_Output_announce,$$(subst $(WORKDIR)/,,$$@),$(true),SAX,1)
25 $$(call gb_Helper_abbreviate_dirs, \
26 $(call gb_Helper_execute,saxparser) $(1) $$< $$@.tmp \
27 $(call gb_Helper_make_url,$(i18npool_LDDIR)/saxparser.rdb) \
28 -env:LO_LIB_DIR=$(call gb_Helper_make_url,$(gb_Helper_OUTDIR_FOR_BUILDLIBDIR) \
29 -env:URE_MORE_SERVICES=$(call gb_Helper_make_url,$(i18npool_LDDIR)/saxparser.rdb)) \
30 $(if $(findstring s,$(MAKEFLAGS)),> /dev/null 2>&1) && \
31 sed 's/\(^.*get[^;]*$$$$\)/SAL_DLLPUBLIC_EXPORT \1/' $$@.tmp > $$@ && \
32 rm $$@.tmp)
34 endef
36 $(foreach name,$(i18npool_LD_NAMES),$(eval $(call i18npool_LD_RULE,$(name))))
38 $(i18npool_LDDIR)/saxparser.rdb : $(i18npool_LDDIR)/saxparser.input \
39 $(SOLARENV)/bin/packcomponents.xslt \
40 | $(call gb_ExternalExecutable_get_dependencies,xsltproc)
41 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),RDB,1)
42 $(call gb_Helper_abbreviate_dirs, \
43 $(call gb_ExternalExecutable_get_command,xsltproc) --nonet --stringparam prefix $(OUTDIR_FOR_BUILD)/xml/ \
44 -o $@ $(SOLARENV)/bin/packcomponents.xslt $<)
46 $(i18npool_LDDIR)/saxparser.input : $(call gb_ComponentTarget_get_outdir_target,sax/source/expatwrap/expwrap) | $(i18npool_LDDIR)/.dir
47 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),ECH,1)
48 echo '<list><filename>component/sax/source/expatwrap/expwrap.component</filename></list>' > $@
50 # vim: set noet sw=4 ts=4: