Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/qmake/generators/win32/winmakefile.cpp

    r769 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    473473        project->values("RES_FILE").prepend(fileInfo(resFile).fileName());
    474474        if (!project->values("OBJECTS_DIR").isEmpty()) {
    475             if(project->isActiveConfig("staticlib"))
    476                 project->values("RES_FILE").first().prepend(fileInfo(project->values("DESTDIR").first()).absoluteFilePath() + Option::dir_sep);
     475            QString resDestDir;
     476            if (project->isActiveConfig("staticlib"))
     477                resDestDir = fileInfo(project->first("DESTDIR")).absoluteFilePath();
    477478            else
    478               project->values("RES_FILE").first().prepend(project->values("OBJECTS_DIR").first() + Option::dir_sep);
     479                resDestDir = project->first("OBJECTS_DIR");
     480            resDestDir.append(Option::dir_sep);
     481            project->values("RES_FILE").first().prepend(resDestDir);
    479482        }
    480483        project->values("RES_FILE").first() = Option::fixPathToTargetOS(project->values("RES_FILE").first(), false, false);
     
    605608    writeLibsPart(t);
    606609
    607     t << "QMAKE         = " << (project->isEmpty("QMAKE_QMAKE") ? QString("qmake") :
    608                               Option::fixPathToTargetOS(var("QMAKE_QMAKE"), false)) << endl;
     610    t << "QMAKE         = " << var("QMAKE_QMAKE") << endl;
    609611    t << "IDC           = " << (project->isEmpty("QMAKE_IDC") ? QString("idc") :
    610612                              Option::fixPathToTargetOS(var("QMAKE_IDC"), false)) << endl;
     
    658660    t << "DIST          = " << varList("DISTFILES") << endl;
    659661    t << "QMAKE_TARGET  = " << var("QMAKE_ORIG_TARGET") << endl;
    660     // The comment is important to maintain variable compatability with Unix
     662    // The comment is important to maintain variable compatibility with Unix
    661663    // Makefiles, while not interpreting a trailing-slash as a linebreak
    662664    t << "DESTDIR        = " << escapeFilePath(destDir) << " #avoid trailing-slash linebreak" << endl;
     
    789791        target = project->first("TARGET");
    790792    return QString(target + project->first("TARGET_VERSION_EXT") + ".lib");
     793}
     794
     795QString Win32MakefileGenerator::getPdbTarget()
     796{
     797    return QString(project->first("TARGET") + project->first("TARGET_VERSION_EXT") + ".pdb");
    791798}
    792799
     
    841848            uninst.append("-$(DEL_FILE) \"" + dst_targ + "\"" + del_suffix);
    842849        }
     850        if(project->isActiveConfig("shared") && project->isActiveConfig("debug")) {
     851            QString pdb_target = getPdbTarget();
     852            pdb_target.remove('"');
     853            QString src_targ = (project->isEmpty("DESTDIR") ? QString("$(DESTDIR)") : project->first("DESTDIR")) + pdb_target;
     854            QString dst_targ = filePrefixRoot(root, fileFixify(targetdir + pdb_target, FileFixifyAbsolute));
     855            if(!ret.isEmpty())
     856                ret += "\n\t";
     857            ret += QString("-$(INSTALL_FILE)") + " \"" + src_targ + "\" \"" + dst_targ + "\"";
     858            if(!uninst.isEmpty())
     859                uninst.append("\n\t");
     860            uninst.append("-$(DEL_FILE) \"" + dst_targ + "\"");
     861        }
    843862    }
    844863
Note: See TracChangeset for help on using the changeset viewer.