[Scummvm-git-logs] scummvm master -> a1b67d2fbef1f9105ae990878b8f8c510dd3c8e5

sev- sev at scummvm.org
Sun Dec 6 19:04:05 UTC 2020


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
a1b67d2fbe CONFIGURE: Allow building without detection code for disabled engines


Commit: a1b67d2fbef1f9105ae990878b8f8c510dd3c8e5
    https://github.com/scummvm/scummvm/commit/a1b67d2fbef1f9105ae990878b8f8c510dd3c8e5
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2020-12-06T20:04:02+01:00

Commit Message:
CONFIGURE: Allow building without detection code for disabled engines

Changed paths:
    Makefile.common
    configure


diff --git a/Makefile.common b/Makefile.common
index a967efdbaf..188c231f41 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -62,12 +62,14 @@ KYRARPG_COMMON_OBJ_ORIG := $(KYRARPG_COMMON_OBJ)
 # Skip rules for these files, by resetting the LOAD_RULES_MK
 LOAD_RULES_MK :=
 
+ifdef DETECTION_FULL
 # Reset detection objects, which uptill now are filled with only
 # enabled engines.
 DETECT_OBJS :=
 
 # Include all engine's module files, which populate DETECT_OBJS
 -include $(srcdir)/engines/*/module.mk
+endif
 
 # Reset stuff
 MODULES := $(MODULES_ORIG)
diff --git a/configure b/configure
index 5515ed46b2..3ab8182c19 100755
--- a/configure
+++ b/configure
@@ -248,6 +248,7 @@ _pandocformat="default"
 _pandocext="default"
 # Detection features to be linked into executable or not
 _detection_features_static=yes
+_detection_features_full=yes
 # The following variables are automatically detected, and should not
 # be modified otherwise. Consider them read-only.
 _posix=no
@@ -1241,6 +1242,8 @@ for ac_option in $@; do
 	--enable-static)              _static_build=yes      ;;
 	--enable-detection-static)    _detection_features_static=yes;;
 	--enable-detection-dynamic)   _detection_features_static=no;;
+	--enable-detection-full)      _detection_features_full=yes;;
+	--disable-detection-full)     _detection_features_full=no;;
 	--disable-16bit)              _16bit=no              ;;
 	--enable-highres)             _highres=yes           ;;
 	--disable-highres)            _highres=no            ;;
@@ -3107,6 +3110,7 @@ EOF
 		append_var DEFINES "-DDISABLE_SID"
 		append_var DEFINES "-DREDUCE_MEMORY_USAGE"
 		add_line_to_config_mk 'N64 = 1'
+		_detection_features_full=no
 		_nuked_opl=no
 		;;
 	ps3)
@@ -4277,6 +4281,13 @@ define_in_config_if_yes "$_detection_features_static" "DETECTION_STATIC"
 echo_n "Checking if detection features building statically... "
 echo "$_detection_features_static"
 
+#
+# Set up a define for detection to be used as static or not
+#
+define_in_config_if_yes "$_detection_features_full" "DETECTION_FULL"
+echo_n "Checking if building detection features for all engines... "
+echo "$_detection_features_full"
+
 #
 # Check whether integrated MT-32 emulator support is requested
 #
@@ -6373,7 +6384,9 @@ for engine in $_sorted_engines; do
 		j=`echo $engine | tr '[:lower:]' '[:upper:]'`
 		detectEngine="${j}${detectId}"
 		cat >> engines/detection_table.h << EOF
+#if defined(ENABLE_$j) || defined(DETECTION_FULL)
 LINK_PLUGIN($detectEngine)
+#endif
 EOF
 	fi
 done




More information about the Scummvm-git-logs mailing list