Changeset 8 for trunk/qmake/generators


Ignore:
Timestamp:
Nov 16, 2005, 8:36:46 PM (20 years ago)
Author:
dmik
Message:

Transferred Qt for OS/2 version 3.3.1-rc5 sources from the CVS

Location:
trunk/qmake/generators
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/qmake/generators/makefile.cpp

    r7 r8  
    6161QString mkdir_p_asstring(const QString &dir)
    6262{
     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)
    6365    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    )
    6569        ret += "$(MKDIR)";
    6670    else
     
    447451            } else {
    448452                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] != ':') ||
    450455                   ((Option::target_mode == Option::TARG_UNIX_MODE ||
    451456                     Option::target_mode == Option::TARG_QNX6_MODE ||
     
    667672                    path = path.right(path.length() - 1);
    668673                }
    669 #ifdef Q_WS_WIN
     674#if defined(Q_WS_WIN) || defined(Q_OS_OS2)
    670675                bool driveExists = TRUE;
    671676                if ( !QDir::isRelativePath( path ) ) {
     
    694699                        }
    695700                    }
    696 #ifdef Q_WS_WIN
     701#if defined(Q_WS_WIN) || defined(Q_OS_OS2)
    697702                }
    698703#endif
     
    18841889                        uninst.append("\n\t");
    18851890                    uninst.append(
    1886 #ifdef Q_WS_WIN
     1891#if defined(Q_WS_WIN) || defined(Q_OS_OS2)
    18871892                    QString("-$(DEL_FILE)")
    18881893#else
     
    19011906                        uninst.append("\n\t");
    19021907                    uninst.append(
    1903 #ifdef Q_WS_WIN
     1908#if defined(Q_WS_WIN) || defined(Q_OS_OS2)
    19041909                        QString("-$(DEL_FILE)")
    19051910#else
     
    24492454#include "borland_bmake.h"
    24502455#include "mingw_make.h"
     2456#include "gnumake.h"
    24512457#include "msvc_dsp.h"
    24522458#include "msvc_vcproj.h"
     
    24842490    } else if(gen == "MINGW") {
    24852491        mkfile = new MingwMakefileGenerator(proj);
     2492    } else if(gen == "GNUMAKE") {
     2493        mkfile = new GNUMakefileGenerator(proj);
    24862494    } else if(gen == "METROWERKS") {
    24872495        mkfile = new MetrowerksMakefileGenerator(proj);
  • trunk/qmake/generators/unix/unixmake.cpp

    r7 r8  
    857857            for(QStringList::Iterator it = links.begin(); it != links.end(); it++) {
    858858                if(Option::target_mode == Option::TARG_WIN_MODE ||
     859                   Option::target_mode == Option::TARG_OS2_MODE ||
    859860                   Option::target_mode == Option::TARG_MAC9_MODE) {
    860861                } else if(Option::target_mode == Option::TARG_UNIX_MODE ||
  • trunk/qmake/generators/win32/msvc_nmake.cpp

    r7 r8  
    8181{
    8282    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        }
    9398    }
    9499    return aList;
Note: See TracChangeset for help on using the changeset viewer.