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

Fix logic for configuring qt private headers

parent 1c78e200
No related branches found
No related tags found
No related merge requests found
...@@ -39,15 +39,8 @@ contains(QT_CONFIG, declarative) { ...@@ -39,15 +39,8 @@ contains(QT_CONFIG, declarative) {
SUBDIRS += plugin_qmlprojectmanager SUBDIRS += plugin_qmlprojectmanager
# Try to find location of Qt private headers (see README) include(private_headers.pri)
exists($${QT_PRIVATE_HEADERS}/QtDeclarative/private/qdeclarativecontext_p.h) {
isEmpty(QT_PRIVATE_HEADERS) {
QT_PRIVATE_HEADERS = $$[QT_INSTALL_HEADERS]
} else {
INCLUDEPATH += QT_PRIVATE_HEADERS
}
exists($$QT_PRIVATE_HEADERS/QtDeclarative/private/qdeclarativecontext_p.h) {
SUBDIRS += plugin_qmldesigner \ SUBDIRS += plugin_qmldesigner \
plugin_qmlinspector plugin_qmlinspector
} else { } else {
......
# Try to find location of Qt private headers (see README)
isEmpty(QT_PRIVATE_HEADERS) {
QT_PRIVATE_HEADERS = $$[QT_INSTALL_HEADERS]
} else {
INCLUDEPATH += $$quote($${QT_PRIVATE_HEADERS}) \
$$quote($${QT_PRIVATE_HEADERS}/QtDeclarative) \
$$quote($${QT_PRIVATE_HEADERS}/QtCore) \
$$quote($${QT_PRIVATE_HEADERS}/QtScript)
}
...@@ -2,6 +2,7 @@ TEMPLATE = lib ...@@ -2,6 +2,7 @@ TEMPLATE = lib
TARGET = QmlDesigner TARGET = QmlDesigner
include(../../qtcreatorplugin.pri) include(../../qtcreatorplugin.pri)
include(../private_headers.pri)
include(qmldesigner_dependencies.pri) include(qmldesigner_dependencies.pri)
include(core/core.pri) include(core/core.pri)
......
...@@ -4,6 +4,7 @@ TARGET = QmlInspector ...@@ -4,6 +4,7 @@ TARGET = QmlInspector
INCLUDEPATH += . INCLUDEPATH += .
DEPENDPATH += . DEPENDPATH += .
include(../private_headers.pri)
include(components/qmldebugger.pri) include(components/qmldebugger.pri)
DEFINES += QMLINSPECTOR_LIBRARY DEFINES += QMLINSPECTOR_LIBRARY
......
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