forked from qt-creator/qt-creator
LanguageUtils: Introduce new library for cross-language utils.
This commit is contained in:
@@ -7,3 +7,4 @@ unix:QMAKE_CXXFLAGS_DEBUG += -O2
|
|||||||
|
|
||||||
include(../../qtcreatorlibrary.pri)
|
include(../../qtcreatorlibrary.pri)
|
||||||
include(cplusplus-lib.pri)
|
include(cplusplus-lib.pri)
|
||||||
|
include(../languageutils/languageutils.pri)
|
||||||
|
|||||||
11
src/libs/languageutils/languageutils-lib.pri
Normal file
11
src/libs/languageutils/languageutils-lib.pri
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
contains(CONFIG, dll) {
|
||||||
|
DEFINES += LANGUAGEUTILS_BUILD_DIR
|
||||||
|
} else {
|
||||||
|
DEFINES += LANGUAGEUTILS_BUILD_STATIC_LIB
|
||||||
|
}
|
||||||
|
|
||||||
|
DEPENDPATH += $$PWD
|
||||||
|
INCLUDEPATH += $$PWD/..
|
||||||
|
|
||||||
|
HEADERS += \
|
||||||
|
$$PWD/languageutils_global.h
|
||||||
2
src/libs/languageutils/languageutils.pri
Normal file
2
src/libs/languageutils/languageutils.pri
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
LIBS *= -l$$qtLibraryName(LanguageUtils)
|
||||||
|
DEFINES += QT_CREATOR
|
||||||
10
src/libs/languageutils/languageutils.pro
Normal file
10
src/libs/languageutils/languageutils.pro
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
TEMPLATE = lib
|
||||||
|
CONFIG += dll
|
||||||
|
TARGET = LanguageUtils
|
||||||
|
DEFINES += QT_CREATOR
|
||||||
|
|
||||||
|
unix:QMAKE_CXXFLAGS_DEBUG += -O3
|
||||||
|
|
||||||
|
include(../../qtcreatorlibrary.pri)
|
||||||
|
include(languageutils-lib.pri)
|
||||||
|
include(../utils/utils.pri)
|
||||||
47
src/libs/languageutils/languageutils_global.h
Normal file
47
src/libs/languageutils/languageutils_global.h
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
/**************************************************************************
|
||||||
|
**
|
||||||
|
** This file is part of Qt Creator
|
||||||
|
**
|
||||||
|
** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
||||||
|
**
|
||||||
|
** Contact: Nokia Corporation (qt-info@nokia.com)
|
||||||
|
**
|
||||||
|
** No Commercial Usage
|
||||||
|
**
|
||||||
|
** This file contains pre-release code and may not be distributed.
|
||||||
|
** You may use this file in accordance with the terms and conditions
|
||||||
|
** contained in the Technology Preview License Agreement accompanying
|
||||||
|
** this package.
|
||||||
|
**
|
||||||
|
** GNU Lesser General Public License Usage
|
||||||
|
**
|
||||||
|
** Alternatively, 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.
|
||||||
|
**
|
||||||
|
** If you have questions regarding the use of this file, please contact
|
||||||
|
** Nokia at qt-info@nokia.com.
|
||||||
|
**
|
||||||
|
**************************************************************************/
|
||||||
|
|
||||||
|
#ifndef LANGUAGEUTILS_GLOBAL_H
|
||||||
|
#define LANGUAGEUTILS_GLOBAL_H
|
||||||
|
|
||||||
|
#include <QtCore/qglobal.h>
|
||||||
|
|
||||||
|
#if defined(LANGUAGEUTILS_BUILD_DIR)
|
||||||
|
# define LANGUAGEUTILS_EXPORT Q_DECL_EXPORT
|
||||||
|
#elif defined(LANGUAGEUTILS_BUILD_STATIC_LIB)
|
||||||
|
# define LANGUAGEUTILS_EXPORT
|
||||||
|
#else
|
||||||
|
# define LANGUAGEUTILS_EXPORT Q_DECL_IMPORT
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif // LANGUAGEUTILS_GLOBAL_H
|
||||||
@@ -8,6 +8,7 @@ SUBDIRS = \
|
|||||||
extensionsystem \
|
extensionsystem \
|
||||||
utils \
|
utils \
|
||||||
utils/process_stub.pro \
|
utils/process_stub.pro \
|
||||||
|
languageutils \
|
||||||
cplusplus \
|
cplusplus \
|
||||||
qmljs \
|
qmljs \
|
||||||
glsl \
|
glsl \
|
||||||
|
|||||||
@@ -8,3 +8,4 @@ unix:QMAKE_CXXFLAGS_DEBUG += -O3
|
|||||||
include(../../qtcreatorlibrary.pri)
|
include(../../qtcreatorlibrary.pri)
|
||||||
include(qmljs-lib.pri)
|
include(qmljs-lib.pri)
|
||||||
include(../utils/utils.pri)
|
include(../utils/utils.pri)
|
||||||
|
include(../languageutils/languageutils.pri)
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
include($$IDE_SOURCE_TREE/src/libs/languageutils/languageutils.pri)
|
||||||
include($$IDE_SOURCE_TREE/src/libs/cplusplus/cplusplus.pri)
|
include($$IDE_SOURCE_TREE/src/libs/cplusplus/cplusplus.pri)
|
||||||
include($$IDE_SOURCE_TREE/src/plugins/projectexplorer/projectexplorer.pri)
|
include($$IDE_SOURCE_TREE/src/plugins/projectexplorer/projectexplorer.pri)
|
||||||
include($$IDE_SOURCE_TREE/src/plugins/texteditor/texteditor.pri)
|
include($$IDE_SOURCE_TREE/src/plugins/texteditor/texteditor.pri)
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
include($$IDE_SOURCE_TREE/src/libs/languageutils/languageutils.pri)
|
||||||
include($$IDE_SOURCE_TREE/src/libs/qmljs/qmljs.pri)
|
include($$IDE_SOURCE_TREE/src/libs/qmljs/qmljs.pri)
|
||||||
include($$IDE_SOURCE_TREE/src/plugins/projectexplorer/projectexplorer.pri)
|
include($$IDE_SOURCE_TREE/src/plugins/projectexplorer/projectexplorer.pri)
|
||||||
include($$IDE_SOURCE_TREE/src/plugins/texteditor/texteditor.pri)
|
include($$IDE_SOURCE_TREE/src/plugins/texteditor/texteditor.pri)
|
||||||
|
|||||||
Reference in New Issue
Block a user