qmake/generators/win32/mingw_make.cpp
branchRCL_3
changeset 8 3f74d0d4af4c
parent 4 3b1da2848fc7
equal deleted inserted replaced
6:dee5afe5301f 8:3f74d0d4af4c
   162         return true;
   162         return true;
   163     }
   163     }
   164     return false;
   164     return false;
   165  }
   165  }
   166 
   166 
   167 void createLdObjectScriptFile(const QString &fileName, const QStringList &objList)
   167  void MingwMakefileGenerator::createLdObjectScriptFile(const QString &fileName, const QStringList &objList)
   168 {
   168 {
   169     QString filePath = Option::output_dir + QDir::separator() + fileName;
   169     QString filePath = Option::output_dir + QDir::separator() + fileName;
   170     QFile file(filePath);
   170     QFile file(filePath);
   171     if (file.open(QIODevice::WriteOnly | QIODevice::Text)) {
   171     if (file.open(QIODevice::WriteOnly | QIODevice::Text)) {
   172         if (Option::mkfile::listgen) {
   172         if (Option::mkfile::listgen) {
   173             // TODO generatePrint(fileInfo(file.fileName()).absoluteFilePath());
   173             generatePrint(QFileInfo(file.fileName()).absoluteFilePath());
   174         }
   174         }
   175         QTextStream t(&file);
   175         QTextStream t(&file);
   176         t << "INPUT(" << endl;
   176         t << "INPUT(" << endl;
   177         for (QStringList::ConstIterator it = objList.constBegin(); it != objList.constEnd(); ++it) {
   177         for (QStringList::ConstIterator it = objList.constBegin(); it != objList.constEnd(); ++it) {
   178             if (QDir::isRelativePath(*it))
   178             if (QDir::isRelativePath(*it))
   184 	t.flush();
   184 	t.flush();
   185         file.close();
   185         file.close();
   186     }
   186     }
   187 }
   187 }
   188 
   188 
   189 void createArObjectScriptFile(const QString &fileName, const QString &target, const QStringList &objList)
   189 void MingwMakefileGenerator::createArObjectScriptFile(const QString &fileName, const QString &target, const QStringList &objList)
   190 {
   190 {
   191     QString filePath = Option::output_dir + QDir::separator() + fileName;
   191     QString filePath = Option::output_dir + QDir::separator() + fileName;
   192     QFile file(filePath);
   192     QFile file(filePath);
   193     if (file.open(QIODevice::WriteOnly | QIODevice::Text)) {
   193     if (file.open(QIODevice::WriteOnly | QIODevice::Text)) {
   194         if (Option::mkfile::listgen) {
   194         if (Option::mkfile::listgen) {
   195             // TODO generatePrint(file.fileName()).absoluteFilePath());
   195             generatePrint(QFileInfo(file.fileName()).absoluteFilePath());
   196         }
   196         }
   197         QTextStream t(&file);
   197         QTextStream t(&file);
   198         t << "CREATE " << target << endl;
   198         t << "CREATE " << target << endl;
   199         for (QStringList::ConstIterator it = objList.constBegin(); it != objList.constEnd(); ++it) {
   199         for (QStringList::ConstIterator it = objList.constBegin(); it != objList.constEnd(); ++it) {
   200             if (QDir::isRelativePath(*it))
   200             if (QDir::isRelativePath(*it))