forked from qt-creator/qt-creator
QmlJSDebug: Enable compilation of library also for Symbian
This commit is contained in:
@@ -4,10 +4,15 @@
|
|||||||
QT += declarative script
|
QT += declarative script
|
||||||
INCLUDEPATH += $$PWD/include
|
INCLUDEPATH += $$PWD/include
|
||||||
|
|
||||||
DEBUGLIB=QmlJSDebugger
|
symbian {
|
||||||
CONFIG(debug, debug|release) {
|
LIBNAME = QmLJSDebugger.lib
|
||||||
windows:DEBUGLIB = QmlJSDebuggerd
|
} else {
|
||||||
|
CONFIG(debug, debug|release) {
|
||||||
|
LIBNAME = QmlJSDebuggerd
|
||||||
|
} else {
|
||||||
|
LIBNAME = QmlJSDebugger
|
||||||
|
}
|
||||||
}
|
}
|
||||||
LIBS += -L$$PWD -l$$DEBUGLIB
|
LIBS += -L$$PWD -l$$LIBNAME
|
||||||
|
|
||||||
DEFINES += QMLJSDEBUGGER
|
DEFINES += QMLJSDEBUGGER
|
||||||
|
|||||||
@@ -273,8 +273,8 @@ bool BuildableHelperLibrary::buildHelper(const BuildHelperArguments &arguments,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
log->append(QCoreApplication::translate("ProjectExplorer::BuildableHelperLibrary",
|
log->append(QCoreApplication::translate("ProjectExplorer::BuildableHelperLibrary",
|
||||||
"Running %1 ...\n").arg(makeFullPath));
|
"Running %1 %2 ...\n").arg(makeFullPath, arguments.makeArguments.join(" ")));
|
||||||
if (!runBuildProcess(proc, makeFullPath, QStringList(), 120000, false, log, errorMessage))
|
if (!runBuildProcess(proc, makeFullPath, arguments.makeArguments, 120000, false, log, errorMessage))
|
||||||
return false;
|
return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -80,6 +80,7 @@ public:
|
|||||||
QStringList qmakeArguments;
|
QStringList qmakeArguments;
|
||||||
|
|
||||||
QString makeCommand;
|
QString makeCommand;
|
||||||
|
QStringList makeArguments;
|
||||||
};
|
};
|
||||||
|
|
||||||
static bool buildHelper(const BuildHelperArguments &arguments,
|
static bool buildHelper(const BuildHelperArguments &arguments,
|
||||||
|
|||||||
@@ -175,8 +175,10 @@ bool DebuggingHelperBuildTask::buildDebuggingHelper(QFutureInterface<void> &futu
|
|||||||
if (qmlDebuggingDirectory.isEmpty())
|
if (qmlDebuggingDirectory.isEmpty())
|
||||||
return false;
|
return false;
|
||||||
arguments.directory = qmlDebuggingDirectory;
|
arguments.directory = qmlDebuggingDirectory;
|
||||||
|
arguments.makeArguments += QLatin1String("all"); // build debug and release
|
||||||
if (!QmlDebuggingLibrary::build(arguments, output, &m_errorMessage))
|
if (!QmlDebuggingLibrary::build(arguments, output, &m_errorMessage))
|
||||||
return false;
|
return false;
|
||||||
|
arguments.makeArguments.clear();
|
||||||
}
|
}
|
||||||
future.setProgressValue(4);
|
future.setProgressValue(4);
|
||||||
|
|
||||||
|
|||||||
@@ -333,8 +333,7 @@ bool QMakeStep::isQmlDebuggingLibrarySupported(QString *reason) const
|
|||||||
|
|
||||||
if (!qt4BuildConfiguration()->qtVersion()->qtAbis().isEmpty()) {
|
if (!qt4BuildConfiguration()->qtVersion()->qtAbis().isEmpty()) {
|
||||||
ProjectExplorer::Abi abi = qt4BuildConfiguration()->qtVersion()->qtAbis().first();
|
ProjectExplorer::Abi abi = qt4BuildConfiguration()->qtVersion()->qtAbis().first();
|
||||||
if (abi.os() == ProjectExplorer::Abi::SymbianOS
|
if (abi.osFlavor() == ProjectExplorer::Abi::MaemoLinuxFlavor) {
|
||||||
|| abi.osFlavor() == ProjectExplorer::Abi::MaemoLinuxFlavor) {
|
|
||||||
if (reason)
|
if (reason)
|
||||||
reason->clear();
|
reason->clear();
|
||||||
// *reason = tr("Qml debugging on device not yet supported.");
|
// *reason = tr("Qml debugging on device not yet supported.");
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ QString QmlDebuggingLibrary::libraryByInstallData(const QString &qtInstallData,
|
|||||||
binFilenames << QLatin1String("QmlJSDebugger.lib");
|
binFilenames << QLatin1String("QmlJSDebugger.lib");
|
||||||
}
|
}
|
||||||
binFilenames << QLatin1String("libQmlJSDebugger.a");
|
binFilenames << QLatin1String("libQmlJSDebugger.a");
|
||||||
|
binFilenames << QLatin1String("QmlJSDebugger.prl"); // Symbian. Note that the actual lib is in EPOCROOT
|
||||||
|
|
||||||
return byInstallDataHelper(sourcePath(), sourceFileNames(), directories, binFilenames, false);
|
return byInstallDataHelper(sourcePath(), sourceFileNames(), directories, binFilenames, false);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user