Changeset 846 for trunk/qmake/generators/win32/winmakefile.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/qmake/generators/win32/winmakefile.cpp
r769 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 473 473 project->values("RES_FILE").prepend(fileInfo(resFile).fileName()); 474 474 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(); 477 478 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); 479 482 } 480 483 project->values("RES_FILE").first() = Option::fixPathToTargetOS(project->values("RES_FILE").first(), false, false); … … 605 608 writeLibsPart(t); 606 609 607 t << "QMAKE = " << (project->isEmpty("QMAKE_QMAKE") ? QString("qmake") : 608 Option::fixPathToTargetOS(var("QMAKE_QMAKE"), false)) << endl; 610 t << "QMAKE = " << var("QMAKE_QMAKE") << endl; 609 611 t << "IDC = " << (project->isEmpty("QMAKE_IDC") ? QString("idc") : 610 612 Option::fixPathToTargetOS(var("QMAKE_IDC"), false)) << endl; … … 658 660 t << "DIST = " << varList("DISTFILES") << endl; 659 661 t << "QMAKE_TARGET = " << var("QMAKE_ORIG_TARGET") << endl; 660 // The comment is important to maintain variable compat ability with Unix662 // The comment is important to maintain variable compatibility with Unix 661 663 // Makefiles, while not interpreting a trailing-slash as a linebreak 662 664 t << "DESTDIR = " << escapeFilePath(destDir) << " #avoid trailing-slash linebreak" << endl; … … 789 791 target = project->first("TARGET"); 790 792 return QString(target + project->first("TARGET_VERSION_EXT") + ".lib"); 793 } 794 795 QString Win32MakefileGenerator::getPdbTarget() 796 { 797 return QString(project->first("TARGET") + project->first("TARGET_VERSION_EXT") + ".pdb"); 791 798 } 792 799 … … 841 848 uninst.append("-$(DEL_FILE) \"" + dst_targ + "\"" + del_suffix); 842 849 } 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 } 843 862 } 844 863
Note:
See TracChangeset
for help on using the changeset viewer.