From aa947c9474ad83aa9315bc585d1f0b79060fee61 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Thu, 7 Nov 2013 12:58:33 +0100 Subject: BUILD: Split configure.engines down to a single file per engine. This is the first part of allowing engines to be added dynamically. They are placed into a folder in engines/ which must contain a file named "configure.engine" to add the engine, which is pulled into the top level configure script automatically. --- engines/toltecs/configure.engine | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 engines/toltecs/configure.engine (limited to 'engines/toltecs') diff --git a/engines/toltecs/configure.engine b/engines/toltecs/configure.engine new file mode 100644 index 0000000000..be5533efa2 --- /dev/null +++ b/engines/toltecs/configure.engine @@ -0,0 +1,3 @@ +# This file is included from the main "configure" script +# add_engine [name] [desc] [build-by-default] [subengines] [base games] [deps] +add_engine toltecs "3 Skulls of the Toltecs" yes -- cgit v1.2.3 From d77cf95a185a6c8f201f417d08f246727784f728 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Thu, 7 Nov 2013 12:58:34 +0100 Subject: BUILD: Split engines.mk down to a single file per engine. This is the second part of allowing engines to be added dynamically. Each folder in engines/ which must contain a file named "engine.mk" containing the make definitions for that engine. --- engines/toltecs/engine.mk | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 engines/toltecs/engine.mk (limited to 'engines/toltecs') diff --git a/engines/toltecs/engine.mk b/engines/toltecs/engine.mk new file mode 100644 index 0000000000..38bf6c04b8 --- /dev/null +++ b/engines/toltecs/engine.mk @@ -0,0 +1,4 @@ +ifdef ENABLE_TOLTECS +DEFINES += -DENABLE_TOLTECS=$(ENABLE_TOLTECS) +MODULES += engines/toltecs +endif -- cgit v1.2.3 From 00c27a28f91cc2bbf512461e69c86be998462728 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Thu, 7 Nov 2013 12:58:34 +0100 Subject: 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. --- engines/toltecs/engine-plugin.h | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 engines/toltecs/engine-plugin.h (limited to 'engines/toltecs') diff --git a/engines/toltecs/engine-plugin.h b/engines/toltecs/engine-plugin.h new file mode 100644 index 0000000000..8d6320957f --- /dev/null +++ b/engines/toltecs/engine-plugin.h @@ -0,0 +1,3 @@ +#if PLUGIN_ENABLED_STATIC(TOLTECS) +LINK_PLUGIN(TOLTECS) +#endif -- cgit v1.2.3 From 1ac01d2333af11d403ef84dd5192abb18814e5b3 Mon Sep 17 00:00:00 2001 From: D G Turner Date: Thu, 7 Nov 2013 12:58:34 +0100 Subject: BUILD: Remove need for engine-plugin.h in engines. This is now generated automatically by the configure script from the engine directory names. --- engines/toltecs/engine-plugin.h | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 engines/toltecs/engine-plugin.h (limited to 'engines/toltecs') diff --git a/engines/toltecs/engine-plugin.h b/engines/toltecs/engine-plugin.h deleted file mode 100644 index 8d6320957f..0000000000 --- a/engines/toltecs/engine-plugin.h +++ /dev/null @@ -1,3 +0,0 @@ -#if PLUGIN_ENABLED_STATIC(TOLTECS) -LINK_PLUGIN(TOLTECS) -#endif -- cgit v1.2.3 From ef85456859e466adc8913041e4f31809485c45ab Mon Sep 17 00:00:00 2001 From: D G Turner Date: Thu, 7 Nov 2013 12:58:34 +0100 Subject: BUILD: Remove need for engine.mk in each engine directory. Each engine now only has to provide a single configure.engine file adding the engine into the configure script, which then produces the required other files automatically. --- engines/toltecs/engine.mk | 4 ---- 1 file changed, 4 deletions(-) delete mode 100644 engines/toltecs/engine.mk (limited to 'engines/toltecs') diff --git a/engines/toltecs/engine.mk b/engines/toltecs/engine.mk deleted file mode 100644 index 38bf6c04b8..0000000000 --- a/engines/toltecs/engine.mk +++ /dev/null @@ -1,4 +0,0 @@ -ifdef ENABLE_TOLTECS -DEFINES += -DENABLE_TOLTECS=$(ENABLE_TOLTECS) -MODULES += engines/toltecs -endif -- cgit v1.2.3