Changeset 973
- Timestamp:
- Aug 12, 2011, 3:55:22 PM (14 years ago)
- Location:
- trunk/qmake/generators
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/qmake/generators/makefile.h
r846 r973 96 96 void writeObj(QTextStream &, const QString &src); 97 97 void writeInstalls(QTextStream &t, const QString &installs, bool noBuild=false); 98 v oid writeHeader(QTextStream &t);98 void writeHeader(QTextStream &t); 99 99 void writeSubDirs(QTextStream &t); 100 100 void writeMakeQmake(QTextStream &t); -
trunk/qmake/generators/os2/gnumake.cpp
r953 r973 290 290 } 291 291 292 bool GNUMakefileGenerator::writeMakefile(QTextStream &t)293 { 294 writeHeader(t);292 (QTextStream &t) 293 { 294 writeHeader(t); 295 295 296 296 /* function to convert from DOS-like to Unix-like space escaping in file … … 303 303 t << "QMAKESPECDIR = " << escapeFilePath(specdir()) << endl; 304 304 305 QString ofile = escapeFilePath(Option::output.fileName()); 306 if(ofile.lastIndexOf(Option::dir_sep) != -1) 307 ofile = ofile.right(ofile.length() - ofile.lastIndexOf(Option::dir_sep) -1); 308 t << "MAKEFILE = " << ofile << endl << endl; 305 // MakefileGenerator::writeSubTargets() already puts the MAKEFILE definitoin 306 // but others don't; add it here since we use it within generated makefiles 307 if (project->first("TEMPLATE") != "subdirs") { 308 QString ofile = escapeFilePath(Option::output.fileName()); 309 if(ofile.lastIndexOf(Option::dir_sep) != -1) 310 ofile = ofile.right(ofile.length() - ofile.lastIndexOf(Option::dir_sep) -1); 311 t << "MAKEFILE = " << ofile << endl; 312 } 313 314 t << endl; 315 } 316 317 bool GNUMakefileGenerator::writeMakefile(QTextStream &t) 318 { 319 writeHeader(t); 309 320 310 321 if(!project->values("QMAKE_FAILED_REQUIREMENTS").isEmpty()) { -
trunk/qmake/generators/os2/gnumake.h
r896 r973 63 63 void writeLibsPart(QTextStream &t); 64 64 void writeLibDirPart(QTextStream &t); 65 65 66 bool writeMakefile(QTextStream &); 66 67 void writeObjectsPart(QTextStream &t);
Note:
See TracChangeset
for help on using the changeset viewer.