diff --git a/src/libs/libs.pro b/src/libs/libs.pro index f33e687774f..f963d678010 100644 --- a/src/libs/libs.pro +++ b/src/libs/libs.pro @@ -10,11 +10,12 @@ SUBDIRS = \ utils \ utils/process_stub.pro \ languageutils \ + symbianutils \ cplusplus \ qmljs \ + qmljsdebugclient \ glsl \ - qmleditorwidgets \ - symbianutils + qmleditorwidgets # Windows: Compile Qt Creator CDB extension if Debugging tools can be detected. win32 { diff --git a/src/libs/qmljsdebugclient/qdeclarativedebugclient.h b/src/libs/qmljsdebugclient/qdeclarativedebugclient.h index 2a8078208a5..170ee51acca 100644 --- a/src/libs/qmljsdebugclient/qdeclarativedebugclient.h +++ b/src/libs/qmljsdebugclient/qdeclarativedebugclient.h @@ -32,12 +32,13 @@ #ifndef QDECLARATIVEDEBUGCLIENT_H #define QDECLARATIVEDEBUGCLIENT_H +#include "qmljsdebugclient_global.h" #include namespace QmlJsDebugClient { class QDeclarativeDebugConnectionPrivate; -class QDeclarativeDebugConnection : public QIODevice +class QMLJSDEBUGCLIENT_EXPORT QDeclarativeDebugConnection : public QIODevice { Q_OBJECT @@ -71,7 +72,7 @@ private: }; class QDeclarativeDebugClientPrivate; -class QDeclarativeDebugClient : public QObject +class QMLJSDEBUGCLIENT_EXPORT QDeclarativeDebugClient : public QObject { Q_OBJECT Q_DECLARE_PRIVATE(QDeclarativeDebugClient) diff --git a/src/libs/qmljsdebugclient/qdeclarativeenginedebug.h b/src/libs/qmljsdebugclient/qdeclarativeenginedebug.h index 127769d16b5..51d3120ad33 100644 --- a/src/libs/qmljsdebugclient/qdeclarativeenginedebug.h +++ b/src/libs/qmljsdebugclient/qdeclarativeenginedebug.h @@ -32,6 +32,7 @@ #ifndef QDECLARATIVEDEBUG_H #define QDECLARATIVEDEBUG_H +#include "qmljsdebugclient_global.h" #include #include #include @@ -53,7 +54,7 @@ class QDeclarativeDebugFileReference; class QDeclarativeDebugEngineReference; class QDeclarativeEngineDebugPrivate; -class QDeclarativeEngineDebug : public QObject +class QMLJSDEBUGCLIENT_EXPORT QDeclarativeEngineDebug : public QObject { Q_OBJECT public: @@ -102,7 +103,7 @@ private: QScopedPointer d_ptr; }; -class QDeclarativeDebugWatch : public QObject +class QMLJSDEBUGCLIENT_EXPORT QDeclarativeDebugWatch : public QObject { Q_OBJECT public: @@ -133,7 +134,7 @@ private: int m_objectDebugId; }; -class QDeclarativeDebugPropertyWatch : public QDeclarativeDebugWatch +class QMLJSDEBUGCLIENT_EXPORT QDeclarativeDebugPropertyWatch : public QDeclarativeDebugWatch { Q_OBJECT public: @@ -146,7 +147,7 @@ private: QString m_name; }; -class QDeclarativeDebugObjectExpressionWatch : public QDeclarativeDebugWatch +class QMLJSDEBUGCLIENT_EXPORT QDeclarativeDebugObjectExpressionWatch : public QDeclarativeDebugWatch { Q_OBJECT public: @@ -160,7 +161,7 @@ private: int m_debugId; }; -class QDeclarativeDebugQuery : public QObject +class QMLJSDEBUGCLIENT_EXPORT QDeclarativeDebugQuery : public QObject { Q_OBJECT public: @@ -182,7 +183,7 @@ private: State m_state; }; -class QDeclarativeDebugFileReference +class QMLJSDEBUGCLIENT_EXPORT QDeclarativeDebugFileReference { public: QDeclarativeDebugFileReference(); @@ -203,7 +204,7 @@ private: int m_columnNumber; }; -class QDeclarativeDebugEngineReference +class QMLJSDEBUGCLIENT_EXPORT QDeclarativeDebugEngineReference { public: QDeclarativeDebugEngineReference(); @@ -220,7 +221,7 @@ private: QString m_name; }; -class QDeclarativeDebugObjectReference +class QMLJSDEBUGCLIENT_EXPORT QDeclarativeDebugObjectReference { public: QDeclarativeDebugObjectReference(); @@ -251,7 +252,7 @@ private: QList m_children; }; -class QDeclarativeDebugContextReference +class QMLJSDEBUGCLIENT_EXPORT QDeclarativeDebugContextReference { public: QDeclarativeDebugContextReference(); @@ -272,7 +273,7 @@ private: QList m_contexts; }; -class QDeclarativeDebugPropertyReference +class QMLJSDEBUGCLIENT_EXPORT QDeclarativeDebugPropertyReference { public: QDeclarativeDebugPropertyReference(); @@ -297,7 +298,7 @@ private: }; -class QDeclarativeDebugEnginesQuery : public QDeclarativeDebugQuery +class QMLJSDEBUGCLIENT_EXPORT QDeclarativeDebugEnginesQuery : public QDeclarativeDebugQuery { Q_OBJECT public: @@ -312,7 +313,7 @@ private: QList m_engines; }; -class QDeclarativeDebugRootContextQuery : public QDeclarativeDebugQuery +class QMLJSDEBUGCLIENT_EXPORT QDeclarativeDebugRootContextQuery : public QDeclarativeDebugQuery { Q_OBJECT public: @@ -327,7 +328,7 @@ private: QDeclarativeDebugContextReference m_context; }; -class QDeclarativeDebugObjectQuery : public QDeclarativeDebugQuery +class QMLJSDEBUGCLIENT_EXPORT QDeclarativeDebugObjectQuery : public QDeclarativeDebugQuery { Q_OBJECT public: @@ -343,7 +344,7 @@ private: }; -class QDeclarativeDebugExpressionQuery : public QDeclarativeDebugQuery +class QMLJSDEBUGCLIENT_EXPORT QDeclarativeDebugExpressionQuery : public QDeclarativeDebugQuery { Q_OBJECT public: diff --git a/src/libs/qmljsdebugclient/qmljsdebugclient-lib.pri b/src/libs/qmljsdebugclient/qmljsdebugclient-lib.pri index 70ac6cc0bd4..c06b4267296 100644 --- a/src/libs/qmljsdebugclient/qmljsdebugclient-lib.pri +++ b/src/libs/qmljsdebugclient/qmljsdebugclient-lib.pri @@ -1,15 +1,22 @@ +contains(CONFIG, dll) { + DEFINES += QMLJSDEBUGCLIENT_LIB +} else { + DEFINES += QMLJSDEBUGCLIENT_STATIC_LIB +} + +INCLUDEPATH += $$PWD/.. -## Input HEADERS += \ -../../libs/qmljsdebugclient/qdeclarativeenginedebug.h \ -../../libs/qmljsdebugclient/qpacketprotocol.h \ -../../libs/qmljsdebugclient/qdeclarativedebugclient.h - + $$PWD/qdeclarativeenginedebug.h \ + $$PWD/qpacketprotocol.h \ + $$PWD/qdeclarativedebugclient.h \ + $$PWD/qmljsdebugclient_global.h SOURCES += \ -../../libs/qmljsdebugclient/qdeclarativeenginedebug.cpp \ -../../libs/qmljsdebugclient/qpacketprotocol.cpp \ -../../libs/qmljsdebugclient/qdeclarativedebugclient.cpp - - + $$PWD/qdeclarativeenginedebug.cpp \ + $$PWD/qpacketprotocol.cpp \ + $$PWD/qdeclarativedebugclient.cpp +OTHER_FILES += \ + $$PWD/qmljsdebugclient.pri \ + $$PWD/qmljsdebugclient-lib.pri diff --git a/src/libs/qmljsdebugclient/qmljsdebugclient.pri b/src/libs/qmljsdebugclient/qmljsdebugclient.pri new file mode 100644 index 00000000000..3fd8a3e1f6b --- /dev/null +++ b/src/libs/qmljsdebugclient/qmljsdebugclient.pri @@ -0,0 +1,3 @@ +include(../symbianutils/symbianutils.pri) + +LIBS *= -l$$qtLibraryName(QmlJSDebugClient) diff --git a/src/libs/qmljsdebugclient/qmljsdebugclient.pro b/src/libs/qmljsdebugclient/qmljsdebugclient.pro new file mode 100644 index 00000000000..43468a4f168 --- /dev/null +++ b/src/libs/qmljsdebugclient/qmljsdebugclient.pro @@ -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 diff --git a/src/libs/qmljsdebugclient/qmljsdebugclient_global.h b/src/libs/qmljsdebugclient/qmljsdebugclient_global.h new file mode 100644 index 00000000000..c40003b2cce --- /dev/null +++ b/src/libs/qmljsdebugclient/qmljsdebugclient_global.h @@ -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 diff --git a/src/plugins/debugger/qml/qml.pri b/src/plugins/debugger/qml/qml.pri index 0cec0d1438e..396f247a9b6 100644 --- a/src/plugins/debugger/qml/qml.pri +++ b/src/plugins/debugger/qml/qml.pri @@ -1,4 +1,4 @@ -include($$PWD/../../../libs/qmljsdebugclient/qmljsdebugclient-lib.pri) +include($$PWD/../../../libs/qmljsdebugclient/qmljsdebugclient.pri) include($$PWD/../../../shared/json/json.pri) DEFINES += JSON_INCLUDE_PRI diff --git a/src/plugins/qmljsinspector/qmljsinspector.pro b/src/plugins/qmljsinspector/qmljsinspector.pro index a8213c62e5a..5d39cfa5e00 100644 --- a/src/plugins/qmljsinspector/qmljsinspector.pro +++ b/src/plugins/qmljsinspector/qmljsinspector.pro @@ -33,7 +33,6 @@ qmljscontextcrumblepath.cpp \ qmljsinspectorsettings.cpp \ qmljspropertyinspector.cpp -include(../../libs/qmljsdebugclient/qmljsdebugclient-lib.pri) include(../../../share/qtcreator/qml/qmljsdebugger/protocol/protocol.pri) RESOURCES += qmljsinspector.qrc @@ -45,3 +44,4 @@ include(../../plugins/coreplugin/coreplugin.pri) include(../../plugins/texteditor/texteditor.pri) include(../../plugins/debugger/debugger.pri) include(../../libs/utils/utils.pri) +include(../../libs/qmljsdebugclient/qmljsdebugclient.pri) diff --git a/src/plugins/qmlprofiler/qmlprofiler.pro b/src/plugins/qmlprofiler/qmlprofiler.pro index 300d910c740..0b3ad3f024a 100644 --- a/src/plugins/qmlprofiler/qmlprofiler.pro +++ b/src/plugins/qmlprofiler/qmlprofiler.pro @@ -9,7 +9,7 @@ include(../../plugins/analyzerbase/analyzerbase.pri) include(../../plugins/qmlprojectmanager/qmlprojectmanager.pri) include(../../plugins/qt4projectmanager/qt4projectmanager.pri) include(../../plugins/remotelinux/remotelinux.pri) -include(../../libs/qmljsdebugclient/qmljsdebugclient-lib.pri) +include(../../libs/qmljsdebugclient/qmljsdebugclient.pri) include(../../libs/extensionsystem/extensionsystem.pri) QT += network script declarative