Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/qmake/generators/unix/unixmake2.cpp

    r651 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation ([email protected])
     
    8282    writeHeader(t);
    8383    if(!project->values("QMAKE_FAILED_REQUIREMENTS").isEmpty()) {
    84         t << "QMAKE    = "        << (project->isEmpty("QMAKE_QMAKE") ? QString("qmake") : var("QMAKE_QMAKE")) << endl;
     84        t << "QMAKE    = " ) << endl;
    8585        QStringList &qut = project->values("QMAKE_EXTRA_TARGETS");
    8686        for(QStringList::ConstIterator it = qut.begin(); it != qut.end(); ++it)
     
    149149        t << "LINK          = " << var("QMAKE_LINK") << endl;
    150150        t << "LFLAGS        = " << var("QMAKE_LFLAGS") << endl;
    151         t << "LIBS          = " << "$(SUBLIBS) " << var("QMAKE_FRAMEWORKDIR_FLAGS") << " "
     151        t << "LIBS          = " << "$(SUBLIBS) " << var("QMAKE_FRAMEWORK_FLAGS") << " "
    152152          << var("QMAKE_LIBDIR_FLAGS") << " " << var("QMAKE_LIBS") << " " << var("QMAKE_LIBS_PRIVATE") << endl;
    153153    }
     
    155155    t << "AR            = " << var("QMAKE_AR") << endl;
    156156    t << "RANLIB        = " << var("QMAKE_RANLIB") << endl;
    157     t << "QMAKE         = " << (project->isEmpty("QMAKE_QMAKE") ? QString("qmake") : var("QMAKE_QMAKE")) << endl;
     157    t << "QMAKE         = " << ) << endl;
    158158    t << "TAR           = " << var("QMAKE_TAR") << endl;
    159159    t << "COMPRESS      = " << var("QMAKE_GZIP") << endl;
     
    178178        t << "export MACOSX_DEPLOYMENT_TARGET = " //exported to children processes
    179179          << project->first("QMAKE_MACOSX_DEPLOYMENT_TARGET") << endl;
     180
     181
     182
     183
     184
     185
    180186    t << endl;
    181187
     
    234240            t << "TARGETD       = " << escapeFilePath(var("TARGET_x.y")) << endl;
    235241            t << "TARGET0       = " << escapeFilePath(var("TARGET_")) << endl;
     242
     243
    236244        } else if(project->isEmpty("QMAKE_HPUX_SHLIB")) {
    237245            t << "TARGETD       = " << escapeFilePath(var("TARGET_x.y.z")) << endl;
     
    333341        QStringList &l = project->values("SUBLIBS");
    334342        for(QStringList::Iterator it = l.begin(); it != l.end(); ++it)
    335             t << libdir << "lib" << (*it) << ".a ";
     343            t << libdir << project->first("QMAKE_PREFIX_STATICLIB") << (*it) << "."
     344              << project->first("QMAKE_EXTENSION_STATICLIB") << " ";
    336345        t << endl << endl;
    337346    }
     
    543552              << varGlue("QMAKE_LN_SHLIB","-"," ", " " + project->first("QMAKE_FRAMEWORK_VERSION") +
    544553                         " " + destdir + "Versions/Current") << "\n\t";
     554
     555
     556
     557
     558
     559
     560
     561
     562
     563
     564
    545565            if(!project->isEmpty("QMAKE_POST_LINK"))
    546566                t << "\n\t" << var("QMAKE_POST_LINK");
     
    861881        QStringList &l = project->values("SUBLIBS");
    862882        for(it = l.begin(); it != l.end(); ++it)
    863             t << libdir << "lib" << (*it) << ".a" << ":\n\t"
     883            t << libdir << project->first("QMAKE_PREFIX_STATICLIB") << (*it) << "."
     884              << project->first("QMAKE_EXTENSION_STATICLIB") << ":\n\t"
    864885              << var(QString("MAKELIB") + (*it)) << endl << endl;
    865886    }
     
    876897    } else if(!project->isActiveConfig("staticlib") && project->values("QMAKE_APP_FLAG").isEmpty() &&
    877898       !project->isActiveConfig("plugin")) {
    878         t << "\t-$(DEL_FILE) " << destdir << "$(TARGET)" << " " << endl
    879           << "\t-$(DEL_FILE) " << destdir << "$(TARGET0) " << destdir << "$(TARGET1) "
    880           << destdir << "$(TARGET2) $(TARGETA)" << endl;
     899        t << "\t-$(DEL_FILE) " << destdir << "$(TARGET)" << " " << endl;
     900        if (project->values("QMAKE_SYMBIAN_SHLIB").isEmpty())
     901            t << "\t-$(DEL_FILE) " << destdir << "$(TARGET0) " << destdir << "$(TARGET1) "
     902              << destdir << "$(TARGET2) $(TARGETA)" << endl;
    881903    } else {
    882904        t << "\t-$(DEL_FILE) " << "$(TARGET)" << " " << endl;
     
    9931015            project->values("TARGET_EXT").append(".exe");
    9941016    } else if (project->isActiveConfig("staticlib")) {
    995         project->values("TARGET").first().prepend("lib");
    996         project->values("TARGET").first() += ".a";
     1017        project->values("TARGET").first().prepend();
     1018        project->values("TARGET").first() += ".;
    9971019        if(project->values("QMAKE_AR_CMD").isEmpty())
    9981020            project->values("QMAKE_AR_CMD").append("$(AR) $(TARGET) $(OBJECTS)");
    9991021    } else {
    1000         project->values("TARGETA").append(project->first("DESTDIR") + "lib" + project->first("TARGET") + ".a");
     1022        project->values("TARGETA").append(project->first("DESTDIR") + project->first("QMAKE_PREFIX_STATICLIB")
     1023                + project->first("TARGET") + "." + project->first("QMAKE_EXTENSION_STATICLIB"));
    10011024        if(project->isActiveConfig("compile_libtool"))
    10021025            project->values("TARGET_la") = QStringList(project->first("DESTDIR") + "lib" + project->first("TARGET") + Option::libtool_ext);
     
    10461069            project->values("TARGET") = project->values("TARGET_x");
    10471070        } else if (!project->isEmpty("QMAKE_AIX_SHLIB")) {
    1048             project->values("TARGET_").append("lib" + project->first("TARGET") + ".a");
     1071            project->values("TARGET_").append(project->first("QMAKE_PREFIX_STATICLIB") + project->first("TARGET")
     1072                    + "." + project->first("QMAKE_EXTENSION_STATICLIB"));
    10491073            if(project->isActiveConfig("lib_version_first")) {
    10501074                project->values("TARGET_x").append("lib" + project->first("TARGET") + "." +
     
    10751099            }
    10761100            project->values("TARGET") = project->values("TARGET_x.y.z");
     1101
     1102
     1103
     1104
    10771105        } else {
    10781106            project->values("TARGET_").append("lib" + project->first("TARGET") + "." +
Note: See TracChangeset for help on using the changeset viewer.