Skip to content
Snippets Groups Projects
Commit 17bab9dc authored by Kai Koehne's avatar Kai Koehne
Browse files

Debugger: Fix compilation if no private headers are specified

Don't try to compile the qml debugger backend (which needs
private headers from Qt) if private headers cannot be located.

Reviewed-by: hjk
parent 3ab927ed
No related branches found
No related tags found
No related merge requests found
......@@ -112,8 +112,13 @@ include(cdb/cdb.pri)
include(gdb/gdb.pri)
include(script/script.pri)
include(pdb/pdb.pri)
include(qml/qml.pri)
include(tcf/tcf.pri)
include(shared/shared.pri)
include(../../private_headers.pri)
exists($${QT_PRIVATE_HEADERS}/QtDeclarative/private/qdeclarativecontext_p.h) {
DEFINES += QML_ENGINE=1
include(qml/qml.pri)
}
OTHER_FILES += Debugger.pluginspec
......@@ -370,9 +370,11 @@ void DebuggerRunControl::createEngine(const DebuggerStartParameters &sp)
case TcfEngineType:
m_engine = createTcfEngine(sp);
break;
#if defined(QML_ENGINE)
case QmlEngineType:
m_engine = createQmlEngine(sp);
break;
#endif
default: {
// Could not find anything suitable.
debuggingFinished();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment