aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorD G Turner2013-11-07 12:58:35 +0100
committerD G Turner2013-11-24 00:48:02 +0000
commitffce805fb2b116ef1d4f03540158d42b3fcd5e80 (patch)
treea00e679759dfb9699821d9c34ef244badab2d977 /configure
parent8b3fc996a16dccccb2de01c75d8eff65c89a969f (diff)
downloadscummvm-rg350-ffce805fb2b116ef1d4f03540158d42b3fcd5e80.tar.gz
scummvm-rg350-ffce805fb2b116ef1d4f03540158d42b3fcd5e80.tar.bz2
scummvm-rg350-ffce805fb2b116ef1d4f03540158d42b3fcd5e80.zip
BUILD: Add code to maintain ordering of engines in generated files.
This is mainly "cosmetic" to keep the SCUMM engine and subengines at the top of the various files, but probably a good idea to prevent any subtle regressions associated with changing the order.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure16
1 files changed, 13 insertions, 3 deletions
diff --git a/configure b/configure
index e474490efb..d454591f08 100755
--- a/configure
+++ b/configure
@@ -4199,8 +4199,18 @@ for engine in $_engines; do
fi
done
-# Prepare the information to be shown
+# Sort engines to place our headline engine at start...
+# No technical reason, just historical convention
+headline_engine=scumm
+_sorted_engines="${headline_engine}"
for engine in $_engines; do
+ if test "${engine}" != "${headline_engine}" ; then
+ _sorted_engines="${_sorted_engines} ${engine}"
+ fi
+done
+
+# Prepare the information to be shown
+for engine in $_sorted_engines; do
if test "`get_engine_sub $engine`" = "no" ; then
# It's a main engine
prepare_engine_build_strings $engine
@@ -4394,7 +4404,7 @@ cat > engines/engines.mk << EOF
# This file is being included by "Makefile.common"
EOF
-for engine in $_engines; do
+for engine in $_sorted_engines; do
j=`echo $engine | tr '[:lower:]' '[:upper:]'`
if test "`get_engine_sub $engine`" = "no" ; then
# main engine
@@ -4428,7 +4438,7 @@ cat > engines/plugins_table.h << EOF
// This file is being included by "base/plugins.cpp"
EOF
-for engine in $_engines; do
+for engine in $_sorted_engines; do
if test "`get_engine_sub $engine`" = "no" ; then
j=`echo $engine | tr '[:lower:]' '[:upper:]'`
cat >> engines/plugins_table.h << EOF