forked from qt-creator/qt-creator
QmlJsDebugClient: Compile it as separate library
Should boost build times. Change-Id: I35c9fd32d2df6dbdadf4d324eb87dbfb491e5ef2 Reviewed-on: http://codereview.qt.nokia.com/2673 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
This commit is contained in:
@@ -10,11 +10,12 @@ SUBDIRS = \
|
|||||||
utils \
|
utils \
|
||||||
utils/process_stub.pro \
|
utils/process_stub.pro \
|
||||||
languageutils \
|
languageutils \
|
||||||
|
symbianutils \
|
||||||
cplusplus \
|
cplusplus \
|
||||||
qmljs \
|
qmljs \
|
||||||
|
qmljsdebugclient \
|
||||||
glsl \
|
glsl \
|
||||||
qmleditorwidgets \
|
qmleditorwidgets
|
||||||
symbianutils
|
|
||||||
|
|
||||||
# Windows: Compile Qt Creator CDB extension if Debugging tools can be detected.
|
# Windows: Compile Qt Creator CDB extension if Debugging tools can be detected.
|
||||||
win32 {
|
win32 {
|
||||||
|
|||||||
@@ -32,12 +32,13 @@
|
|||||||
#ifndef QDECLARATIVEDEBUGCLIENT_H
|
#ifndef QDECLARATIVEDEBUGCLIENT_H
|
||||||
#define QDECLARATIVEDEBUGCLIENT_H
|
#define QDECLARATIVEDEBUGCLIENT_H
|
||||||
|
|
||||||
|
#include "qmljsdebugclient_global.h"
|
||||||
#include <QtNetwork/qtcpsocket.h>
|
#include <QtNetwork/qtcpsocket.h>
|
||||||
|
|
||||||
namespace QmlJsDebugClient {
|
namespace QmlJsDebugClient {
|
||||||
|
|
||||||
class QDeclarativeDebugConnectionPrivate;
|
class QDeclarativeDebugConnectionPrivate;
|
||||||
class QDeclarativeDebugConnection : public QIODevice
|
class QMLJSDEBUGCLIENT_EXPORT QDeclarativeDebugConnection : public QIODevice
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
@@ -71,7 +72,7 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
class QDeclarativeDebugClientPrivate;
|
class QDeclarativeDebugClientPrivate;
|
||||||
class QDeclarativeDebugClient : public QObject
|
class QMLJSDEBUGCLIENT_EXPORT QDeclarativeDebugClient : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
Q_DECLARE_PRIVATE(QDeclarativeDebugClient)
|
Q_DECLARE_PRIVATE(QDeclarativeDebugClient)
|
||||||
|
|||||||
@@ -32,6 +32,7 @@
|
|||||||
#ifndef QDECLARATIVEDEBUG_H
|
#ifndef QDECLARATIVEDEBUG_H
|
||||||
#define QDECLARATIVEDEBUG_H
|
#define QDECLARATIVEDEBUG_H
|
||||||
|
|
||||||
|
#include "qmljsdebugclient_global.h"
|
||||||
#include <QtCore/qobject.h>
|
#include <QtCore/qobject.h>
|
||||||
#include <QtCore/qurl.h>
|
#include <QtCore/qurl.h>
|
||||||
#include <QtCore/qvariant.h>
|
#include <QtCore/qvariant.h>
|
||||||
@@ -53,7 +54,7 @@ class QDeclarativeDebugFileReference;
|
|||||||
class QDeclarativeDebugEngineReference;
|
class QDeclarativeDebugEngineReference;
|
||||||
class QDeclarativeEngineDebugPrivate;
|
class QDeclarativeEngineDebugPrivate;
|
||||||
|
|
||||||
class QDeclarativeEngineDebug : public QObject
|
class QMLJSDEBUGCLIENT_EXPORT QDeclarativeEngineDebug : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
@@ -102,7 +103,7 @@ private:
|
|||||||
QScopedPointer<QDeclarativeEngineDebugPrivate> d_ptr;
|
QScopedPointer<QDeclarativeEngineDebugPrivate> d_ptr;
|
||||||
};
|
};
|
||||||
|
|
||||||
class QDeclarativeDebugWatch : public QObject
|
class QMLJSDEBUGCLIENT_EXPORT QDeclarativeDebugWatch : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
@@ -133,7 +134,7 @@ private:
|
|||||||
int m_objectDebugId;
|
int m_objectDebugId;
|
||||||
};
|
};
|
||||||
|
|
||||||
class QDeclarativeDebugPropertyWatch : public QDeclarativeDebugWatch
|
class QMLJSDEBUGCLIENT_EXPORT QDeclarativeDebugPropertyWatch : public QDeclarativeDebugWatch
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
@@ -146,7 +147,7 @@ private:
|
|||||||
QString m_name;
|
QString m_name;
|
||||||
};
|
};
|
||||||
|
|
||||||
class QDeclarativeDebugObjectExpressionWatch : public QDeclarativeDebugWatch
|
class QMLJSDEBUGCLIENT_EXPORT QDeclarativeDebugObjectExpressionWatch : public QDeclarativeDebugWatch
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
@@ -160,7 +161,7 @@ private:
|
|||||||
int m_debugId;
|
int m_debugId;
|
||||||
};
|
};
|
||||||
|
|
||||||
class QDeclarativeDebugQuery : public QObject
|
class QMLJSDEBUGCLIENT_EXPORT QDeclarativeDebugQuery : public QObject
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
@@ -182,7 +183,7 @@ private:
|
|||||||
State m_state;
|
State m_state;
|
||||||
};
|
};
|
||||||
|
|
||||||
class QDeclarativeDebugFileReference
|
class QMLJSDEBUGCLIENT_EXPORT QDeclarativeDebugFileReference
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
QDeclarativeDebugFileReference();
|
QDeclarativeDebugFileReference();
|
||||||
@@ -203,7 +204,7 @@ private:
|
|||||||
int m_columnNumber;
|
int m_columnNumber;
|
||||||
};
|
};
|
||||||
|
|
||||||
class QDeclarativeDebugEngineReference
|
class QMLJSDEBUGCLIENT_EXPORT QDeclarativeDebugEngineReference
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
QDeclarativeDebugEngineReference();
|
QDeclarativeDebugEngineReference();
|
||||||
@@ -220,7 +221,7 @@ private:
|
|||||||
QString m_name;
|
QString m_name;
|
||||||
};
|
};
|
||||||
|
|
||||||
class QDeclarativeDebugObjectReference
|
class QMLJSDEBUGCLIENT_EXPORT QDeclarativeDebugObjectReference
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
QDeclarativeDebugObjectReference();
|
QDeclarativeDebugObjectReference();
|
||||||
@@ -251,7 +252,7 @@ private:
|
|||||||
QList<QDeclarativeDebugObjectReference> m_children;
|
QList<QDeclarativeDebugObjectReference> m_children;
|
||||||
};
|
};
|
||||||
|
|
||||||
class QDeclarativeDebugContextReference
|
class QMLJSDEBUGCLIENT_EXPORT QDeclarativeDebugContextReference
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
QDeclarativeDebugContextReference();
|
QDeclarativeDebugContextReference();
|
||||||
@@ -272,7 +273,7 @@ private:
|
|||||||
QList<QDeclarativeDebugContextReference> m_contexts;
|
QList<QDeclarativeDebugContextReference> m_contexts;
|
||||||
};
|
};
|
||||||
|
|
||||||
class QDeclarativeDebugPropertyReference
|
class QMLJSDEBUGCLIENT_EXPORT QDeclarativeDebugPropertyReference
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
QDeclarativeDebugPropertyReference();
|
QDeclarativeDebugPropertyReference();
|
||||||
@@ -297,7 +298,7 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
class QDeclarativeDebugEnginesQuery : public QDeclarativeDebugQuery
|
class QMLJSDEBUGCLIENT_EXPORT QDeclarativeDebugEnginesQuery : public QDeclarativeDebugQuery
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
@@ -312,7 +313,7 @@ private:
|
|||||||
QList<QDeclarativeDebugEngineReference> m_engines;
|
QList<QDeclarativeDebugEngineReference> m_engines;
|
||||||
};
|
};
|
||||||
|
|
||||||
class QDeclarativeDebugRootContextQuery : public QDeclarativeDebugQuery
|
class QMLJSDEBUGCLIENT_EXPORT QDeclarativeDebugRootContextQuery : public QDeclarativeDebugQuery
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
@@ -327,7 +328,7 @@ private:
|
|||||||
QDeclarativeDebugContextReference m_context;
|
QDeclarativeDebugContextReference m_context;
|
||||||
};
|
};
|
||||||
|
|
||||||
class QDeclarativeDebugObjectQuery : public QDeclarativeDebugQuery
|
class QMLJSDEBUGCLIENT_EXPORT QDeclarativeDebugObjectQuery : public QDeclarativeDebugQuery
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
@@ -343,7 +344,7 @@ private:
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
class QDeclarativeDebugExpressionQuery : public QDeclarativeDebugQuery
|
class QMLJSDEBUGCLIENT_EXPORT QDeclarativeDebugExpressionQuery : public QDeclarativeDebugQuery
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
|
|||||||
@@ -1,15 +1,22 @@
|
|||||||
|
contains(CONFIG, dll) {
|
||||||
|
DEFINES += QMLJSDEBUGCLIENT_LIB
|
||||||
|
} else {
|
||||||
|
DEFINES += QMLJSDEBUGCLIENT_STATIC_LIB
|
||||||
|
}
|
||||||
|
|
||||||
|
INCLUDEPATH += $$PWD/..
|
||||||
|
|
||||||
## Input
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
../../libs/qmljsdebugclient/qdeclarativeenginedebug.h \
|
$$PWD/qdeclarativeenginedebug.h \
|
||||||
../../libs/qmljsdebugclient/qpacketprotocol.h \
|
$$PWD/qpacketprotocol.h \
|
||||||
../../libs/qmljsdebugclient/qdeclarativedebugclient.h
|
$$PWD/qdeclarativedebugclient.h \
|
||||||
|
$$PWD/qmljsdebugclient_global.h
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
../../libs/qmljsdebugclient/qdeclarativeenginedebug.cpp \
|
$$PWD/qdeclarativeenginedebug.cpp \
|
||||||
../../libs/qmljsdebugclient/qpacketprotocol.cpp \
|
$$PWD/qpacketprotocol.cpp \
|
||||||
../../libs/qmljsdebugclient/qdeclarativedebugclient.cpp
|
$$PWD/qdeclarativedebugclient.cpp
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
OTHER_FILES += \
|
||||||
|
$$PWD/qmljsdebugclient.pri \
|
||||||
|
$$PWD/qmljsdebugclient-lib.pri
|
||||||
|
|||||||
3
src/libs/qmljsdebugclient/qmljsdebugclient.pri
Normal file
3
src/libs/qmljsdebugclient/qmljsdebugclient.pri
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
include(../symbianutils/symbianutils.pri)
|
||||||
|
|
||||||
|
LIBS *= -l$$qtLibraryName(QmlJSDebugClient)
|
||||||
13
src/libs/qmljsdebugclient/qmljsdebugclient.pro
Normal file
13
src/libs/qmljsdebugclient/qmljsdebugclient.pro
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
TEMPLATE = lib
|
||||||
|
CONFIG += dll
|
||||||
|
TARGET = QmlJSDebugClient
|
||||||
|
|
||||||
|
DEFINES += QMLJSDEBUGCLIENT_LIBRARY
|
||||||
|
|
||||||
|
include(../../qtcreatorlibrary.pri)
|
||||||
|
include(../symbianutils/symbianutils.pri)
|
||||||
|
include(qmljsdebugclient-lib.pri)
|
||||||
|
|
||||||
|
OTHER_FILES += \
|
||||||
|
qmljsdebugclient.pri \
|
||||||
|
qmljsdebugclient-lib.pri
|
||||||
44
src/libs/qmljsdebugclient/qmljsdebugclient_global.h
Normal file
44
src/libs/qmljsdebugclient/qmljsdebugclient_global.h
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
/**************************************************************************
|
||||||
|
**
|
||||||
|
** This file is part of Qt Creator
|
||||||
|
**
|
||||||
|
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
|
||||||
|
**
|
||||||
|
** Contact: Nokia Corporation (info@qt.nokia.com)
|
||||||
|
**
|
||||||
|
**
|
||||||
|
** GNU Lesser General Public License Usage
|
||||||
|
**
|
||||||
|
** This file may be used under the terms of the GNU Lesser General Public
|
||||||
|
** License version 2.1 as published by the Free Software Foundation and
|
||||||
|
** appearing in the file LICENSE.LGPL included in the packaging of this file.
|
||||||
|
** Please review the following information to ensure the GNU Lesser General
|
||||||
|
** Public License version 2.1 requirements will be met:
|
||||||
|
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||||
|
**
|
||||||
|
** In addition, as a special exception, Nokia gives you certain additional
|
||||||
|
** rights. These rights are described in the Nokia Qt LGPL Exception
|
||||||
|
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||||
|
**
|
||||||
|
** Other Usage
|
||||||
|
**
|
||||||
|
** Alternatively, this file may be used in accordance with the terms and
|
||||||
|
** conditions contained in a signed written agreement between you and Nokia.
|
||||||
|
**
|
||||||
|
** If you have questions regarding the use of this file, please contact
|
||||||
|
** Nokia at info@qt.nokia.com.
|
||||||
|
**
|
||||||
|
**************************************************************************/
|
||||||
|
|
||||||
|
#ifndef QMLJSDEBUGCLIENT_GLOBAL_H
|
||||||
|
#define QMLJSDEBUGCLIENT_GLOBAL_H
|
||||||
|
|
||||||
|
#if defined(QMLJSDEBUGCLIENT_LIB)
|
||||||
|
# define QMLJSDEBUGCLIENT_EXPORT Q_DECL_EXPORT
|
||||||
|
#elif defined(QMLJSDEBUGCLIENT_STATIC_LIB)
|
||||||
|
# define QMLJSDEBUGCLIENT_EXPORT
|
||||||
|
#else
|
||||||
|
# define QMLJSDEBUGCLIENT_EXPORT Q_DECL_IMPORT
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif // QMLJSDEBUGCLIENT_GLOBAL_H
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
include($$PWD/../../../libs/qmljsdebugclient/qmljsdebugclient-lib.pri)
|
include($$PWD/../../../libs/qmljsdebugclient/qmljsdebugclient.pri)
|
||||||
include($$PWD/../../../shared/json/json.pri)
|
include($$PWD/../../../shared/json/json.pri)
|
||||||
DEFINES += JSON_INCLUDE_PRI
|
DEFINES += JSON_INCLUDE_PRI
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,6 @@ qmljscontextcrumblepath.cpp \
|
|||||||
qmljsinspectorsettings.cpp \
|
qmljsinspectorsettings.cpp \
|
||||||
qmljspropertyinspector.cpp
|
qmljspropertyinspector.cpp
|
||||||
|
|
||||||
include(../../libs/qmljsdebugclient/qmljsdebugclient-lib.pri)
|
|
||||||
include(../../../share/qtcreator/qml/qmljsdebugger/protocol/protocol.pri)
|
include(../../../share/qtcreator/qml/qmljsdebugger/protocol/protocol.pri)
|
||||||
|
|
||||||
RESOURCES += qmljsinspector.qrc
|
RESOURCES += qmljsinspector.qrc
|
||||||
@@ -45,3 +44,4 @@ include(../../plugins/coreplugin/coreplugin.pri)
|
|||||||
include(../../plugins/texteditor/texteditor.pri)
|
include(../../plugins/texteditor/texteditor.pri)
|
||||||
include(../../plugins/debugger/debugger.pri)
|
include(../../plugins/debugger/debugger.pri)
|
||||||
include(../../libs/utils/utils.pri)
|
include(../../libs/utils/utils.pri)
|
||||||
|
include(../../libs/qmljsdebugclient/qmljsdebugclient.pri)
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ include(../../plugins/analyzerbase/analyzerbase.pri)
|
|||||||
include(../../plugins/qmlprojectmanager/qmlprojectmanager.pri)
|
include(../../plugins/qmlprojectmanager/qmlprojectmanager.pri)
|
||||||
include(../../plugins/qt4projectmanager/qt4projectmanager.pri)
|
include(../../plugins/qt4projectmanager/qt4projectmanager.pri)
|
||||||
include(../../plugins/remotelinux/remotelinux.pri)
|
include(../../plugins/remotelinux/remotelinux.pri)
|
||||||
include(../../libs/qmljsdebugclient/qmljsdebugclient-lib.pri)
|
include(../../libs/qmljsdebugclient/qmljsdebugclient.pri)
|
||||||
include(../../libs/extensionsystem/extensionsystem.pri)
|
include(../../libs/extensionsystem/extensionsystem.pri)
|
||||||
|
|
||||||
QT += network script declarative
|
QT += network script declarative
|
||||||
|
|||||||
Reference in New Issue
Block a user