Changeset 882 for trunk/qmake/generators/os2/gnumake.cpp
- Timestamp:
- Jul 7, 2011, 1:55:27 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/qmake/generators/os2/gnumake.cpp
r880 r882 424 424 && project->isActiveConfig("precompile_header")) { 425 425 QString preCompHeader = var("PRECOMPILED_DIR") 426 426 + QFileInfo(project->first("PRECOMPILED_HEADER")).fileName(); 427 427 preCompHeaderOut = preCompHeader + ".gch"; 428 428 project->values("QMAKE_CLEAN").append(preCompHeaderOut + Option::dir_sep + "c"); … … 430 430 431 431 project->values("QMAKE_RUN_CC").clear(); 432 432 project->values("QMAKE_RUN_CC").append("$(CC) -c -include " + preCompHeader + 433 433 " $(CFLAGS) $(INCPATH) -o $obj $src"); 434 434 project->values("QMAKE_RUN_CC_IMP").clear(); … … 565 565 { 566 566 if (!project->isEmpty("RC_FILE")) { 567 t << "RC_FILE = " << escapeFilePath( var("RC_FILE")) << endl;567 t << "RC_FILE = " << escapeFilePath(fileFixify(var("RC_FILE"))) << endl; 568 568 } 569 569 if (!project->isEmpty("RES_FILE")) { 570 t << "RES_FILE = " << valList(escapeFilePaths( project->values("RES_FILE"))) << endl;570 t << "RES_FILE = " << valList(escapeFilePaths(fileFixify(project->values("RES_FILE")))) << endl; 571 571 } 572 572 … … 589 589 } 590 590 if (!project->isEmpty("DEF_FILE_TEMPLATE")) { 591 t << "DEF_FILE_TEMPLATE = " << escapeFilePath( var("DEF_FILE_TEMPLATE")) << endl;591 t << "DEF_FILE_TEMPLATE = " << escapeFilePath(fileFixify(var("DEF_FILE_TEMPLATE"))) << endl; 592 592 haveSomething = true; 593 593 } 594 594 if (!project->isEmpty("DEF_FILE_MAP")) { 595 t << "DEF_FILE_MAP = " << escapeFilePath( var("DEF_FILE_MAP")) << endl;595 t << "DEF_FILE_MAP = " << escapeFilePath(fileFixify(var("DEF_FILE_MAP"))) << endl; 596 596 haveSomething = true; 597 597 } … … 601 601 } else if (haveSomething) { 602 602 // the EXE needs it only if there's a description info 603 t << "DEF_FILE_EXETYPE = " << escapeFilePath(var("DEF_FILE_EXETYPE")) << endl;603 t << "DEF_FILE_EXETYPE = " << var("DEF_FILE_EXETYPE") << endl; 604 604 t << "DEF_FILE = $(OBJECTS_DIR)\\$(TARGET).def" << endl; 605 605 } … … 610 610 exit(1); 611 611 } 612 t << "DEF_FILE = " << escapeFilePath( var("DEF_FILE")) << endl;612 t << "DEF_FILE = " << escapeFilePath(fileFixify(var("DEF_FILE"))) << endl; 613 613 } 614 614 } … … 643 643 exit(1); 644 644 } 645 645 project->values("RES_FILE").prepend(escapeFilePath(QString("$(OBJECTS_DIR)") + 646 646 QDir::separator() + 647 647 QFileInfo(var("RC_FILE")).baseName() + 648 648 ".res")); 649 649 project->values("CLEAN_FILES") += "$(RES_FILE)"; 650 650 } 651 651 … … 719 719 QString filePath = project->first("OBJECTS_DIR"); 720 720 if (filePath.isEmpty()) 721 filePath = Option::output_dir;721 filePath = fileFixify(Option::output_dir); 722 722 filePath = Option::fixPathToTargetOS(filePath + QDir::separator() + fileName); 723 723 return filePath; … … 741 741 QString fileName = makeResponseFileName(vars[i]); 742 742 t << rspVar.leftJustified(14) << "= " << fileName << endl; 743 QFile file( fileName);743 QFile file(QDir(Option::output_dir).absoluteFilePath(fileName)); 744 744 if (file.open(QIODevice::WriteOnly | QIODevice::Text)) { 745 745 QTextStream rt(&file); … … 772 772 QString fileName = makeResponseFileName("OBJECTS"); 773 773 t << var.leftJustified(14) << "= " << fileName << endl; 774 QFile file( fileName);774 QFile file(QDir(Option::output_dir).absoluteFilePath(fileName)); 775 775 if (file.open(QIODevice::WriteOnly | QIODevice::Text)) { 776 776 QTextStream rt(&file);
Note:
See TracChangeset
for help on using the changeset viewer.