Support mkspecs in subdirs for xcompile under windows
Support mkspecs in subdirectories for cross compilation under windows. Mkspecs in subdirectories are separated by slashes. Change-Id: Id3954cc38df2922b20156589335faad989ec0537 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>bb10
parent
61196fc248
commit
a3a1fea094
|
|
@ -47,6 +47,7 @@
|
|||
|
||||
#include <QDate>
|
||||
#include <qdir.h>
|
||||
#include <qdiriterator.h>
|
||||
#include <qtemporaryfile.h>
|
||||
#include <qstack.h>
|
||||
#include <qdebug.h>
|
||||
|
|
@ -355,7 +356,6 @@ QString Configure::firstLicensePath()
|
|||
return QString();
|
||||
}
|
||||
|
||||
|
||||
// #### somehow I get a compiler error about vc++ reaching the nesting limit without
|
||||
// undefining the ansi for scoping.
|
||||
#ifdef for
|
||||
|
|
@ -1083,8 +1083,16 @@ void Configure::parseCmdLine()
|
|||
}
|
||||
|
||||
// Ensure that QMAKESPEC exists in the mkspecs folder
|
||||
QDir mkspec_dir = fixSeparators(sourcePath + "/mkspecs");
|
||||
QStringList mkspecs = mkspec_dir.entryList(QDir::AllDirs | QDir::NoDotAndDotDot);
|
||||
const QString mkspecPath = fixSeparators(sourcePath + "/mkspecs");
|
||||
QDirIterator itMkspecs(mkspecPath, QDir::AllDirs | QDir::NoDotAndDotDot, QDirIterator::Subdirectories);
|
||||
QStringList mkspecs;
|
||||
|
||||
while (itMkspecs.hasNext()) {
|
||||
QString mkspec = itMkspecs.next();
|
||||
// Remove base PATH
|
||||
mkspec.remove(0, mkspecPath.length() + 1);
|
||||
mkspecs << mkspec;
|
||||
}
|
||||
|
||||
if (dictionary["QMAKESPEC"].toLower() == "features"
|
||||
|| !mkspecs.contains(dictionary["QMAKESPEC"], Qt::CaseInsensitive)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue