Fix --disable-scripting for DESKTOP build
Unfortunatly we cannot add --disable-scripting to sub_conf_defaults, because Java currently has no equivalent to the PYTHON_FOR_BUILD setting. Change-Id: I89938a17307a363f5de808200914940503312829 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126186 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
This commit is contained in:
parent
6ac1e9e7f0
commit
fb308c193b
9 changed files with 28 additions and 11 deletions
|
@ -956,7 +956,7 @@ $(eval $(call gb_Helper_register_packages_for_install,ooo,\
|
|||
$(if $(ENABLE_SCRIPTING_BEANSHELL),scripting_ScriptsBeanShell) \
|
||||
$(if $(ENABLE_SCRIPTING_JAVASCRIPT),scripting_ScriptsJavaScript) \
|
||||
) \
|
||||
$(if $(DISABLE_SCRIPTING),,scripting_scriptbindinglib) \
|
||||
$(call gb_Helper_optional,SCRIPTING,scripting_scriptbindinglib) \
|
||||
$(if $(filter $(OS),MACOSX),sysui_osxicons) \
|
||||
wizards_basicshare \
|
||||
wizards_basicsrvaccess2base \
|
||||
|
|
|
@ -64,10 +64,6 @@ $(eval $(call gb_Library_add_exception_objects,acc,\
|
|||
accessibility/source/extended/accessibleiconchoicectrlentry \
|
||||
accessibility/source/extended/accessiblelistbox \
|
||||
accessibility/source/extended/accessiblelistboxentry \
|
||||
accessibility/source/extended/accessibletabbar \
|
||||
accessibility/source/extended/accessibletabbarbase \
|
||||
accessibility/source/extended/accessibletabbarpage \
|
||||
accessibility/source/extended/accessibletabbarpagelist \
|
||||
accessibility/source/extended/accessibletablistbox \
|
||||
accessibility/source/extended/accessibletablistboxtable \
|
||||
accessibility/source/extended/textwindowaccessibility \
|
||||
|
@ -112,4 +108,13 @@ $(eval $(call gb_Library_add_exception_objects,acc,\
|
|||
accessibility/source/standard/vclxaccessibletoolboxitem \
|
||||
))
|
||||
|
||||
ifneq ($(filter SCRIPTING,$(BUILD_TYPE)),)
|
||||
$(eval $(call gb_Library_add_exception_objects,acc,\
|
||||
accessibility/source/extended/accessibletabbar \
|
||||
accessibility/source/extended/accessibletabbarbase \
|
||||
accessibility/source/extended/accessibletabbarpage \
|
||||
accessibility/source/extended/accessibletabbarpagelist \
|
||||
))
|
||||
endif
|
||||
|
||||
# vim:set noet sw=4 ts=4:
|
||||
|
|
|
@ -17,6 +17,7 @@
|
|||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
#include <config_features.h>
|
||||
#include <config_feature_desktop.h>
|
||||
|
||||
#include <toolkit/awt/vclxwindows.hxx>
|
||||
|
@ -386,7 +387,12 @@ Reference< XAccessible > AccessibleFactory::createAccessibleIconChoiceCtrl(
|
|||
|
||||
Reference< XAccessible > AccessibleFactory::createAccessibleTabBar( TabBar& _rTabBar ) const
|
||||
{
|
||||
#if HAVE_FEATURE_SCRIPTING
|
||||
return new AccessibleTabBar( &_rTabBar );
|
||||
#else
|
||||
(void)_rTabBar;
|
||||
return nullptr;
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference< XAccessibleContext > AccessibleFactory::createAccessibleTextWindowContext(
|
||||
|
|
|
@ -5482,9 +5482,10 @@ if test "$cross_compiling" = "yes"; then
|
|||
test -n "$enable_ccache" && sub_conf_opts="$sub_conf_opts --enable-ccache=$enable_ccache"
|
||||
test -n "$with_ant_home" && sub_conf_opts="$sub_conf_opts --with-ant-home=$with_ant_home"
|
||||
test "$with_junit" = "no" && sub_conf_opts="$sub_conf_opts --without-junit"
|
||||
# While we don't need scripting support, we don't have a PYTHON_FOR_BUILD Java equivalent, so must enable scripting for Java
|
||||
if test -n "$ENABLE_JAVA"; then
|
||||
case "$_os" in
|
||||
iOS) sub_conf_opts="$sub_conf_opts --without-java" ;; # force it off, like it used to be
|
||||
iOS) sub_conf_opts="$sub_conf_opts --disable-scripting" ;; # force it off, as it used to be
|
||||
Android)
|
||||
# Hack for Android - the build doesn't need a host JDK, so just forward to build for convenience
|
||||
test -n "$with_jdk_home" && sub_conf_opts="$sub_conf_opts --with-jdk-home=$with_jdk_home"
|
||||
|
@ -5496,7 +5497,7 @@ if test "$cross_compiling" = "yes"; then
|
|||
;;
|
||||
esac
|
||||
else
|
||||
sub_conf_opts="$sub_conf_opts --without-java"
|
||||
sub_conf_opts="$sub_conf_opts --disable-scripting"
|
||||
fi
|
||||
test -n "$TARFILE_LOCATION" && sub_conf_opts="$sub_conf_opts --with-external-tar=$TARFILE_LOCATION"
|
||||
test "$with_system_icu_for_build" = "yes" -o "$with_system_icu_for_build" = "force" && sub_conf_opts="$sub_conf_opts --with-system-icu"
|
||||
|
@ -5573,7 +5574,6 @@ if test "$cross_compiling" = "yes"; then
|
|||
OPENSSL
|
||||
ORCUS
|
||||
PYTHON
|
||||
SCRIPTING
|
||||
ZLIB
|
||||
"
|
||||
# converts BUILD_TYPE and PERMITTED_BUILD_TARGETS into non-whitespace,
|
||||
|
|
|
@ -47,6 +47,7 @@ $(eval $(call gb_Module_add_check_targets,dbaccess,\
|
|||
))
|
||||
endif
|
||||
|
||||
ifneq ($(filter SCRIPTING,$(BUILD_TYPE)),)
|
||||
$(eval $(call gb_Module_add_check_targets,dbaccess,\
|
||||
CppunitTest_dbaccess_dialog_save \
|
||||
CppunitTest_dbaccess_empty_stdlib_save \
|
||||
|
@ -54,6 +55,7 @@ $(eval $(call gb_Module_add_check_targets,dbaccess,\
|
|||
CppunitTest_dbaccess_macros_test \
|
||||
CppunitTest_dbaccess_hsqlschema_import \
|
||||
))
|
||||
endif
|
||||
|
||||
# this test fails 50% of the time on the mac jenkins buildbots
|
||||
ifeq ($(ENABLE_JAVA),TRUE)
|
||||
|
|
|
@ -37,6 +37,7 @@ $(eval $(call gb_Module_add_targets,sc,\
|
|||
endif
|
||||
|
||||
ifneq ($(OS),iOS)
|
||||
ifneq ($(filter SCRIPTING,$(BUILD_TYPE)),)
|
||||
$(eval $(call gb_Module_add_check_targets,sc,\
|
||||
Library_scqahelper \
|
||||
$(if $(and $(filter $(COM),MSC),$(MERGELIBS)),, \
|
||||
|
@ -58,6 +59,7 @@ $(eval $(call gb_Module_add_check_targets,sc,\
|
|||
CppunitTest_sc_cache_test \
|
||||
CppunitTest_sc_shapetest \
|
||||
))
|
||||
endif
|
||||
|
||||
ifneq ($(DISABLE_GUI),TRUE)
|
||||
ifeq ($(OS),LINUX)
|
||||
|
|
|
@ -29,7 +29,7 @@ $(eval $(call gb_Module_add_l10n_targets,sccomp,\
|
|||
|
||||
$(eval $(call gb_Module_add_check_targets,sccomp,\
|
||||
CppunitTest_sccomp_solver \
|
||||
$(if $(and $(filter INTEL,$(CPUNAME)),$(filter -fsanitize=%,$(gb_CXX))),,CppunitTest_sccomp_swarmsolvertest) \
|
||||
$(if $(and $(filter INTEL,$(CPUNAME)),$(filter -fsanitize=%,$(gb_CXX))),,$(if $(filter SCRIPTING,$(BUILD_TYPE)),CppunitTest_sccomp_swarmsolvertest)) \
|
||||
))
|
||||
|
||||
# vim: set noet sw=4 ts=4:
|
||||
|
|
|
@ -31,7 +31,7 @@ $(eval $(call gb_Module_add_targets,scripting,\
|
|||
$(if $(ENABLE_SCRIPTING_BEANSHELL),Package_ScriptsBeanShell) \
|
||||
$(if $(ENABLE_SCRIPTING_JAVASCRIPT),Package_ScriptsJavaScript) \
|
||||
) \
|
||||
$(if $(DISABLE_SCRIPTING),,Package_scriptbindinglib) \
|
||||
Package_scriptbindinglib \
|
||||
$(if $(DISABLE_PYTHON),,\
|
||||
Package_scriptproviderforpython \
|
||||
Package_ScriptsPython \
|
||||
|
|
|
@ -8,11 +8,13 @@
|
|||
*/
|
||||
|
||||
#include <sal/config.h>
|
||||
#include <config_features.h>
|
||||
|
||||
#include <unotest/bootstrapfixturebase.hxx>
|
||||
#include <comphelper/processfactory.hxx>
|
||||
#if HAVE_FEATURE_SCRIPTING
|
||||
#include <basic/sbstar.hxx>
|
||||
#include <config_features.h>
|
||||
#endif
|
||||
|
||||
using namespace ::com::sun::star;
|
||||
|
||||
|
|
Loading…
Reference in a new issue