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).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.