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
commit00c27a28f91cc2bbf512461e69c86be998462728 (patch)
treeb60563b33a0f72865ea12485985e2c4fbd38af3b /configure
parentd77cf95a185a6c8f201f417d08f246727784f728 (diff)
downloadscummvm-rg350-00c27a28f91cc2bbf512461e69c86be998462728.tar.gz
scummvm-rg350-00c27a28f91cc2bbf512461e69c86be998462728.tar.bz2
scummvm-rg350-00c27a28f91cc2bbf512461e69c86be998462728.zip
BUILD: Split engines/plugins_table header down to a file per engine.
This is the third and final commit enabling fully pluggable engines. Now providing an engine folder contains a configure.engine, engine.mk and engine-plugin.h file, it will be picked up automatically by the configure script.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure11
1 files changed, 11 insertions, 0 deletions
diff --git a/configure b/configure
index 4825cdc498..2bad89a87d 100755
--- a/configure
+++ b/configure
@@ -4382,3 +4382,14 @@ include \$(srcdir)/Makefile
EOF
fi
+
+echo "Creating engines/plugins_table.h"
+cat > engines/plugins_table.h << EOF
+/* This file is automatically generated by configure */
+/* DO NOT EDIT MANUALLY */
+// 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
+done