fix host vs. makefile directory separator mess
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>
Wed, 25 Jul 2012 08:51:44 +0000 (10:51 +0200)
committerQt by Nokia <qt-info@nokia.com>
Fri, 27 Jul 2012 22:09:45 +0000 (00:09 +0200)
commite07372ff5077e60136451733dab59e46f3e9132d
tree344620f92442717438206d9f535f100bf9d873f7
parentd9048bef20103ac0c1af3365c8a47f1569a8e529
fix host vs. makefile directory separator mess

the system path separator and shell are bound to the host system
(system() will use cmd even on mingw with sh.exe in path).
the makefiles otoh may depend on what the qmakespec defines.

consequently, add $$system_path() and $$system_quote() (for use with
system() & $$system()). $$native_path() is renamed to $$shell_path() and
should be used with $$shell_quote() to produce command lines in
makefiles.
$$QMAKE_DIR_SEP needs to be applied to Option::dir_sep right after
parsing the spec, so it is available to $$shell_{path,quote}().

Change-Id: If3db4849e7f96068cf03a32348a24f3a72d6292c
Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
mkspecs/features/configure.prf
mkspecs/features/default_post.prf
mkspecs/features/incredibuild_xge.prf
mkspecs/features/qt_functions.prf
mkspecs/features/testcocoon.prf
mkspecs/features/win32/embed_manifest_dll.prf
mkspecs/features/win32/embed_manifest_exe.prf
qmake/option.cpp
qmake/project.cpp
tests/auto/tools/qmake/testdata/functions/functions.pro