Reapply a6ded89075.
This already works with all the platforms on buildbot. The mingw release
environment had a misconfigured sdl2-config, but this should now be
fixed.
sdl2-config should return the correct paths without it. Trying to determine
the path by name lookup is error-prone.
For example, if both the host and a cross-toolchain have sdl2 installed,
the host executable is typically /usr/bin/sdl2-config, and the
cross-toolchain is <triplet>-sdl2-config and
/path/to/toolchain/triplet/bin/sdl2-config.
The toolchain bin path should not be part of PATH, because this can cause
clashes when building for the host (depends on the PATH order, and if the
tool exists on both).
And even if we do add the toolchain bin path, like we currently do at least
on MXE container, if the host path comes before the toolchain then the
<triplet>-sdl2-config will be detected, but this executable *is not* in the
directory that relates to this toolchain, but in the host bin (for example,
/opt/mxe/bin), so we pass the wrong path to --prefix and sdl2 breaks.
This only worked on buildbot because the lookup for mingw was sdl-config
instead of sdl2-config, and sdl-config just doesn't exist on the system.
Create a new flag --enable-windows-console to build with console
output on MinGW. The default behavior will be to enable the console.
The current plan is to continue to offer the users both options for
release builds - ScummVM and ScummVM (noconsole).
Whenever the text console is enabled, Windows console will be added
by default. This is to prevent a situation where ScummVM will not load
any visible debug console on hotkey or error.
On AmigaOS miniGL is a static library and linking against it in plugins
prevents to have a shared context. By linking only in main executable,
this forces plugins to use the only context available in scummvm binary.
- Change install path to use an assign instead of an absolute path
- Change system dialogs output to print "asl" instead of "amigaos (asl)", incorporated with morphos (since both targets use the same dialog system) to save some lines
When a subengine is added, its parent engine needs to be rebuilt.
A real solution will be to create a make-dependency file for each engine,
and touch it when its subengines change, but for now we'll just rebuild
everything.
Translated most of the engine work from shell to awk.
Tested that the output is the same (except the order of created files).
Time comparison
---------------
Windows:
* Little gnomes - 99s -> 0.3s
* Creating - 68s -> 1s
* Total - 205s -> 35s
Linux:
* Little gnomes - 3s -> 0.03s
* Creating - 2s -> 0.11s
* Total - 8s -> 3.8s