Changeset 363 for trunk/qmake/project.cpp
- Timestamp:
- Nov 30, 2009, 6:52:30 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/qmake/project.cpp
r362 r363 1457 1457 if (QFile::exists(qmakespec+"/qmake.conf")) { 1458 1458 Option::mkfile::qmakespec = QFileInfo(Option::mkfile::qmakespec).absoluteFilePath(); 1459 } else if (QFile::exists(Option::output_dir+"/"+qmakespec+"/qmake.conf")) { 1460 qmakespec = Option::mkfile::qmakespec = QFileInfo(Option::output_dir+"/"+qmakespec).absoluteFilePath(); 1459 1461 } else { 1460 QString tmp = QDir(Option::output_dir).absoluteFilePath(qmakespec); 1461 if (QFile::exists(tmp+"/qmake.conf")) 1462 qmakespec = Option::mkfile::qmakespec = tmp; 1463 else { 1464 bool found_mkspec = false; 1465 foreach(const QString &root, mkspec_roots) { 1466 QString mkspec = QDir(root).absoluteFilePath(qmakespec); 1467 if(QFile::exists(mkspec)) { 1468 found_mkspec = true; 1469 Option::mkfile::qmakespec = qmakespec = mkspec; 1470 break; 1471 } 1462 bool found_mkspec = false; 1463 for(QStringList::ConstIterator it = mkspec_roots.begin(); it != mkspec_roots.end(); ++it) { 1464 QString mkspec = (*it) + QDir::separator() + qmakespec; 1465 if(QFile::exists(mkspec)) { 1466 found_mkspec = true; 1467 Option::mkfile::qmakespec = qmakespec = mkspec; 1468 break; 1472 1469 } 1473 if(!found_mkspec) {1474 fprintf(stderr, "Could not find mkspecs for your QMAKESPEC(%s) after trying:\n\t%s\n",1475 qmakespec.toLatin1().constData(), mkspec_roots.join("\n\t").toLatin1().constData());1476 return false;1477 }1470 } 1471 if(!found_mkspec) { 1472 fprintf(stderr, "Could not find mkspecs for your QMAKESPEC(%s) after trying:\n\t%s\n", 1473 qmakespec.toLatin1().constData(), mkspec_roots.join("\n\t").toLatin1().constData()); 1474 return false; 1478 1475 } 1479 1476 } … … 1778 1775 include_roots << qmake_getpwd(); 1779 1776 include_roots << Option::output_dir; 1780 foreach(const QString &root, include_roots) { 1781 QString testName = QDir(root).absoluteFilePath(file); 1777 for(int root = 0; root < include_roots.size(); ++root) { 1778 QString testName = QDir::toNativeSeparators(include_roots[root]); 1779 if (!testName.endsWith(QString(QDir::separator()))) 1780 testName += QDir::separator(); 1781 testName += file; 1782 1782 if(QFile::exists(testName)) { 1783 1783 file = testName;
Note:
See TracChangeset
for help on using the changeset viewer.