Implement missing replacements when installing .pc files for win32
authorHib Eris <hib@hiberis.nl>
Wed, 8 Feb 2012 12:36:28 +0000 (13:36 +0100)
committerQt by Nokia <qt-info@nokia.com>
Tue, 28 Feb 2012 23:05:38 +0000 (00:05 +0100)
commit78faefdbb1ccc296c967dde40e2a7a1c78e4cec2
tree7b2d0d73278047785ed78d5daf04c7d69ebdf94d
parent672e5a4e883cd894d0e2a0e058d8f8d9a8d87746
Implement missing replacements when installing .pc files for win32

This implements replacements for win32 makefile generators similar
to the replacement functionality in unix makefile generators.

To enable Makefile code generation for replacements in win32 makefile
generators, you must set QMAKE_STREAM_EDITOR to e.g. sed.

When building for win32, sed is normally only available in the
mingw/msys build environment and when cross compiling on unix.
In these cases QMAKE_STREAM_EDITOR is set to sed in qmake.conf.

For other win32 build environments QMAKE_STREAM_EDITOR is not set
in qmake.conf and the replacements Makefile code is not generated.

Change-Id: Ie5de5d517eafaeaa2544f1e972aec3fe11d0a6f1
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
mkspecs/unsupported/win32-g++-cross/qmake.conf
mkspecs/win32-g++/qmake.conf
qmake/generators/win32/winmakefile.cpp