Changeset 804


Ignore:
Timestamp:
Oct 25, 2010, 10:34:42 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

qmake/os2/gnumake: Add .NOTPARALLEL to subdirs makefiles to ensure that a .prl for a library is generated by qmake before a Makefile is generated for a subdir that uses this library. This is necessary in cases where the .pro file referes to the DLL using its long "logical" name while the real file name (stored in .prl) is 8x3. This fix makes it possible to build Qt with make -jN (designer needs it).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qmake/generators/os2/gnumake.cpp

    r673 r804  
    329329    else if(project->first("TEMPLATE") == "subdirs") {
    330330        writeSubDirs(t);
     331        // @todo
     332        // There is one case when generating a Makefile from one .pro file
     333        // depends on another .pro file: when the first one links to a DLL which
     334        // the second one generates, and only when it refers to this DLL by its
     335        // full name which may be different from its real 8x3 file name. In this
     336        // case, in order to create a proper reference to the library in the
     337        // Makefile using its real file name, the first .pro file needs a .prl
     338        // for that library created by the second one (that contains this real
     339        // 8x3 name)... For now, we simply prevent any parallel subdirectory
     340        // walking at all. A better solution has to be found later as this one
     341        // is an overkill (other than that, subdirs feel OK being parallelized).
     342        t << ".NOTPARALLEL:" << endl << endl;
    331343        return true;
    332344    }
Note: See TracChangeset for help on using the changeset viewer.