Changeset 29 for trunk/qmake/generators
- Timestamp:
- Jun 12, 2009, 1:32:11 PM (16 years ago)
- Location:
- trunk/qmake/generators
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/qmake/generators/makefile.cpp
r27 r29 100 100 ret += dir; 101 101 ret += " "; 102 if(is WindowsShell())102 if(isDosLikeShell()) 103 103 ret += "$(MKDIR)"; 104 104 else … … 125 125 } 126 126 bool ret = true; 127 #if def Q_OS_WIN127 #if defined(Q_OS_WIN) || defined(Q_OS_OS2) 128 128 bool driveExists = true; 129 129 if(!QDir::isRelativePath(path)) { … … 1191 1191 { 1192 1192 QString rm_dir_contents("-$(DEL_FILE)"); 1193 if (!is WindowsShell()) //ick1193 if (!isDosLikeShell()) //ick 1194 1194 rm_dir_contents = "-$(DEL_FILE) -r"; 1195 1195 … … 1342 1342 for(QStringList::ConstIterator pit = dirs.begin(); pit != dirs.end(); ++pit) { 1343 1343 QString tmp_dst = fileFixify((*pit), FileFixifyAbsolute, false); 1344 if (!is WindowsShell() && tmp_dst.right(1) != Option::dir_sep)1344 if (!isDosLikeShell() && tmp_dst.right(1) != Option::dir_sep) 1345 1345 tmp_dst += Option::dir_sep; 1346 1346 t << mkdir_p_asstring(filePrefixRoot(root, tmp_dst)) << "\n\t"; -
trunk/qmake/generators/makefile.h
r2 r29 245 245 virtual bool mergeBuildProject(MakefileGenerator * /*other*/) { return false; } 246 246 virtual bool openOutput(QFile &, const QString &build) const; 247 virtual bool isWindowsShell() const { return Option::target_mode == Option::TARG_WIN_MODE; } 247 virtual bool isDosLikeShell() const { return Option::target_mode == Option::TARG_WIN_MODE || 248 Option::target_mode == Option::TARG_OS2_MODE; } 248 249 }; 249 250 -
trunk/qmake/generators/metamakefile.cpp
r2 r29 421 421 #include "unixmake.h" 422 422 #include "mingw_make.h" 423 #include "gnumake.h" 423 424 #include "projectgenerator.h" 424 425 #include "pbuilder_pbx.h" … … 447 448 } else if(gen == "MINGW") { 448 449 mkfile = new MingwMakefileGenerator; 450 } else if(gen == "GNUMAKE") { 451 mkfile = new GNUMakefileGenerator; 449 452 } else if(gen == "PROJECTBUILDER" || gen == "XCODE") { 450 453 mkfile = new ProjectBuilderMakefileGenerator; -
trunk/qmake/generators/os2/gnumake.cpp
r21 r29 60 60 } 61 61 62 bool GNUMakefileGenerator::is WindowsShell() const63 { 64 #ifdef Q_OS_ WIN62 bool GNUMakefileGenerator::isDosLikeShell() const 63 { 64 #ifdef Q_OS_OS2 65 65 return Option::shellPath.isEmpty(); 66 66 #else 67 return Win32MakefileGenerator::is WindowsShell();67 return Win32MakefileGenerator::isDosLikeShell(); 68 68 #endif 69 69 } … … 162 162 } 163 163 164 /* @todo remove 164 165 void createLdObjectScriptFile(const QString &fileName, const QStringList &objList) 165 166 { … … 199 200 } 200 201 } 202 */ 201 203 202 204 void GNUMakefileGenerator::writeGNUParts(QTextStream &t) … … 368 370 ar_script_file += "." + var("BUILD_NAME"); 369 371 } 372 /* @todo remove 370 373 createArObjectScriptFile(ar_script_file, var("DEST_TARGET"), project->values("OBJECTS")); 374 */ 371 375 objectsLinkLine = "ar -M < " + ar_script_file; 372 376 } else { … … 375 379 ld_script_file += "." + var("BUILD_NAME"); 376 380 } 381 /* @todo remove 377 382 createLdObjectScriptFile(ld_script_file, project->values("OBJECTS")); 383 */ 378 384 objectsLinkLine = ld_script_file; 379 385 } -
trunk/qmake/generators/os2/gnumake.h
r21 r29 58 58 QString getLibTarget(); 59 59 private: 60 bool is WindowsShell() const;60 bool isDosLikeShell() const; 61 61 void writeGNUParts(QTextStream &); 62 62 void writeIncPart(QTextStream &t); -
trunk/qmake/generators/win32/mingw_make.cpp
r2 r29 58 58 } 59 59 60 bool MingwMakefileGenerator::is WindowsShell() const60 bool MingwMakefileGenerator::isDosLikeShell() const 61 61 { 62 62 #ifdef Q_OS_WIN 63 63 return Option::shellPath.isEmpty(); 64 64 #else 65 return Win32MakefileGenerator::is WindowsShell();65 return Win32MakefileGenerator::isDosLikeShell(); 66 66 #endif 67 67 } -
trunk/qmake/generators/win32/mingw_make.h
r2 r29 56 56 QString getLibTarget(); 57 57 private: 58 bool is WindowsShell() const;58 bool isDosLikeShell() const; 59 59 void writeMingwParts(QTextStream &); 60 60 void writeIncPart(QTextStream &t);
Note:
See TracChangeset
for help on using the changeset viewer.