QmlJSDebug: Enable compilation of library also for Symbian

This commit is contained in:
Kai Koehne
2011-04-29 14:07:14 +02:00
parent 001793fe79
commit af9a307c15
6 changed files with 16 additions and 8 deletions

View File

@@ -4,10 +4,15 @@
QT += declarative script
INCLUDEPATH += $$PWD/include
DEBUGLIB=QmlJSDebugger
symbian {
LIBNAME = QmLJSDebugger.lib
} else {
CONFIG(debug, debug|release) {
windows:DEBUGLIB = QmlJSDebuggerd
LIBNAME = QmlJSDebuggerd
} else {
LIBNAME = QmlJSDebugger
}
LIBS += -L$$PWD -l$$DEBUGLIB
}
LIBS += -L$$PWD -l$$LIBNAME
DEFINES += QMLJSDEBUGGER

View File

@@ -273,8 +273,8 @@ bool BuildableHelperLibrary::buildHelper(const BuildHelperArguments &arguments,
return false;
}
log->append(QCoreApplication::translate("ProjectExplorer::BuildableHelperLibrary",
"Running %1 ...\n").arg(makeFullPath));
if (!runBuildProcess(proc, makeFullPath, QStringList(), 120000, false, log, errorMessage))
"Running %1 %2 ...\n").arg(makeFullPath, arguments.makeArguments.join(" ")));
if (!runBuildProcess(proc, makeFullPath, arguments.makeArguments, 120000, false, log, errorMessage))
return false;
return true;
}

View File

@@ -80,6 +80,7 @@ public:
QStringList qmakeArguments;
QString makeCommand;
QStringList makeArguments;
};
static bool buildHelper(const BuildHelperArguments &arguments,

View File

@@ -175,8 +175,10 @@ bool DebuggingHelperBuildTask::buildDebuggingHelper(QFutureInterface<void> &futu
if (qmlDebuggingDirectory.isEmpty())
return false;
arguments.directory = qmlDebuggingDirectory;
arguments.makeArguments += QLatin1String("all"); // build debug and release
if (!QmlDebuggingLibrary::build(arguments, output, &m_errorMessage))
return false;
arguments.makeArguments.clear();
}
future.setProgressValue(4);

View File

@@ -333,8 +333,7 @@ bool QMakeStep::isQmlDebuggingLibrarySupported(QString *reason) const
if (!qt4BuildConfiguration()->qtVersion()->qtAbis().isEmpty()) {
ProjectExplorer::Abi abi = qt4BuildConfiguration()->qtVersion()->qtAbis().first();
if (abi.os() == ProjectExplorer::Abi::SymbianOS
|| abi.osFlavor() == ProjectExplorer::Abi::MaemoLinuxFlavor) {
if (abi.osFlavor() == ProjectExplorer::Abi::MaemoLinuxFlavor) {
if (reason)
reason->clear();
// *reason = tr("Qml debugging on device not yet supported.");

View File

@@ -61,6 +61,7 @@ QString QmlDebuggingLibrary::libraryByInstallData(const QString &qtInstallData,
binFilenames << QLatin1String("QmlJSDebugger.lib");
}
binFilenames << QLatin1String("libQmlJSDebugger.a");
binFilenames << QLatin1String("QmlJSDebugger.prl"); // Symbian. Note that the actual lib is in EPOCROOT
return byInstallDataHelper(sourcePath(), sourceFileNames(), directories, binFilenames, false);
}