Changeset 846 for trunk/qmake/generators/unix/unixmake2.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/qmake/generators/unix/unixmake2.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation ([email protected]) … … 82 82 writeHeader(t); 83 83 if(!project->values("QMAKE_FAILED_REQUIREMENTS").isEmpty()) { 84 t << "QMAKE = " << (project->isEmpty("QMAKE_QMAKE") ? QString("qmake") : var("QMAKE_QMAKE")) << endl;84 t << "QMAKE = " ) << endl; 85 85 QStringList &qut = project->values("QMAKE_EXTRA_TARGETS"); 86 86 for(QStringList::ConstIterator it = qut.begin(); it != qut.end(); ++it) … … 149 149 t << "LINK = " << var("QMAKE_LINK") << endl; 150 150 t << "LFLAGS = " << var("QMAKE_LFLAGS") << endl; 151 t << "LIBS = " << "$(SUBLIBS) " << var("QMAKE_FRAMEWORK DIR_FLAGS") << " "151 t << "LIBS = " << "$(SUBLIBS) " << var("QMAKE_FRAMEWORK_FLAGS") << " " 152 152 << var("QMAKE_LIBDIR_FLAGS") << " " << var("QMAKE_LIBS") << " " << var("QMAKE_LIBS_PRIVATE") << endl; 153 153 } … … 155 155 t << "AR = " << var("QMAKE_AR") << endl; 156 156 t << "RANLIB = " << var("QMAKE_RANLIB") << endl; 157 t << "QMAKE = " << (project->isEmpty("QMAKE_QMAKE") ? QString("qmake") : var("QMAKE_QMAKE")) << endl;157 t << "QMAKE = " << ) << endl; 158 158 t << "TAR = " << var("QMAKE_TAR") << endl; 159 159 t << "COMPRESS = " << var("QMAKE_GZIP") << endl; … … 178 178 t << "export MACOSX_DEPLOYMENT_TARGET = " //exported to children processes 179 179 << project->first("QMAKE_MACOSX_DEPLOYMENT_TARGET") << endl; 180 181 182 183 184 185 180 186 t << endl; 181 187 … … 234 240 t << "TARGETD = " << escapeFilePath(var("TARGET_x.y")) << endl; 235 241 t << "TARGET0 = " << escapeFilePath(var("TARGET_")) << endl; 242 243 236 244 } else if(project->isEmpty("QMAKE_HPUX_SHLIB")) { 237 245 t << "TARGETD = " << escapeFilePath(var("TARGET_x.y.z")) << endl; … … 333 341 QStringList &l = project->values("SUBLIBS"); 334 342 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") << " "; 336 345 t << endl << endl; 337 346 } … … 543 552 << varGlue("QMAKE_LN_SHLIB","-"," ", " " + project->first("QMAKE_FRAMEWORK_VERSION") + 544 553 " " + destdir + "Versions/Current") << "\n\t"; 554 555 556 557 558 559 560 561 562 563 564 545 565 if(!project->isEmpty("QMAKE_POST_LINK")) 546 566 t << "\n\t" << var("QMAKE_POST_LINK"); … … 861 881 QStringList &l = project->values("SUBLIBS"); 862 882 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" 864 885 << var(QString("MAKELIB") + (*it)) << endl << endl; 865 886 } … … 876 897 } else if(!project->isActiveConfig("staticlib") && project->values("QMAKE_APP_FLAG").isEmpty() && 877 898 !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; 881 903 } else { 882 904 t << "\t-$(DEL_FILE) " << "$(TARGET)" << " " << endl; … … 993 1015 project->values("TARGET_EXT").append(".exe"); 994 1016 } 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() += ".; 997 1019 if(project->values("QMAKE_AR_CMD").isEmpty()) 998 1020 project->values("QMAKE_AR_CMD").append("$(AR) $(TARGET) $(OBJECTS)"); 999 1021 } 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")); 1001 1024 if(project->isActiveConfig("compile_libtool")) 1002 1025 project->values("TARGET_la") = QStringList(project->first("DESTDIR") + "lib" + project->first("TARGET") + Option::libtool_ext); … … 1046 1069 project->values("TARGET") = project->values("TARGET_x"); 1047 1070 } 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")); 1049 1073 if(project->isActiveConfig("lib_version_first")) { 1050 1074 project->values("TARGET_x").append("lib" + project->first("TARGET") + "." + … … 1075 1099 } 1076 1100 project->values("TARGET") = project->values("TARGET_x.y.z"); 1101 1102 1103 1104 1077 1105 } else { 1078 1106 project->values("TARGET_").append("lib" + project->first("TARGET") + "." +
Note:
See TracChangeset
for help on using the changeset viewer.