# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- # # This file is part of the LibreOffice project. # # This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. #
# Creates an index for a given thesaurus # # The thesaurus' file path is relative to $(SRCDIR). # # gb_ThesaurusIndexTarget_ThesaurusIndexTarget thesaurus define gb_ThesaurusIndexTarget_ThesaurusIndexTarget
$(call gb_ThesaurusIndexTarget_get_target,$(1)) : THESAURUS_FILE := $(SRCDIR)/$(1)
$(call gb_ThesaurusIndexTarget_get_target,$(1)) : $(SRCDIR)/$(1)
$(call gb_ThesaurusIndexTarget_get_target,$(1)) :| $(dir $(call gb_ThesaurusIndexTarget_get_target,$(1))).dir
endef
# PropertiesTranslateTarget class
# Handles translation of .properties files in dictionaries.
# Handles creation and delivery of dictionary extensions. # # This class provides a filelist called Dictionary/<name> that contains # all installed files of the dictionary.
# Adds a file from $(SRCDIR) to the dictionary under chosen name # # gb_Dictionary_add_file dictionary destfile sourcefile define gb_Dictionary_add_file
$(call gb_Dictionary__add_file,$(1),$(1),$(2),$(3))
endef
# Adds several files from $(SRCDIR) to the dictionary at once # # The files are put into the chosen directory. # # gb_Dictionary_add_files dictionary destdir file(s) define gb_Dictionary_add_files
$(foreach file,$(3),$(call gb_Dictionary_add_file,$(1),$(2)/$(notdir $(file)),$(file)))
endef
# Adds an arbitrary file to the dictionary under chosen name # # gb_Dictionary_add_file dictionary destfile sourcefile define gb_Dictionary_add_generated_file
$(call gb_Dictionary__add_file,$(1),$(1)_generated,$(2),$(subst $(WORKDIR)/,,$(3)))
$(call gb_PackageSet_add_package,$(call gb_Dictionary_get_packagesetname,$(1)),$(call gb_Dictionary_get_packagename,$(1)_generated))
endef
# Adds several arbitrary files to the dictionary at once # # The files are put into the chosen directory. # # gb_Dictionary_add_files dictionary destdir file(s) define gb_Dictionary_add_generated_files
$(foreach file,$(3),$(call gb_Dictionary_add_generated_file,$(1),$(2)/$(notdir $(file)),$(file)))
endef
# Adds a localized xcu file, which needs special handling because it may be # in $(WORKDIR) or $(SRCDIR) depending on whether translations are built. # # gb_Dictionary_add_localized_xcu_file dictionary destdir file define gb_Dictionary_add_localized_xcu_file ifeq ($(gb_WITH_LANG),)
$(call gb_Dictionary__add_file,$(1),$(1),$(2)/$(notdir $(3)),$(strip $(3))) else
$(call gb_Dictionary__add_file,$(1),$(1)_generated,$(2)/$(notdir $(3)),$(subst $(WORKDIR)/,,$(call gb_XcuFile_for_extension,$(strip $(3)))))
$(call gb_PackageSet_add_package,$(call gb_Dictionary_get_packagesetname,$(1)),$(call gb_Dictionary_get_packagename,$(1)_generated)) endif
endef
# Adds a file to the root dir of the dictionary # # gb_Dictionary_add_root_file dictionary file define gb_Dictionary_add_root_file
$(call gb_Dictionary_add_file,$(1),$(notdir $(2)),$(2))
endef
# Adds several files to the root dir of the dictionary # # gb_Dictionary_add_root_files dictionary file(s) define gb_Dictionary_add_root_files
$(foreach file,$(2),$(call gb_Dictionary_add_root_file,$(1),$(file)))
# Adds a thesaurus to the dictionary # # An index for the thesaurus is generated and added to the dictionary as # well. # # gb_Dictionary_add_thesaurus dictionary thesaurus define gb_Dictionary_add_thesaurus
$(call gb_ThesaurusIndexTarget_ThesaurusIndexTarget,$(2))
$(call gb_Dictionary_add_root_file,$(1),$(2))
$(call gb_Dictionary__add_thesaurus,$(1),$(2),$(call gb_ThesaurusIndexTarget_get_target,$(2)))
endef
# Adds several thesauri to the dictionary at once # # Indexes for the thesauri are generated and added to the dictionary as # well. # # gb_Dictionary_add_thesauri dictionary thesauri define gb_Dictionary_add_thesauri
$(foreach thesaurus,$(2),$(call gb_Dictionary_add_thesaurus,$(1),$(thesaurus)))
# Adds a .property file to the dictionary under chosen name # # The file is localized automatically. # # gb_Dictionary_add_propertyfile dictionary destfile propertyfile define gb_Dictionary_add_propertyfile
$(call gb_Dictionary__add_file,$(1),$(1),$(2),$(3))
$(call gb_Dictionary__add_propertyfile_translations,$(1),$(2),$(3))
endef
# Adds several .property files to the dictionary at once # # The files are put into chosen directory. They are localized automatically. # # gb_Dictionary_add_propertyfiles dictionary destdir propertyfile(s) define gb_Dictionary_add_propertyfiles
$(foreach propertyfile,$(3),$(call gb_Dictionary_add_propertyfile,$(1),$(2)/$(notdir $(propertyfile)),$(propertyfile)))
endef
# vim: set noet sw=4 ts=4:
Messung V0.5
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.