aboutsummaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorD G Turner2013-11-07 12:58:34 +0100
committerD G Turner2013-11-24 00:48:01 +0000
commit1ac01d2333af11d403ef84dd5192abb18814e5b3 (patch)
tree3cb2ba3a7a2c3aba1229ba4c99ec958ac63c1bbf /configure
parent00c27a28f91cc2bbf512461e69c86be998462728 (diff)
downloadscummvm-rg350-1ac01d2333af11d403ef84dd5192abb18814e5b3.tar.gz
scummvm-rg350-1ac01d2333af11d403ef84dd5192abb18814e5b3.tar.bz2
scummvm-rg350-1ac01d2333af11d403ef84dd5192abb18814e5b3.zip
BUILD: Remove need for engine-plugin.h in engines.
This is now generated automatically by the configure script from the engine directory names.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 9 insertions, 2 deletions
diff --git a/configure b/configure
index 2bad89a87d..1832383a25 100755
--- a/configure
+++ b/configure
@@ -4390,6 +4390,13 @@ cat > engines/plugins_table.h << EOF
// This file is being included by "base/plugins.cpp"
EOF
-for i in $_srcdir/engines/*/engine-plugin.h; do
- cat $i >> engines/plugins_table.h
+for i in $_srcdir/engines/*; do
+ if [ -d $i ]; then
+ j=`echo ${i#$_srcdir/engines/} | tr '[:lower:]' '[:upper:]'`
+ cat >> engines/plugins_table.h << EOF
+#if PLUGIN_ENABLED_STATIC($j)
+LINK_PLUGIN($j)
+#endif
+EOF
+ fi
done