WIN32: Dynamic Plugin support with MinGW
|Reported by:||lordhoto||Owned by:||lordhoto|
I added dynamic plugin build support for Windows with MinGW. I'm using the method described here: http://edll.sourceforge.net/index.html#gimp
It builds and works fine with my mingw ("gcc version 3.4.5 (mingw special)").
There're some problems though, since engines like SCUMM or AGOS are using zlib from inside their engines I have to link the plugins against $(LIBS), which is rather bad, it could be 'worked around' by adding some wrapper function to the ScummVM core, since just those symbols are exported to be accessable by the plugin.
Also I'm not sure if this solution is OK for us. Maybe we want a solution working with MSVC too? That's why I'm posting it here instead of just commiting it.
Ticket imported from: #1715310. Ticket imported from: patches/762.