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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.