Changeset 529 for trunk/qmake/generators


Ignore:
Timestamp:
Feb 5, 2010, 12:42:15 AM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

qmake: Obey TARGET_SHORT when generating install commands for DLLs (which involve the import library which name is affected by TARGET_SHORT).

Location:
trunk/qmake/generators
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/qmake/generators/os2/gnumake.cpp

    r525 r529  
    636636}
    637637
     638QString GNUMakefileGenerator::getLibTarget()
     639{
     640    if (mode == DLL && !project->isEmpty("QMAKE_RUN_IMPLIB"))
     641        return QString("$(notdir $(TARGET_IMPLIB))");
     642    return Win32MakefileGenerator::getLibTarget();
     643}
     644
    638645QStringList &GNUMakefileGenerator::findDependencies(const QString &file)
    639646{
  • trunk/qmake/generators/os2/gnumake.h

    r370 r529  
    7272    void processPrlVariable(const QString &var, const QStringList &l);
    7373    void processPrlFiles();
     74    QString getLibTarget();
    7475
    7576    QStringList &findDependencies(const QString &file);
  • trunk/qmake/generators/win32/winmakefile.cpp

    r363 r529  
    456456        resFile.replace(".rc", Option::res_ext);
    457457        project->values("RES_FILE").prepend(fileInfo(resFile).fileName());
    458         if (!project->values("OBJECTS_DIR").isEmpty())
     458        if (!project->values("OBJECTS_DIR").isEmpty()) {
    459459            if(project->isActiveConfig("staticlib"))
    460460                project->values("RES_FILE").first().prepend(fileInfo(project->values("DESTDIR").first()).absoluteFilePath() + Option::dir_sep);
    461461            else
    462462              project->values("RES_FILE").first().prepend(project->values("OBJECTS_DIR").first() + Option::dir_sep);
     463        }
    463464        project->values("RES_FILE").first() = Option::fixPathToTargetOS(project->values("RES_FILE").first(), false, false);
    464465        project->values("POST_TARGETDEPS") += project->values("RES_FILE");
     
    768769QString Win32MakefileGenerator::getLibTarget()
    769770{
    770     return QString(project->first("TARGET") + project->first("TARGET_VERSION_EXT") + ".lib");
     771    QString target = project->first("TARGET_SHORT");
     772    if (target.isEmpty())
     773        target = project->first("TARGET");
     774    return QString(target + project->first("TARGET_VERSION_EXT") + ".lib");
    771775}
    772776
Note: See TracChangeset for help on using the changeset viewer.