Changeset 85 for trunk/qmake


Ignore:
Timestamp:
Apr 15, 2006, 6:21:17 PM (19 years ago)
Author:
dmik
Message:
  • Added QMAKE_LIBDIR_QT_DEBUG internal QMAKE variable that is used to define a directory used to store and locate the debug version of the Qt dll
  • When 'qt' is present in CONFIG, the GNUMAKE backend places the values of QMAKE_LIBDIR_QT_DEBUG followed by the value of QMAKE_LIBDIR_QT to the library search path if 'debug' is also present there, otherwise these values are placed in the opposite order.
File:
1 edited

Legend:

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

    r84 r85  
    526526        project->variables()["CONFIG"].append("moc");
    527527        project->variables()["INCLUDEPATH"] +=  project->variables()["QMAKE_INCDIR_QT"];
    528         project->variables()["QMAKE_LIBDIR"] += project->variables()["QMAKE_LIBDIR_QT"];
    529         if ( !project->isActiveConfig("debug") )
     528        if ( !project->isActiveConfig("debug") ) {
     529            project->variables()["QMAKE_LIBDIR"] += project->variables()["QMAKE_LIBDIR_QT"];
     530            project->variables()["QMAKE_LIBDIR"] += project->variables()["QMAKE_LIBDIR_QT_DEBUG"];
    530531            project->variables()[is_qt ? "PRL_EXPORT_DEFINES" : "DEFINES"].append("QT_NO_DEBUG");
     532        } else {
     533            project->variables()["QMAKE_LIBDIR"] += project->variables()["QMAKE_LIBDIR_QT_DEBUG"];
     534            project->variables()["QMAKE_LIBDIR"] += project->variables()["QMAKE_LIBDIR_QT"];
     535        }
    531536        if ( is_qt && !project->variables()["QMAKE_LIB_FLAG"].isEmpty() ) {
    532537            if ( !project->variables()["QMAKE_QT_DLL"].isEmpty()) {
Note: See TracChangeset for help on using the changeset viewer.