Kaydet (Commit) 4c737b64 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Decouple disabling of scripting (BASIC &co) from OS being iOS

üst 42b11e86
...@@ -382,12 +382,12 @@ bootstrap: $(WORKDIR_BOOTSTRAP) ...@@ -382,12 +382,12 @@ bootstrap: $(WORKDIR_BOOTSTRAP)
# Build # Build
# #
build: bootstrap fetch $(if $(filter $(INPATH),$(INPATH_FOR_BUILD)),,cross-toolset) build: bootstrap fetch $(if $(filter $(INPATH),$(INPATH_FOR_BUILD)),,cross-toolset)
ifeq ($(OS),IOS) ifeq ($(DISABLE_INTERPRETERS),TRUE)
# We must get the headers from basic and vbahelper "delivered" because # We must get the headers from basic and vbahelper "delivered" because
# as we don't link to any libs from those they won't otherwise be, or # as we don't link to any libs from those they won't otherwise be, or
# something. And we still do include those headers always even if the # something. And we still do include those headers always even if the
# libs aren't built for iOS. (Ifdefs for iOS will be added later as # libs aren't built in the --disable-interpreters case. (Ifdefs for
# necessary to take care of that.) # DISABLE_INTERPRETERS will be added to the code later as necessary.)
$(GNUMAKE) basic vbahelper $(GNUMAKE) basic vbahelper
endif endif
ifeq ($(DISABLE_DBCONNECTIVITY),TRUE) ifeq ($(DISABLE_DBCONNECTIVITY),TRUE)
......
...@@ -130,7 +130,7 @@ endif # ifeq ($(COM),GCC) ...@@ -130,7 +130,7 @@ endif # ifeq ($(COM),GCC)
endif # ifeq ($(OS),WNT) endif # ifeq ($(OS),WNT)
ifeq ($(OS),IOS) ifeq (,$(filter INTERPRETERS,$(BUILD_TYPE)))
gb_Library_FILENAMES := $(patsubst sb:libsb%,,$(gb_Library_FILENAMES)) gb_Library_FILENAMES := $(patsubst sb:libsb%,,$(gb_Library_FILENAMES))
gb_Library_FILENAMES := $(patsubst vbahelper:libvbahelper%,,$(gb_Library_FILENAMES)) gb_Library_FILENAMES := $(patsubst vbahelper:libvbahelper%,,$(gb_Library_FILENAMES))
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
$(eval $(call gb_Module_Module,basctl)) $(eval $(call gb_Module_Module,basctl))
ifneq (IOS,$(OS)) ifneq ($(DISABLE_INTERPRETERS),TRUE)
$(eval $(call gb_Module_add_targets,basctl,\ $(eval $(call gb_Module_add_targets,basctl,\
AllLangResTarget_basctl \ AllLangResTarget_basctl \
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
$(eval $(call gb_Module_Module,basic)) $(eval $(call gb_Module_Module,basic))
ifneq (IOS,$(OS)) ifneq ($(DISABLE_INTERPRETERS),TRUE)
$(eval $(call gb_Module_add_targets,basic,\ $(eval $(call gb_Module_add_targets,basic,\
AllLangResTarget_sb \ AllLangResTarget_sb \
......
...@@ -79,6 +79,7 @@ export DIRECTXSDK_LIB=@DIRECTXSDK_LIB@ ...@@ -79,6 +79,7 @@ export DIRECTXSDK_LIB=@DIRECTXSDK_LIB@
export DISABLE_ACTIVEX=@DISABLE_ACTIVEX@ export DISABLE_ACTIVEX=@DISABLE_ACTIVEX@
export DISABLE_ATL=@DISABLE_ATL@ export DISABLE_ATL=@DISABLE_ATL@
export DISABLE_DBCONNECTIVITY=@DISABLE_DBCONNECTIVITY@ export DISABLE_DBCONNECTIVITY=@DISABLE_DBCONNECTIVITY@
export DISABLE_INTERPRETERS=@DISABLE_INTERPRETERS@
export DISABLE_LINKOO=@DISABLE_LINKOO@ export DISABLE_LINKOO=@DISABLE_LINKOO@
export DISABLE_NEON=@DISABLE_NEON@ export DISABLE_NEON=@DISABLE_NEON@
export DISABLE_PYTHON=@DISABLE_PYTHON@ export DISABLE_PYTHON=@DISABLE_PYTHON@
......
...@@ -384,7 +384,12 @@ AC_ARG_ENABLE(ext-barcode, ...@@ -384,7 +384,12 @@ AC_ARG_ENABLE(ext-barcode,
AC_ARG_ENABLE(database-connectivity, AC_ARG_ENABLE(database-connectivity,
AS_HELP_STRING([--disable-database-connectivity], AS_HELP_STRING([--disable-database-connectivity],
[Disable various database connectivity. Work in progress, don't use.]) [Disable various database connectivity. Work in progress, use only if you are hacking on it.])
)
AC_ARG_ENABLE(interpreters,
AS_HELP_STRING([--disable-interpreters],
[Disable BASIC, Java and Python. Work in progress, use only if you are hacking on it.])
) )
AC_ARG_ENABLE(ext-diagram, AC_ARG_ENABLE(ext-diagram,
...@@ -2031,6 +2036,22 @@ else ...@@ -2031,6 +2036,22 @@ else
fi fi
AC_SUBST(DISABLE_DBCONNECTIVITY) AC_SUBST(DISABLE_DBCONNECTIVITY)
if test -z "$enable_interpreters"; then
# Disable interpreters for iOS unless specifically overridden
# with --enable-interpreters.
if test $_os != iOS; then
enable_interpreters=yes
fi
fi
DISABLE_INTERPRETERS=''
if test "$enable_interpreters" = yes; then
BUILD_TYPE="$BUILD_TYPE INTERPRETERS"
else
DISABLE_INTERPRETERS='TRUE'
fi
AC_SUBST(DISABLE_INTERPRETERS)
dnl =================================================================== dnl ===================================================================
dnl Extra check for Windows. Cygwin builds need gcc to build dmake dnl Extra check for Windows. Cygwin builds need gcc to build dmake
dnl although MSVC is used to build other build-time tools and dnl although MSVC is used to build other build-time tools and
...@@ -4508,8 +4529,13 @@ dnl Java support enable ...@@ -4508,8 +4529,13 @@ dnl Java support enable
dnl =================================================================== dnl ===================================================================
AC_MSG_CHECKING([whether to build with Java support]) AC_MSG_CHECKING([whether to build with Java support])
if test "$with_java" != "no"; then if test "$with_java" != "no"; then
AC_MSG_RESULT([yes]) if test "$DISABLE_INTERPRETERS" = TRUE; then
SOLAR_JAVA="TRUE" AC_MSG_RESULT([no, overridden by --disable-interpreters])
SOLAR_JAVA=""
else
AC_MSG_RESULT([yes])
SOLAR_JAVA="TRUE"
fi
else else
AC_MSG_RESULT([no]) AC_MSG_RESULT([no])
SOLAR_JAVA="" SOLAR_JAVA=""
...@@ -5921,7 +5947,11 @@ no|disable) ...@@ -5921,7 +5947,11 @@ no|disable)
DISABLE_PYTHON=TRUE DISABLE_PYTHON=TRUE
;; ;;
""|yes|auto) ""|yes|auto)
if test $build_os = cygwin; then if test "$DISABLE_INTERPRETERS" = TRUE; then
AC_MSG_RESULT([no, overridden by --disable-interpreters])
enable_python=no
DISABLE_PYTHON=TRUE
elif test $build_os = cygwin; then
dnl When building on Windows we don't attempt to use any installed dnl When building on Windows we don't attempt to use any installed
dnl "system" Python. dnl "system" Python.
dnl dnl
......
...@@ -177,7 +177,7 @@ my_components += \ ...@@ -177,7 +177,7 @@ my_components += \
.ENDIF .ENDIF
.IF "$(OS)" != "IOS" .IF "$(DISABLE_INTERPRETERS)" != "TRUE"
my_components += \ my_components += \
component/basctl/util/basctl \ component/basctl/util/basctl \
......
...@@ -33,7 +33,7 @@ $(eval $(call gb_Module_add_targets,sc,\ ...@@ -33,7 +33,7 @@ $(eval $(call gb_Module_add_targets,sc,\
Package_xml \ Package_xml \
)) ))
ifneq (IOS,$(OS)) ifneq ($(DISABLE_INTERPRETERS),TRUE)
$(eval $(call gb_Module_add_targets,sc,\ $(eval $(call gb_Module_add_targets,sc,\
Library_vbaobj \ Library_vbaobj \
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
$(eval $(call gb_Module_Module,scripting)) $(eval $(call gb_Module_Module,scripting))
ifneq (IOS,$(OS)) ifneq ($(DISABLE_INTERPRETERS),TRUE)
$(eval $(call gb_Module_add_targets,scripting,\ $(eval $(call gb_Module_add_targets,scripting,\
$(if $(SOLAR_JAVA),\ $(if $(SOLAR_JAVA),\
......
...@@ -182,7 +182,7 @@ endef ...@@ -182,7 +182,7 @@ endef
# to libraries not built in this configuration. # to libraries not built in this configuration.
define gb_CppunitTest__filter_not_built_components define gb_CppunitTest__filter_not_built_components
$(filter-out \ $(filter-out \
$(if $(filter $(OS),IOS), \ $(if $(filter INTERPRETERS,$(BUILD_TYPE)),, \
basic/util/sb \ basic/util/sb \
sw/util/vbaswobj \ sw/util/vbaswobj \
scripting/source/basprov/basprov \ scripting/source/basprov/basprov \
......
...@@ -236,6 +236,10 @@ ifeq ($(strip $(DISABLE_DBCONNECTIVITY)),TRUE) ...@@ -236,6 +236,10 @@ ifeq ($(strip $(DISABLE_DBCONNECTIVITY)),TRUE)
gb_GLOBALDEFS += -DDISABLE_DBCONNECTIVITY gb_GLOBALDEFS += -DDISABLE_DBCONNECTIVITY
endif endif
ifeq ($(strip $(DISABLE_INTERPRETERS)),TRUE)
gb_GLOBALDEFS += -DDISABLE_INTERPRETERS
endif
ifeq ($(HAVE_THREADSAFE_STATICS),TRUE) ifeq ($(HAVE_THREADSAFE_STATICS),TRUE)
gb_GLOBALDEFS += -DHAVE_THREADSAFE_STATICS gb_GLOBALDEFS += -DHAVE_THREADSAFE_STATICS
endif endif
......
...@@ -39,7 +39,7 @@ $(eval $(call gb_Module_add_targets,sw,\ ...@@ -39,7 +39,7 @@ $(eval $(call gb_Module_add_targets,sw,\
Package_xml \ Package_xml \
)) ))
ifneq (IOS,$(OS)) ifneq ($(DISABLE_INTERPRETERS),TRUE)
$(eval $(call gb_Module_add_targets,sw,\ $(eval $(call gb_Module_add_targets,sw,\
Library_vbaswobj \ Library_vbaswobj \
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
$(eval $(call gb_Module_Module,vbahelper)) $(eval $(call gb_Module_Module,vbahelper))
ifneq (IOS,$(OS)) ifneq ($(DISABLE_INTERPRETERS),TRUE)
# the targets to be inserted are their file names without .mk extension # the targets to be inserted are their file names without .mk extension
$(eval $(call gb_Module_add_targets,vbahelper,\ $(eval $(call gb_Module_add_targets,vbahelper,\
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment