Version 5.2.6.1, tag libreoffice-5.2.6.1
[LibreOffice.git] / i18npool / CustomTarget_localedata.mk
blobc03bbbc5f8be6a4ac6a4b32c578237e9a68e4bbd
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_LD_NAMES := $(basename $(notdir $(wildcard $(SRCDIR)/i18npool/source/localedata/data/*.xml)))
14 $(eval $(call gb_CustomTarget_register_targets,i18npool/localedata,\
15 $(foreach name,$(i18npool_LD_NAMES),localedata_$(name).cxx) \
18 define i18npool_LD_RULE
19 $(call gb_CustomTarget_get_workdir,i18npool/localedata)/localedata_$(1).cxx : \
20 $(SRCDIR)/i18npool/source/localedata/data/$(1).xml \
21 $(call gb_Executable_get_runtime_dependencies,saxparser)
22 $$(call gb_Output_announce,$$(subst $(WORKDIR)/,,$$@),$(true),SAX,1)
23 $$(call gb_Helper_abbreviate_dirs, \
24 $$(call gb_Helper_print_on_error, \
25 $$(call gb_Helper_execute,saxparser) $(1) $$< $$@.tmp \
26 -env:LO_LIB_DIR=$(call gb_Helper_make_url,$(INSTROOT_FOR_BUILD)/$(LIBO_LIB_FOLDER)) \
27 -env:URE_MORE_SERVICES=$(call gb_Helper_make_url,$(call gb_Rdb_get_target_for_build,saxparser))) && \
28 sed 's/\(^.*get[^;]*$$$$\)/SAL_DLLPUBLIC_EXPORT \1/' $$@.tmp > $$@ && \
29 rm $$@.tmp)
31 endef
33 $(foreach name,$(i18npool_LD_NAMES),$(eval $(call i18npool_LD_RULE,$(name))))
35 # vim: set noet sw=4 ts=4: