Files
odfstudio/scripting/Module_scripting.mk
T
Neil Roberts 365de006d1 tdf#173160 Maintain order of arguments to macro
The arguments for a macro when invoked by the dispatch provider get
converted from a set of PropertyValues to a sequence of Anys containing
just the values. Since the commit below, the TransformItems step was
changed to store the PropertyValues in an unordered_map which makes the
order of the values unpredictable. If the dispatch provider is used to
execute a macro then the order of the arguments becomes important
because the macro has no other way to determine which argument
represents which property. In order to maintain the previous behaviour,
the dispatch method now reorders the arguments so that they have the
same order as before. The previous order was determined by the order the
properties were handled in TransformItems.

commit e8d73d5307
Author: Mike Kaganski <mike.kaganski@collabora.com>
Date:   Wed Dec 3 10:45:35 2025 +0500

    Let TransformItems return comphelper::SequenceAsHashMap

    Simplifies its usage in all places where the result needs to be
    modified.

    Change-Id: I37f8d99827e0f1cb2b6e4f4f7735e26fb87f6703
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/195162

Change-Id: Iacf64650842eb62c0a2bd266784aa9c7accf45bd
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209231
Reviewed-by: Neil Roberts <nroberts@libreoffice.org>
Tested-by: Jenkins
2026-08-18 18:31:55 +02:00

64 lines
1.7 KiB
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,scripting))
ifneq ($(filter SCRIPTING,$(BUILD_TYPE)),)
$(eval $(call gb_Module_add_targets,scripting,\
$(if $(ENABLE_JAVA),\
Jar_HelloWorld \
Jar_Highlight \
Jar_MemoryUsage \
Jar_ScriptFramework \
$(if $(ENABLE_SCRIPTING_BEANSHELL),\
Jar_ScriptProviderForBeanShell \
Rdb_scriptproviderforbeanshell \
) \
Jar_ScriptProviderForJava \
$(if $(ENABLE_SCRIPTING_JAVASCRIPT),\
Jar_ScriptProviderForJavaScript \
Rdb_scriptproviderforjavascript \
) \
Package_java \
Package_java_jars \
$(if $(ENABLE_SCRIPTING_BEANSHELL),Package_ScriptsBeanShell) \
$(if $(ENABLE_SCRIPTING_JAVASCRIPT),Package_ScriptsJavaScript) \
) \
Package_scriptbindinglib \
$(if $(DISABLE_PYTHON),,\
Package_scriptproviderforpython \
Package_ScriptsPython \
Pyuno_mailmerge \
) \
$(if $(ENABLE_QUICKJS),Library_jsprov) \
Library_basprov \
Library_dlgprov \
Library_protocolhandler \
Library_singleprov \
Library_scriptframe \
Library_stringresource \
Library_vbaevents \
))
$(eval $(call gb_Module_add_check_targets,scripting,\
$(if $(ENABLE_QUICKJS),CppunitTest_scripting_jsprov) \
$(if $(ENABLE_SCRIPTING_BEANSHELL),CppunitTest_scripting_beanshell) \
$(if $(DISABLE_PYTHON),,CppunitTest_scripting_pythonscript) \
CppunitTest_scripting_scripthandler \
))
$(eval $(call gb_Module_add_subsequentcheck_targets,scripting,\
PythonTest_scripting_provider \
))
endif
# vim: set noet sw=4 ts=4: