Changeset 482


Ignore:
Timestamp:
Jan 28, 2010, 5:44:18 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

qmake: gnumake/OS2: Fixed split DLL builds: Second and further parts with outdated dependencies were not built if the first part didn't have outdated dependencies.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mkspecs/features/os2/default_pre.prf

    r400 r482  
    8888            !isEmpty(LIBS):export(LIBS)
    8989            !isEmpty(PRL_EXPORT_LIBS):export(PRL_EXPORT_LIBS)
    90            
     90
    9191            QMAKE_LIBDIR *= $(DESTDIR)
    9292            export(QMAKE_LIBDIR)
    9393
    94             # add the pre-link step for all but the last part
     94            # add the for all but the last part
    9595            next = $$member(rest)
    9696            !isEmpty(next) {
     
    9898                    equals(next, "."):next =
    9999                    else:next = "-"$${lower($$next)}
    100                     CONFIG(release, debug|release):bld = release
    101                     else:bld = debug
    102                     eval(QMAKE_PRE_LINK = $(MAKE) $${bld}$${next})
     100                    CONFIG(release, debug|release):tgt = release$${next}
     101                    else:tgt = debug$${next}
    103102                } else {
    104                     equals(next, "."):next = Part
    105                     else:next = Part$${next}
    106                         eval(QMAKE_PRE_LINK = $(MAKE) $${next})
     103                    equals(next, "."):tgt = Part
     104                    else:tgt = Part$${next}
    107105                }
    108                 export(QMAKE_PRE_LINK)
     106                eval(ALL_DEPS += $${tgt})
     107                export(ALL_DEPS)
     108
     109                target_dep.target = $${tgt}
     110                target_dep.commands = $(MAKE) $${tgt}
     111                QMAKE_EXTRA_TARGETS += target_dep
     112
     113                export(target_dep.target)
     114                export(target_dep.commands)
     115                export(QMAKE_EXTRA_TARGETS)
    109116            }
    110117
Note: See TracChangeset for help on using the changeset viewer.