# -*- 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/. # # This file incorporates work covered by the following license notice: # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed # with this work for additional information regarding copyright # ownership. The ASF licenses this file to you under the Apache # License, Version 2.0 (the "License"); you may not use this file # except in compliance with the License. You may obtain a copy of # the License at http://www.apache.org/licenses/LICENSE-2.0 . #
gb_Helper_MISC := $(WORKDIR)/Misc
# general purpose phony target
gb_Helper_PHONY := $(gb_Helper_MISC)/PHONY
# general purpose empty dummy target
gb_Helper_MISCDUMMY := $(gb_Helper_MISC)/DUMMY
# target for reacting to changes in the list of configured languages
gb_Helper_LANGSTARGET := $(BUILDDIR)/config_$(gb_Side)_lang.mk.stamp
define gb_Helper_abbreviate_dirs_native
$(call gb_Output_error,gb_Helper_abbreviate_dirs_native: use gb_Helper_abbreviate_dirs instead.) endef
define gb_Helper_native_path
$(call gb_Output_error,gb_Helper_native_path: Do not use. Should not be necessary.) endef
# cygwin seems to eat one backslash when executing command, thus replace with '\\' define gb_Helper_windows_path
$(subst /,\\,$(1)) endef
ifeq ($(OS),WNT) # path-replacement optimizations, instead of calling cygpath/wslpath all the time, just do it once # and then do all other path-replacements without the need to spawn processes/shells for that
SRCDIR_CYG := $(shell cygpath -u $(SRCDIR))
BUILDDIR_CYG := $(shell cygpath -u $(BUILDDIR))
INSTDIR_CYG := $(shell cygpath -u $(INSTDIR))
WORKDIR_CYG := $(shell cygpath -u $(WORKDIR))
TARFILE_LOCATION_CYG := $(shell cygpath -u $(TARFILE_LOCATION))
# $(call gb_Helper_register_executables,layer,exes) define gb_Helper_register_executables ifeq ($$(filter $(1),$$(gb_Executable_VALIDGROUPS_NOTINSTALLED)),)
$$(eval $$(call gb_Output_error,$(1) is not a valid group for executables that are not installed. Valid groups are: $$(gb_Executable_VALIDGROUPS_NOTINSTALLED). Use gb_Helper_register_executables_for_install for installed executables.)) endif
$(call gb_Helper__register_executables,$(1),$(2))
endef
# $(call gb_Helper_register_executables_for_install,layer,installmodule,exes) define gb_Helper_register_executables_for_install
$(if $(3),,$(call gb_Output_error,gb_Helper_register_executables_for_install: no executables - need 3 parameters)) ifeq ($$(filter $(1),$$(gb_Executable_VALIDGROUPS_INSTALLED)),)
$$(eval $$(call gb_Output_error,$(1) is not a valid group for installed executables. Valid groups are: $$(gb_Executable_VALIDGROUPS_INSTALLED). Use gb_Helper_register_executables for executables that are not installed.)) endif
$(call gb_Helper__register_executables,$(1),$(3))
# $(call gb_Helper_register_libraries,layer,libs) define gb_Helper_register_libraries ifeq ($$(filter $(1),$$(gb_Library_VALIDGROUPS_NOTINSTALLED)),)
$$(eval $$(call gb_Output_error,$(1) is not a valid group for libraries that are not installed. Valid groups are: $$(gb_Library_VALIDGROUPS_NOTINSTALLED). Use gb_Helper_register_libraries_for_install for installed libraries.)) endif
$(call gb_Helper__register_libraries,$(1),$(2))
endef
# the first argument is the group, which sets rpaths etc. # the second argument is the install module, which describes in which distro package/msi a lib should show up # UGLY: for versioned libraries "sdk" module is hard-coded for now # $(call gb_Helper_register_libraries_for_install,layer,installmodule,libs) define gb_Helper_register_libraries_for_install
$(if $(3),,$(call gb_Output_error,gb_Helper_register_libraries_for_install: no libraries - need 3 parameters)) ifeq ($$(filter $(1),$$(gb_Library_VALIDGROUPS_INSTALLED)),)
$$(eval $$(call gb_Output_error,$(1) is not a valid group for installed libraries. Valid groups are: $$(gb_Library_VALIDGROUPS_INSTALLED). Use gb_Helper_register_libraries for libraries that are not installed.)) endif
$(call gb_Helper__register_libraries,$(1),$(3))
# a plugin is a library, why can't be dynamically linked and must be dlopen'd, but must be linked static define gb_Helper_register_plugins_for_install
$(call gb_Helper_register_libraries_for_install,$(1),$(2),$(3))
gb_Library_KNOWNPLUGINS += $(3)
# $(call gb_Helper_register_jars,layer,jars) define gb_Helper_register_jars ifeq ($$(filter $(1),$$(gb_Jar_VALIDGROUPS_NOTINSTALLED)),)
$$(eval $$(call gb_Output_error,$(1) is not a valid group for jars that are not installed. Valid groups are: $$(gb_Jar_VALIDGROUPS_NOTINSTALLED). Use gb_Helper_register_jars_for_install for installed jars.)) endif
$(call gb_Helper__register_jars,$(1),$(2))
endef
# $(call gb_Helper_register_jars_for_install,layer,installmodule,jars) define gb_Helper_register_jars_for_install
$(if $(3),,$(call gb_Output_error,gb_Helper_register_jars_for_install: no jars - need 3 parameters)) ifeq ($$(filter $(1),$$(gb_Jar_VALIDGROUPS_INSTALLED)),)
$$(eval $$(call gb_Output_error,$(1) is not a valid group for installed jars. Valid groups are: $$(gb_Jar_VALIDGROUPS_INSTALLED). Use gb_Helper_register_jars for jars that are not installed.)) endif
$(call gb_Helper__register_jars,$(1),$(3))
# use if the installed target is the final target define gb_Helper_install_final
$(1) : $(2) | $(dir $(1)).dir
$(call gb_Deliver_add_deliverable,$(1),$(2),$(1)) endef
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.