Changeset 10 for trunk/qmake/generators/os2/gnumake.cpp
- Timestamp:
- May 19, 2009, 1:12:24 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/qmake/generators/os2/gnumake.cpp
r7 r10 40 40 ****************************************************************************/ 41 41 42 #include " mingw_make.h"42 #include "gnumake.h" 43 43 #include "option.h" 44 44 #include "meta.h" … … 50 50 QT_BEGIN_NAMESPACE 51 51 52 MingwMakefileGenerator::MingwMakefileGenerator() : Win32MakefileGenerator(), init_flag(false)52 GNUMakefileGenerator::GNUMakefileGenerator() : Win32MakefileGenerator(), init_flag(false) 53 53 { 54 54 if (Option::shellPath.isEmpty()) … … 58 58 } 59 59 60 bool MingwMakefileGenerator::isWindowsShell() const60 bool GNUMakefileGenerator::isWindowsShell() const 61 61 { 62 62 #ifdef Q_OS_WIN … … 67 67 } 68 68 69 QString MingwMakefileGenerator::escapeDependencyPath(const QString &path) const69 QString GNUMakefileGenerator::escapeDependencyPath(const QString &path) const 70 70 { 71 71 QString ret = path; … … 76 76 } 77 77 78 QString MingwMakefileGenerator::getLibTarget()78 QString GNUMakefileGenerator::getLibTarget() 79 79 { 80 80 return QString("lib" + project->first("TARGET") + project->first("TARGET_VERSION_EXT") + ".a"); 81 81 } 82 82 83 bool MingwMakefileGenerator::findLibraries()83 bool GNUMakefileGenerator::findLibraries() 84 84 { 85 85 QStringList &l = project->values("QMAKE_LIBS"); … … 124 124 } 125 125 126 bool MingwMakefileGenerator::writeMakefile(QTextStream &t)126 bool GNUMakefileGenerator::writeMakefile(QTextStream &t) 127 127 { 128 128 writeHeader(t); … … 150 150 return true; 151 151 } 152 write MingwParts(t);152 writeGNUParts(t); 153 153 return MakefileGenerator::writeMakefile(t); 154 154 } … … 198 198 } 199 199 200 void MingwMakefileGenerator::writeMingwParts(QTextStream &t)200 void GNUMakefileGenerator::writeGNUParts(QTextStream &t) 201 201 { 202 202 writeStandardParts(t); … … 219 219 } 220 220 221 void MingwMakefileGenerator::init()221 void GNUMakefileGenerator::init() 222 222 { 223 223 if(init_flag) … … 309 309 } 310 310 311 void MingwMakefileGenerator::fixTargetExt()311 void GNUMakefileGenerator::fixTargetExt() 312 312 { 313 313 if (project->isActiveConfig("staticlib") && project->first("TEMPLATE") == "lib") { … … 320 320 } 321 321 322 void MingwMakefileGenerator::writeIncPart(QTextStream &t)322 void GNUMakefileGenerator::writeIncPart(QTextStream &t) 323 323 { 324 324 t << "INCPATH = "; … … 335 335 } 336 336 337 void MingwMakefileGenerator::writeLibsPart(QTextStream &t)337 void GNUMakefileGenerator::writeLibsPart(QTextStream &t) 338 338 { 339 339 if(project->isActiveConfig("staticlib") && project->first("TEMPLATE") == "lib") { … … 349 349 } 350 350 351 void MingwMakefileGenerator::writeLibDirPart(QTextStream &t)351 void GNUMakefileGenerator::writeLibDirPart(QTextStream &t) 352 352 { 353 353 QStringList libDirs = project->values("QMAKE_LIBDIR"); … … 357 357 } 358 358 359 void MingwMakefileGenerator::writeObjectsPart(QTextStream &t)359 void GNUMakefileGenerator::writeObjectsPart(QTextStream &t) 360 360 { 361 361 if (project->values("OBJECTS").count() < var("QMAKE_LINK_OBJECT_MAX").toInt()) { … … 379 379 } 380 380 381 void MingwMakefileGenerator::writeBuildRulesPart(QTextStream &t)381 void GNUMakefileGenerator::writeBuildRulesPart(QTextStream &t) 382 382 { 383 383 t << "first: all" << endl; … … 400 400 } 401 401 402 void MingwMakefileGenerator::writeRcFilePart(QTextStream &t)402 void GNUMakefileGenerator::writeRcFilePart(QTextStream &t) 403 403 { 404 404 const QString rc_file = fileFixify(project->first("RC_FILE")); … … 410 410 if (!rc_file.isEmpty()) { 411 411 t << escapeDependencyPath(var("RES_FILE")) << ": " << rc_file << "\n\t" 412 << var("QMAKE_RC") << " -i " << rc_file << " -o " << var("RES_FILE") 412 << var("QMAKE_RC") << " -i " << rc_file << " -o " << var("RES_FILE") 413 413 << " --include-dir=" << incPathStr << endl << endl; 414 414 } 415 415 } 416 416 417 void MingwMakefileGenerator::processPrlVariable(const QString &var, const QStringList &l)417 void GNUMakefileGenerator::processPrlVariable(const QString &var, const QStringList &l) 418 418 { 419 419 if (var == "QMAKE_PRL_LIBS") { … … 431 431 } 432 432 433 QStringList & MingwMakefileGenerator::findDependencies(const QString &file)433 QStringList &GNUMakefileGenerator::findDependencies(const QString &file) 434 434 { 435 435 QStringList &aList = MakefileGenerator::findDependencies(file);
Note:
See TracChangeset
for help on using the changeset viewer.