scummvm/scummvm — pull request #204 by fingolfin (2012-03-01 18:11:28+00:00)
Title: Plugable engines (proof of concept)

This pull request is NOT meant to be pulled, but rather a call for comments on whether the ScummVM team would consider the idea implemented here.

In a nutshell, this patch adds to each engine a files called "engines.desc"; this contains meta information about the engines, based on data that is currently stored inside configure & base/plugins.cpp & engines/engine.mk.

Now, a small python script reads all engines/*/engine.desc files and from that regenerates the files mentioned above (or rather, it regenerates files they include). This makes it trivial to add (or remove) an engine: just copy the engine directory, run the update script, and "make").

More on this and some wild crazy ideas extending this can be read here: https://github.com/fingolfin/scummvm/wiki/Hooking-up-engines