scummvm/scummvm — pull request #274 by lordhoto (2012-08-31 20:26:38+00:00)
Title: RFC: CONFIGURE: Allow dependency checks for engines.

Also adds PNG as a dependency for sword25 and removes the hardcoded check for it.

This is really just for discussion. But it should be helpful for WME too, which for example requires Vorbis right now. This way to specify dependencies can also be helpful for create_project, since we can parse the dependency lists there and process them. Without this change we would need to duplicate such hard coded checks, like the sword25 one, for configure and create_project.

Things which could be done:
* Add Theora and/or 16 bit support as dependency for sword25. Should be trivial to do.

* Nicer output for the missing dependency list. Here we might do something similar to "add_engine" and specify a nice name for each feature.

My sh skills are not the best, so if someone wants to pick this up and further improve it (maybe even after a merge), that would be nice.