diff options
author | axis <qt-info@nokia.com> | 2011-01-07 06:56:19 (GMT) |
---|---|---|
committer | axis <qt-info@nokia.com> | 2011-03-04 10:43:57 (GMT) |
commit | 85005fb1ee135b33ef2e97396d469112845f3e6c (patch) | |
tree | 1d9df54a509a8fce9bd1e232707a655357dc7f92 /qmake/generators/win32 | |
parent | 7dacac5ad465fe5c3aea8e2e09d7910a1ed58079 (diff) | |
download | Qt-85005fb1ee135b33ef2e97396d469112845f3e6c.zip Qt-85005fb1ee135b33ef2e97396d469112845f3e6c.tar.gz Qt-85005fb1ee135b33ef2e97396d469112845f3e6c.tar.bz2 |
Added support for rvct_linker config in qmake's MinGW generator.
RevBy: Trust me
Diffstat (limited to 'qmake/generators/win32')
-rw-r--r-- | qmake/generators/win32/mingw_make.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/qmake/generators/win32/mingw_make.cpp b/qmake/generators/win32/mingw_make.cpp index a772b38..f1043bc 100644 --- a/qmake/generators/win32/mingw_make.cpp +++ b/qmake/generators/win32/mingw_make.cpp @@ -368,17 +368,25 @@ void MingwMakefileGenerator::writeLibsPart(QTextStream &t) t << "LIBS = "; if(!project->values("QMAKE_LIBDIR").isEmpty()) writeLibDirPart(t); - t << var("QMAKE_LIBS").replace(QRegExp("(\\slib|^lib)")," -l") << ' ' - << var("QMAKE_LIBS_PRIVATE").replace(QRegExp("(\\slib|^lib)")," -l") << endl; + if (project->isActiveConfig("rvct_linker")) { + t << var("QMAKE_LIBS") << ' ' + << var("QMAKE_LIBS_PRIVATE") << endl; + } else { + t << var("QMAKE_LIBS").replace(QRegExp("(\\slib|^lib)")," -l") << ' ' + << var("QMAKE_LIBS_PRIVATE").replace(QRegExp("(\\slib|^lib)")," -l") << endl; + } } } void MingwMakefileGenerator::writeLibDirPart(QTextStream &t) { QStringList libDirs = project->values("QMAKE_LIBDIR"); + QString libArg = QString::fromLatin1("-L"); + if (project->isActiveConfig("rvct_linker")) + libArg = QString::fromLatin1("--userlibpath "); for (int i = 0; i < libDirs.size(); ++i) libDirs[i].remove("\""); - t << valGlue(libDirs,"-L"+quote,quote+" -L" +quote,quote) << " "; + t << valGlue(libDirs, libArg+quote, quote+" "+libArg+quote, quote) << " "; } void MingwMakefileGenerator::writeObjectsPart(QTextStream &t) |