Use MsLangId::getConfiguredSystemUILanguage()
[LibreOffice.git] / solenv / gbuild / Rdb.mk
blob337fcc858a3d38f61865f25e29ed232bac32ce02
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 gb_Rdb__get_install_target = $(INSTROOT)/$(LIBO_ETC_FOLDER)/services/$(1).rdb
12 define gb_Rdb__command
13 $(call gb_Helper_abbreviate_dirs,\
14 RESPONSEFILE=$(call var2file,$(shell $(call gb_MKTEMP)),70,\
15 <list> \
16 $(foreach component,$(COMPONENTS),\
17 <filename>$(call gb_ComponentTarget_get_target,$(component))</filename>) \
18 </list>) && \
19 mkdir -p $(dir $@) && \
20 $(call gb_ExternalExecutable_get_command,xsltproc) --nonet -o $(1) \
21 $(SRCDIR)/solenv/bin/packcomponents.xslt $$RESPONSEFILE && \
22 rm $$RESPONSEFILE)
23 endef
25 $(call gb_Rdb_get_target,%) :| $(call gb_ExternalExecutable_get_dependencies,xsltproc)
26 $(call gb_Output_announce,$*,$(true),RDB,1)
27 $(call gb_Trace_StartRange,$*,RDB)
28 $(call gb_Rdb__command,$@,$*,$?,$^)
29 $(call gb_Trace_EndRange,$*,RDB)
31 .PHONY : $(call gb_Rdb_get_clean_target,%)
32 $(call gb_Rdb_get_clean_target,%) :
33 $(call gb_Output_announce,$*,$(false),RDB,1)
34 $(call gb_Helper_abbreviate_dirs,\
35 rm -f $(call gb_Rdb__get_install_target,$*) $(call gb_Rdb_get_target,$*))
37 define gb_Rdb__Rdb_impl
38 $(call gb_Rdb_get_target,$(1)) : COMPONENTS :=
39 $(call gb_Rdb_get_target,$(1)) : $(gb_Module_CURRENTMAKEFILE)
40 $$(eval $$(call gb_Module_register_target,$(2),$(call gb_Rdb_get_clean_target,$(1))))
41 $(call gb_Helper_make_userfriendly_targets,$(1),Rdb,$(2))
43 endef
45 define gb_Rdb_Rdb
46 $(call gb_Rdb__Rdb_impl,$(1),$(call gb_Rdb_get_target,$(1)))
48 endef
50 # FIXME this needs some layer-like thing for the special case in URE
51 define gb_Rdb_Rdb_install
52 $(call gb_Rdb__Rdb_impl,$(1),$(if $(2),$(INSTROOT)/$(2),$(call gb_Rdb__get_install_target,$(1))))
53 $(call gb_Helper_install_final, \
54 $(if $(2),$(INSTROOT)/$(2),$(call gb_Rdb__get_install_target,$(1))), \
55 $(call gb_Rdb_get_target,$(1)))
57 endef
59 define gb_Rdb_add_component
60 $(call gb_Rdb_get_target,$(1)) : $(call gb_ComponentTarget_get_target,$(2))
61 $(call gb_Rdb_get_target,$(1)) : COMPONENTS += $(2)
63 endef
65 define gb_Rdb_add_components
66 $(foreach component,$(2),$(call gb_Rdb_add_component,$(1),$(component)))
68 endef
70 # vim: set noet sw=4 ts=4: