Qnx: Add support for qml profiler in BlackBerry/Qnx

We cannot set -qmljsdebugger arg in bar-descriptor.xml file since
it can be done in DeployStep only. QTC architecture do not allows this.

Current approach modifies already deployed MANIFEST.MF on the device.

This patch has nothing to do with QML analyzer for pure QNX,
it's purely for BlackBerry.

Task-number: QTCREATORBUG-10520
Change-Id: I89e83c6ff70a7a35344ff7e3fe573fc19e797ccb
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
This commit is contained in:
Frantisek Vacek
2014-03-14 15:39:02 +01:00
committed by Fanda Vacek
parent 1910fe9175
commit 2c732970b8
7 changed files with 205 additions and 35 deletions

View File

@@ -44,8 +44,12 @@ BlackBerryDebugSupport::BlackBerryDebugSupport(BlackBerryRunConfiguration *runCo
: QObject(runControl->engine())
, m_engine(runControl->engine())
{
const bool cppDebugMode = m_engine->startParameters().languages & Debugger::CppLanguage;
m_runner = new BlackBerryApplicationRunner(cppDebugMode, runConfig, this);
BlackBerryApplicationRunner::LaunchFlags launchFlags;
if (m_engine->startParameters().languages & Debugger::CppLanguage)
launchFlags |= BlackBerryApplicationRunner::CppDebugLaunch;
if (m_engine->startParameters().languages & Debugger::QmlLanguage)
launchFlags |= BlackBerryApplicationRunner::QmlDebugLaunch;
m_runner = new BlackBerryApplicationRunner(launchFlags, runConfig, this);
connect(m_engine, SIGNAL(requestRemoteSetup()), this, SLOT(launchRemoteApplication()));
connect(m_engine, SIGNAL(stateChanged(Debugger::DebuggerState)),