Changeset 84


Ignore:
Timestamp:
Apr 15, 2006, 5:52:50 PM (19 years ago)
Author:
dmik
Message:

Preparations to change the build process of Qt on OS/2:

  • OS2/GNUMAKE Backend: when CONFIG contains 'qt' (i.e. the app using Qt is being built), the Qt library defined in qmake.spec is used instead of some tricky procedure to find the highest version at runtime.
  • OS2/GNUMAKE Backend: the VERSION variable is no more used to define a suffix of the DLL being built.
  • 'build_qt' is used to tell QMAKE the Qt library is being built.
  • '-mt' is no more in the Qt library name to indicate a multi-threaded version.
Location:
trunk
Files:
2 edited

Legend:

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

    r66 r84  
    435435    }
    436436
    437     bool is_qt = (project->first("TARGET") == "qt"QTDLL_POSTFIX || project->first("TARGET") == "qt-mt"QTDLL_POSTFIX);
     437    bool is_qt = project->isActiveConfig( "build_qt" );
    438438    project->variables()["QMAKE_ORIG_TARGET"] = project->variables()["TARGET"];
    439439
     
    546546                else
    547547                    project->variables()["QMAKE_LIBS"] += project->variables()["QMAKE_LIBS_QT_DLL"];
    548                 int hver = findHighestVersion(project->first("QMAKE_LIBDIR_QT"), "qt");
    549                 if ( hver == -1 )
    550                     hver = findHighestVersion(project->first("QMAKE_LIBDIR_QT"), "qt-mt");
    551                 if(hver != -1) {
    552                     QString ver;
    553                     ver.sprintf("qt%s" QTDLL_POSTFIX "%d.lib", (project->isActiveConfig("thread") ? "-mt" : ""), hver);
    554                     QStringList &libs = project->variables()["QMAKE_LIBS"];
    555                     for(QStringList::Iterator libit = libs.begin(); libit != libs.end(); ++libit)
    556                         (*libit).replace(QRegExp("qt(-mt)?(\\.lib)?"), ver);
    557                 }
    558548            }
    559549            if ( !project->isEmpty( "QMAKE_LIBS_QT_ENTRY" ) ) {
     
    578568        project->variables()["QMAKE_LFLAGS_CONSOLE_ANY"] = project->variables()["QMAKE_LFLAGS_CONSOLE_DLL"];
    579569        project->variables()["QMAKE_LFLAGS_WINDOWS_ANY"] = project->variables()["QMAKE_LFLAGS_WINDOWS_DLL"];
    580         if ( !project->variables()["QMAKE_LIB_FLAG"].isEmpty()) {
    581             project->variables()["TARGET_EXT"].append(
    582                 QStringList::split('.',project->first("VERSION")).join("") + ".dll");
    583         } else {
    584             project->variables()["TARGET_EXT"].append(".dll");
    585         }
     570        project->variables()["TARGET_EXT"].append(".dll");
    586571    } else {
    587572        project->variables()["QMAKE_CFLAGS_CONSOLE_ANY"] = project->variables()["QMAKE_CFLAGS_CONSOLE"];
  • trunk/src/qt.pro

    r72 r84  
    11# Qt project file
     2#
     3# :mode=makefile:tabSize=8:indentSize=4:noTabs=false:
     4 
    25TEMPLATE        = lib
    36TARGET          = qt
    47embedded:TARGET = qte
    58VERSION         = 3.3.1
     9os2:VERSION     = $${VERSION}.0.6
    610DESTDIR         = $$QMAKE_LIBDIR_QT
    711DLLDESTDIR      = ../bin
     
    157161
    158162thread {
    159         !win32-borland:TARGET = qt-mt
    160         win32-borland:TARGET = qtmt
    161         embedded:TARGET = qte-mt
     163        !os2 {
     164                !win32-borland:TARGET = qt-mt
     165                win32-borland:TARGET = qtmt
     166                embedded:TARGET = qte-mt
     167        }
    162168        DEFINES += QT_THREAD_SUPPORT
    163169}
Note: See TracChangeset for help on using the changeset viewer.