Changeset 189 for trunk/qmake
- Timestamp:
- Sep 22, 2009, 2:10:57 AM (16 years ago)
- Location:
- trunk/qmake/generators
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/qmake/generators/makefile.cpp
r162 r189 1799 1799 if(tmp_clean.isEmpty()) 1800 1800 tmp_clean = tmp_out; 1801 1802 1803 1804 1805 1806 1807 1801 1808 if(tmp_clean.indexOf("${QMAKE_") == -1) { 1802 t << "\n\t" << "-$(DEL_FILE) " << tmp_clean;1809 t << "\n\t" << ; 1803 1810 wrote_clean = true; 1804 1811 } 1805 1812 if(!wrote_clean_cmds || !wrote_clean) { 1806 1813 QStringList cleans; 1807 const QString del_statement("-$(DEL_FILE)");1808 1814 if(!wrote_clean) { 1809 1815 if(project->isActiveConfig("no_delete_multiple_files")) { … … 1813 1819 } else { 1814 1820 QString files, file; 1815 const int commandlineLimit = 2047; // NT limit, expanded 1821 const int commandlineLimit = 1822 Option::target_mode == Option::TARG_OS2_MODE ? 1823 1000: // OS/2 CMD.EXE limit (1024 - suffix - reserve) 1824 2047; // NT limit, expanded 1816 1825 for(int input = 0; input < tmp_inputs.size(); ++input) { 1817 1826 file = " " + replaceExtraCompilerVariables(tmp_clean, tmp_inputs.at(input), … … 1829 1838 } 1830 1839 if(!cleans.isEmpty()) 1831 t << valGlue(cleans, "\n\t" + del_statement, "\n\t" + del_statement, "");1840 t << valGlue(cleans, "\n\t" + del_statement, ); 1832 1841 if(!wrote_clean_cmds) { 1833 1842 for(QStringList::ConstIterator input = tmp_inputs.begin(); input != tmp_inputs.end(); ++input) { … … 2493 2502 t << " FORCE"; 2494 2503 t << endl; 2504 2505 2506 2507 2495 2508 if(suffix == "clean") { 2496 t << varGlue("QMAKE_CLEAN","\t-$(DEL_FILE) ", "\n\t-$(DEL_FILE) ", "\n");2509 t << varGlue("QMAKE_CLEAN","\t-$(DEL_FILE) ",); 2497 2510 } else if(suffix == "distclean") { 2498 2511 QString ofile = Option::fixPathToTargetOS(fileFixify(Option::output.fileName())); 2499 2512 if(!ofile.isEmpty()) 2500 t << "\t-$(DEL_FILE) " << ofile << endl;2513 t << "\t-$(DEL_FILE) " << ofile << endl; 2501 2514 } else if(project->isActiveConfig("no_empty_targets")) { 2502 2515 t << "\t" << "@cd ." << endl; -
trunk/qmake/generators/win32/winmakefile.cpp
r158 r189 489 489 const QString del_suffix = 490 490 Option::target_mode == Option::TARG_OS2_MODE ? 491 QString(" >nul 2>&1"): // reduce noise492 QString::null;491 QString(" >nul 2>&1"): // reduce noise 492 QString::null; 493 493 494 494 const int commandlineLimit = 495 495 Option::target_mode == Option::TARG_OS2_MODE ? 496 10 24: // OS/2 CMD.EXE limit496 10 497 497 2047; // NT limit, expanded 498 498 … … 784 784 targetdir += Option::dir_sep; 785 785 786 787 788 789 790 786 791 if(t == "target" && project->first("TEMPLATE") == "lib") { 787 792 if(project->isActiveConfig("create_prl") && !project->isActiveConfig("no_install_prl") && … … 795 800 if(!uninst.isEmpty()) 796 801 uninst.append("\n\t"); 797 uninst.append("-$(DEL_FILE) \"" + dst_prl + "\"" );802 uninst.append("-$(DEL_FILE) \"" + dst_prl + "\""); 798 803 } 799 804 if(project->isActiveConfig("shared") && !project->isActiveConfig("plugin")) { … … 807 812 if(!uninst.isEmpty()) 808 813 uninst.append("\n\t"); 809 uninst.append("-$(DEL_FILE) \"" + dst_targ + "\"" );814 uninst.append("-$(DEL_FILE) \"" + dst_targ + "\""); 810 815 } 811 816 } … … 819 824 if(!uninst.isEmpty()) 820 825 uninst.append("\n\t"); 821 uninst.append("-$(DEL_FILE) \"" + dst_targ + "\"" );826 uninst.append("-$(DEL_FILE) \"" + dst_targ + "\""); 822 827 } 823 828 return ret;
Note:
See TracChangeset
for help on using the changeset viewer.