Changeset 769 for trunk/qmake/generators/makefile.cpp
- Timestamp:
- Aug 2, 2010, 9:27:30 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.6.3 (added) merged: 768 /branches/vendor/nokia/qt/current merged: 767 /branches/vendor/nokia/qt/4.6.2 removed
- Property svn:mergeinfo changed
-
trunk/qmake/generators/makefile.cpp
r651 r769 1267 1267 do_default = false; 1268 1268 for(QStringList::Iterator wild_it = tmp.begin(); wild_it != tmp.end(); ++wild_it) { 1269 QString wild = Option::fixPathTo LocalOS((*wild_it), false, false);1269 QString wild = Option::fixPathToOS((*wild_it), false, false); 1270 1270 QString dirstr = qmake_getpwd(), filestr = wild; 1271 1271 int slsh = filestr.lastIndexOf(Option::dir_sep); … … 1307 1307 QString local_dirstr = Option::fixPathToLocalOS(dirstr, true); 1308 1308 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()) { 1310 1311 if(!target.isEmpty()) 1311 1312 target += "\t"; 1312 1313 QString dst_file = filePrefixRoot(root, dst); 1313 1314 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"; 1316 1329 target += cmd; 1317 1330 if(!uninst.isEmpty()) … … 1878 1891 } 1879 1892 } 1880 if(!cleans.isEmpty()) 1893 if(!cleans.isEmpty()) 1881 1894 t << valGlue(cleans, "\n\t" + del_statement, del_suffix + "\n\t" + del_statement, del_suffix); 1895 1882 1896 if(!wrote_clean_cmds) { 1883 1897 for(QStringList::ConstIterator input = tmp_inputs.begin(); input != tmp_inputs.end(); ++input) { … … 2592 2606 if(!ofile.isEmpty()) 2593 2607 t << "\t-$(DEL_FILE) " << ofile << del_suffix << endl; 2608 2594 2609 } else if(project->isActiveConfig("no_empty_targets")) { 2595 2610 t << "\t" << "@cd ." << endl;
Note:
See TracChangeset
for help on using the changeset viewer.