Ignore:
Timestamp:
Aug 2, 2010, 9:27:30 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/qmake/generators/makefile.cpp

    r651 r769  
    12671267            do_default = false;
    12681268            for(QStringList::Iterator wild_it = tmp.begin(); wild_it != tmp.end(); ++wild_it) {
    1269                 QString wild = Option::fixPathToLocalOS((*wild_it), false, false);
     1269                QString wild = Option::fixPathToOS((*wild_it), false, false);
    12701270                QString dirstr = qmake_getpwd(), filestr = wild;
    12711271                int slsh = filestr.lastIndexOf(Option::dir_sep);
     
    13071307                QString local_dirstr = Option::fixPathToLocalOS(dirstr, true);
    13081308                QStringList files = QDir(local_dirstr).entryList(QStringList(filestr));
    1309                 if(project->values((*it) + ".CONFIG").indexOf("no_check_exist") != -1 && files.isEmpty()) {
     1309                const QStringList &installConfigValues = project->values((*it) + ".CONFIG");
     1310                if (installConfigValues.contains("no_check_exist") && files.isEmpty()) {
    13101311                    if(!target.isEmpty())
    13111312                        target += "\t";
    13121313                    QString dst_file = filePrefixRoot(root, dst);
    13131314                    QFileInfo fi(fileInfo(wild));
    1314                     QString cmd = inst_prefix + QString(fi.isExecutable() ? "$(INSTALL_PROGRAM)" : "$(INSTALL_FILE)") + " " +
    1315                                    wild + " " + dst_file + "\n";
     1315                    QString cmd;
     1316                    if (installConfigValues.contains("directory")) {
     1317                        cmd = QLatin1String(inst_prefix + "$(INSTALL_DIR)");
     1318                        if (!dst_file.endsWith(Option::dir_sep))
     1319                            dst_file += Option::dir_sep;
     1320                        dst_file += fi.fileName();
     1321                    } else if (installConfigValues.contains("executable")) {
     1322                        cmd = QLatin1String(inst_prefix + "$(INSTALL_PROGRAM)");
     1323                    } else if (installConfigValues.contains("data")) {
     1324                        cmd = QLatin1String(inst_prefix + "$(INSTALL_FILE)");
     1325                    } else {
     1326                        cmd = inst_prefix + QString(fi.isExecutable() ? "$(INSTALL_PROGRAM)" : "$(INSTALL_FILE)");
     1327                    }
     1328                    cmd += " " + wild + " " + dst_file + "\n";
    13161329                    target += cmd;
    13171330                    if(!uninst.isEmpty())
     
    18781891                    }
    18791892                }
    1880                 if(!cleans.isEmpty())
     1893                if(!cleans.isEmpty())
    18811894                    t << valGlue(cleans, "\n\t" + del_statement, del_suffix + "\n\t" + del_statement, del_suffix);
     1895
    18821896                if(!wrote_clean_cmds) {
    18831897                    for(QStringList::ConstIterator input = tmp_inputs.begin(); input != tmp_inputs.end(); ++input) {
     
    25922606            if(!ofile.isEmpty())
    25932607                t << "\t-$(DEL_FILE) " << ofile << del_suffix << endl;
     2608
    25942609        } else if(project->isActiveConfig("no_empty_targets")) {
    25952610            t << "\t" << "@cd ." << endl;
Note: See TracChangeset for help on using the changeset viewer.