Ignore:
Timestamp:
May 1, 2006, 11:16:33 PM (19 years ago)
Author:
dmik
Message:

GNUMAKE backend:

  • Added the internal qmake variable QMAKE_DEFINES_QT (similar to DEFINES but effective only when qt, qtinc or build_qt is present in CONFIG).

Configure script:

  • Mandatory Qt defines are moved from the .qtos2defines file to the generated .qtos2config file (this makes usage of QMAKE_DEFINES_QT).
  • Added the ability to specify a list of custom Qt defines (also using QMAKE_DEFINES_QT).
  • When a custom build is performed, the .qtbuild file is automatically deleted (if exists) to avoid confusion.
  • no_mocdepend is always added to CONFIG in .qtos2config to prevent generated moc sources from being dependent on the moc executable (quite useless).
File:
1 edited

Legend:

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

    r89 r93  
    450450    if (project->isActiveConfig("qt") && project->isActiveConfig("shared"))
    451451        project->variables()["DEFINES"].append("QT_DLL");
     452
     453    if (!project->variables()["QMAKE_DEFINES_QT"].isEmpty() &&
     454        (is_qt || project->isActiveConfig("qt") || project->isActiveConfig("qtinc"))) {
     455        QStringList &defs = project->variables()["DEFINES"];
     456        QStringList &qtdefs = project->variables()["QMAKE_DEFINES_QT"];
     457        QStringList::ConstIterator it = qtdefs.end();
     458        while (it != qtdefs.begin()) {
     459            --it;
     460            if (!defs.contains(*it))
     461                defs.prepend(*it);
     462        }
     463    }
    452464   
    453465    if (project->isActiveConfig("qt_dll"))
Note: See TracChangeset for help on using the changeset viewer.