Changeset 885 for trunk/qmake/generators/win32/winmakefile.cpp
- Timestamp:
- Jul 13, 2011, 1:49:44 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/qmake/generators/win32/winmakefile.cpp
r846 r885 660 660 t << "DIST = " << varList("DISTFILES") << endl; 661 661 t << "QMAKE_TARGET = " << var("QMAKE_ORIG_TARGET") << endl; 662 // The comment is important to maintain variable compatibility with Unix 663 // Makefiles, while not interpreting a trailing-slash as a linebreak 664 t << "DESTDIR = " << escapeFilePath(destDir) << " #avoid trailing-slash linebreak" << endl; 662 t << "DESTDIR = " << escapeFilePath(destDir) << endl; 665 663 t << "TARGET = " << escapeFilePath(target) << endl; 666 664 t << "DESTDIR_TARGET = " << escapeFilePath(var("DEST_TARGET")) << endl; … … 880 878 if(!ret.isEmpty()) { 881 879 ret = unescapeFilePath(ret); 882 if(ret.contains(" ")) 880 // Note: also quote paths ending with the backslash to avoid 881 // interpreting it as a linebreak 882 if(ret.contains(' ') || ret.endsWith('\\')) 883 883 ret = "\"" + ret + "\""; 884 884 debug_msg(2, "EscapeFilePath: %s -> %s", path.toLatin1().constData(), ret.toLatin1().constData());
Note:
See TracChangeset
for help on using the changeset viewer.