Ignore:
Timestamp:
Feb 5, 2010, 1:44:09 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

qmake: Don't prepend install commands with '-' in OS/2 mode to have install errors reported (copy command can silently overwrite the target and doesn't return an error). Add suppressing del command output in uninstall targets.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qmake/generators/win32/winmakefile.cpp

    r529 r535  
    795795            QString::null;
    796796
     797    const QString inst_prefix =
     798        Option::target_mode == Option::TARG_OS2_MODE ?
     799            QString::null: // report errors (copy command overwrites quietly)
     800            QString("-");
     801
    797802    if(t == "target" && project->first("TEMPLATE") == "lib") {
    798803        if(project->isActiveConfig("create_prl") && !project->isActiveConfig("no_install_prl") &&
     
    803808                dst_prl = dst_prl.right(dst_prl.length() - slsh - 1);
    804809            dst_prl = filePrefixRoot(root, targetdir + dst_prl);
    805             ret += "-$(INSTALL_FILE) \"" + project->first("QMAKE_INTERNAL_PRL_FILE") + "\" \"" + dst_prl + "\"";
     810            ret += inst_prefix + "$(INSTALL_FILE) \"" + project->first("QMAKE_INTERNAL_PRL_FILE") + "\" \"" + dst_prl + "\"";
    806811            if(!uninst.isEmpty())
    807812                uninst.append("\n\t");
     
    815820            if(!ret.isEmpty())
    816821                ret += "\n\t";
    817             ret += QString("-$(INSTALL_FILE)") + " \"" + src_targ + "\" \"" + dst_targ + "\"";
     822            ret += QString(inst_prefix + "$(INSTALL_FILE)") + " \"" + src_targ + "\" \"" + dst_targ + "\"";
    818823            if(!uninst.isEmpty())
    819824                uninst.append("\n\t");
     
    827832        if(!ret.isEmpty())
    828833            ret += "\n\t";
    829         ret += QString("-$(INSTALL_FILE)") + " \"" + src_targ + "\" \"" + dst_targ + "\"";
     834        ret += QString(inst_prefix + "$(INSTALL_FILE)") + " \"" + src_targ + "\" \"" + dst_targ + "\"";
    830835        if(!uninst.isEmpty())
    831836            uninst.append("\n\t");
Note: See TracChangeset for help on using the changeset viewer.