Changeset 8 for trunk/qmake/generators
- Timestamp:
- Nov 16, 2005, 8:36:46 PM (20 years ago)
- Location:
- trunk/qmake/generators
- Files:
-
- 3 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/qmake/generators/makefile.cpp
r7 r8 61 61 QString mkdir_p_asstring(const QString &dir) 62 62 { 63 //@@TODO (dmik): OS/2 cannot create multiple subdirs in mkdir. 64 //@@TODO (dmik): fix it here? (mkdir a\b\c = mkdir a;a\b;a\b\c) 63 65 QString ret = "@$(CHK_DIR_EXISTS) \"" + dir + "\" "; 64 if(Option::target_mode == Option::TARG_WIN_MODE) 66 if(Option::target_mode == Option::TARG_WIN_MODE || 67 Option::target_mode == Option::TARG_OS2_MODE 68 ) 65 69 ret += "$(MKDIR)"; 66 70 else … … 447 451 } else { 448 452 if((Option::target_mode == Option::TARG_MAC9_MODE && inc.find(':')) || 449 (Option::target_mode == Option::TARG_WIN_MODE && inc[1] != ':') || 453 ((Option::target_mode == Option::TARG_WIN_MODE || 454 Option::target_mode == Option::TARG_OS2_MODE) && inc[1] != ':') || 450 455 ((Option::target_mode == Option::TARG_UNIX_MODE || 451 456 Option::target_mode == Option::TARG_QNX6_MODE || … … 667 672 path = path.right(path.length() - 1); 668 673 } 669 #if def Q_WS_WIN674 #if defined(Q_WS_WIN) || defined(Q_OS_OS2) 670 675 bool driveExists = TRUE; 671 676 if ( !QDir::isRelativePath( path ) ) { … … 694 699 } 695 700 } 696 #if def Q_WS_WIN701 #if defined(Q_WS_WIN) || defined(Q_OS_OS2) 697 702 } 698 703 #endif … … 1884 1889 uninst.append("\n\t"); 1885 1890 uninst.append( 1886 #if def Q_WS_WIN1891 #if defined(Q_WS_WIN) || defined(Q_OS_OS2) 1887 1892 QString("-$(DEL_FILE)") 1888 1893 #else … … 1901 1906 uninst.append("\n\t"); 1902 1907 uninst.append( 1903 #if def Q_WS_WIN1908 #if defined(Q_WS_WIN) || defined(Q_OS_OS2) 1904 1909 QString("-$(DEL_FILE)") 1905 1910 #else … … 2449 2454 #include "borland_bmake.h" 2450 2455 #include "mingw_make.h" 2456 #include "gnumake.h" 2451 2457 #include "msvc_dsp.h" 2452 2458 #include "msvc_vcproj.h" … … 2484 2490 } else if(gen == "MINGW") { 2485 2491 mkfile = new MingwMakefileGenerator(proj); 2492 } else if(gen == "GNUMAKE") { 2493 mkfile = new GNUMakefileGenerator(proj); 2486 2494 } else if(gen == "METROWERKS") { 2487 2495 mkfile = new MetrowerksMakefileGenerator(proj); -
trunk/qmake/generators/unix/unixmake.cpp
r7 r8 857 857 for(QStringList::Iterator it = links.begin(); it != links.end(); it++) { 858 858 if(Option::target_mode == Option::TARG_WIN_MODE || 859 Option::target_mode == Option::TARG_OS2_MODE || 859 860 Option::target_mode == Option::TARG_MAC9_MODE) { 860 861 } else if(Option::target_mode == Option::TARG_UNIX_MODE || -
trunk/qmake/generators/win32/msvc_nmake.cpp
r7 r8 81 81 { 82 82 QStringList &aList = MakefileGenerator::findDependencies(file); 83 // Note: The QMAKE_IMAGE_COLLECTION file have all images 84 // as dependency, so don't add precompiled header then 85 if (file == project->first("QMAKE_IMAGE_COLLECTION")) 86 return aList; 87 for(QStringList::Iterator it = Option::cpp_ext.begin(); it != Option::cpp_ext.end(); ++it) { 88 if(file.endsWith(*it)) { 89 if(!aList.contains(precompH)) 90 aList += precompH; 91 break; 92 } 83 // [dmik] this method can be called from MakefileGenerator::init() before 84 // precompH is set in NmakeMakefileGenerator::init(), so we check it 85 // to avoid appending of NULL string to the list of dependencies 86 if (!precompH.isNull()) { 87 // Note: The QMAKE_IMAGE_COLLECTION file have all images 88 // as dependency, so don't add precompiled header then 89 if (file == project->first("QMAKE_IMAGE_COLLECTION")) 90 return aList; 91 for(QStringList::Iterator it = Option::cpp_ext.begin(); it != Option::cpp_ext.end(); ++it) { 92 if(file.endsWith(*it)) { 93 if(!aList.contains(precompH)) 94 aList += precompH; 95 break; 96 } 97 } 93 98 } 94 99 return aList;
Note:
See TracChangeset
for help on using the changeset viewer.