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_Trace_StartRange
,$$(subst $(WORKDIR
)/,,$$@
),SAX
)
24 $$(call gb_Helper_abbreviate_dirs
, \
25 $$(call gb_Helper_print_on_error
, \
26 $$(call gb_Helper_execute
,saxparser
) $(1) $$< $$@.tmp \
27 -env
:LO_LIB_DIR
=$(call gb_Helper_make_url
,$(INSTROOT_FOR_BUILD
)/$(LIBO_LIB_FOLDER
)) \
28 -env
:URE_MORE_SERVICES
=$(call gb_Helper_make_url
,$(call gb_Rdb_get_target_for_build
,saxparser
))) && \
29 sed
's/\(^.*get[^;]*$$$$\)/SAL_DLLPUBLIC_EXPORT \1/' $$@.tmp
> $$@
&& \
31 $$(call gb_Trace_EndRange
,$$(subst $(WORKDIR
)/,,$$@
),SAX
)
35 $(foreach name
,$(i18npool_LD_NAMES
),$(eval
$(call i18npool_LD_RULE
,$(name
))))
37 # vim: set noet sw=4 ts=4: