Changeset 886
- Timestamp:
- Jul 13, 2011, 1:59:46 AM (14 years ago)
- Location:
- trunk/qmake/generators
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/qmake/generators/makefile.cpp
r860 r886 974 974 if(!project->isEmpty("QMAKE_ABSOLUTE_SOURCE_PATH")) 975 975 t << "QMAKE_PRL_SOURCE_DIR = " << project->first("QMAKE_ABSOLUTE_SOURCE_PATH") << endl; 976 977 976 978 if(!project->isEmpty("TARGET_SHORT")) 977 t << "QMAKE_PRL_TARGET = " << project->first("TARGET_SHORT") << endl; 978 else 979 t << "QMAKE_PRL_TARGET = " << target << endl; 979 t << "QMAKE_PRL_TARGET_SHORT = " << project->first("TARGET_SHORT") << endl; 980 980 981 if(!project->isEmpty("PRL_EXPORT_DEFINES")) 981 982 t << "QMAKE_PRL_DEFINES = " << project->values("PRL_EXPORT_DEFINES").join(" ") << endl; -
trunk/qmake/generators/os2/gnumake.cpp
r884 r886 615 615 616 616 if (mode == DLL) { 617 /* we neeed $(TARGET_IMPLIB) to be in sync with getLibTarget() */ 618 t << "TARGET_IMPLIB = $(basename $(DESTDIR_TARGET)).lib" << endl; 617 // Note: $(TARGET) may be shortened here due to TARGET_SHORT, use 618 // the original TARGET value (shortening does not affect implib names) 619 t << "TARGET_IMPLIB = $(DESTDIR)\\" << var("TARGET") << ".lib" << endl; 619 620 } 620 621 } … … 666 667 // GNUMakefileGenerator::findLibraries() 667 668 return; 668 }669 670 QString GNUMakefileGenerator::getLibTarget()671 {672 if (mode == DLL)673 return QString("$(notdir $(TARGET_IMPLIB))");674 return Win32MakefileGenerator::getLibTarget();675 669 } 676 670 -
trunk/qmake/generators/os2/gnumake.h
r670 r886 72 72 void processPrlVariable(const QString &var, const QStringList &l); 73 73 void processPrlFiles(); 74 QString getLibTarget();75 74 76 75 QStringList &findDependencies(const QString &file); -
trunk/qmake/generators/win32/winmakefile.cpp
r885 r886 785 785 QString Win32MakefileGenerator::getLibTarget() 786 786 { 787 QString target = project->first("TARGET_SHORT"); 788 if (target.isEmpty()) 789 target = project->first("TARGET"); 790 return QString(target + project->first("TARGET_VERSION_EXT") + ".lib"); 787 return QString(project->first("TARGET") + project->first("TARGET_VERSION_EXT") + ".lib"); 791 788 } 792 789
Note:
See TracChangeset
for help on using the changeset viewer.