summaryrefslogtreecommitdiffstats
path: root/qmake
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2010-09-08 13:27:14 (GMT)
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2010-09-08 13:27:14 (GMT)
commitb5f78bb04bea15bb1042c4b95647e4a20dd09d80 (patch)
tree80713dae28c5fc282a3b89c0f131fa02527790fe /qmake
parent0901337e0c23910f265f0991b9fc6875efafedaf (diff)
downloadQt-b5f78bb04bea15bb1042c4b95647e4a20dd09d80.zip
Qt-b5f78bb04bea15bb1042c4b95647e4a20dd09d80.tar.gz
Qt-b5f78bb04bea15bb1042c4b95647e4a20dd09d80.tar.bz2
Remove static vs dynamic library autodetection from qmake in Symbian
Autodetection was unreliable and there was no practical way to make it reliable even for common cases, so it was removed. Task-number: QTBUG-13498 Reviewed-by: Janne Koskinen
Diffstat (limited to 'qmake')
-rw-r--r--qmake/generators/symbian/symmake.cpp20
1 files changed, 4 insertions, 16 deletions
diff --git a/qmake/generators/symbian/symmake.cpp b/qmake/generators/symbian/symmake.cpp
index cf6bd13..e69d3df 100644
--- a/qmake/generators/symbian/symmake.cpp
+++ b/qmake/generators/symbian/symmake.cpp
@@ -706,25 +706,13 @@ void SymbianMakefileGenerator::writeMmpFileLibraryPart(QTextStream& t)
if (lib.startsWith("-l")) {
lib.remove(0, 2);
QString mmpStatement;
- if (lib.endsWith(".dll")) {
- lib.chop(4);
- mmpStatement = "LIBRARY\t\t";
- } else if (lib.endsWith(".lib")) {
+ if (lib.endsWith(".lib")) {
lib.chop(4);
mmpStatement = "STATICLIBRARY\t";
} else {
- // Hacky way to find out what kind of library it is. Check the
- // ARMV5 build directory for library type. We default to shared
- // library, since that is more common.
- QString udebStaticLibLocation(epocRoot());
- QString urelStaticLibLocation(udebStaticLibLocation);
- udebStaticLibLocation += QString("epoc32/release/armv5/udeb/%1.lib").arg(lib);
- urelStaticLibLocation += QString("epoc32/release/armv5/urel/%1.lib").arg(lib);
- if (QFile::exists(udebStaticLibLocation) || QFile::exists(urelStaticLibLocation)) {
- mmpStatement = "STATICLIBRARY\t";
- } else {
- mmpStatement = "LIBRARY\t\t";
- }
+ if (lib.endsWith(".dll"))
+ lib.chop(4);
+ mmpStatement = "LIBRARY\t\t";
}
t << mmpStatement << lib << ".lib" << endl;
}