office-gobmx/helpcompiler/Module_helpcompiler.mk
Jan-Marek Glogowski 709a40e867 cross-toolset: fix real cross help building
Regression from commit 14069d8417
("configure: Improve help-options handling").

We now must forward the help and extension configure options, as
this is needed by the cross toolset to know, if it needs to build
the HelpIndexer and HelpLinker executables.

Also get rid of gb_Helper_optional_for_host. While it's in theory
more correct, it makes gb_Helper_optional more complex, so we now
rely on the fact, that the config_build.mk BUILD_TYPE is a subset
of the config_host.mk BUILD_TYPE.

This should fix the Windows Arm64 build, which currently seem to
be the only cross-build including help.

Change-Id: I8b90923c891b43cd2655b2578015c9bd579aae7d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117758
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
2021-06-24 23:25:28 +02:00

23 lines
654 B
Makefile

# -*- 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/.
#
$(eval $(call gb_Module_Module,helpcompiler))
$(eval $(call gb_Module_add_targets,helpcompiler,\
Library_helplinker \
))
$(eval $(call gb_Module_add_targets_for_build,helpcompiler,\
$(call gb_Helper_optional,HELPTOOLS, \
Executable_HelpIndexer \
Executable_HelpLinker \
) \
))
# vim:set noet sw=4 ts=4: