forked from qt-creator/qt-creator
make library defines more consistency
Change-Id: I211d511667d5b9c8f518bfbe750aca4483baff62 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -42,13 +42,13 @@
|
||||
# define QT_QML_BEGIN_NAMESPACE
|
||||
# define QT_QML_END_NAMESPACE
|
||||
|
||||
# ifdef QMLJS_BUILD_DIR
|
||||
# ifdef QMLJS_LIBRARY
|
||||
# define QML_PARSER_EXPORT Q_DECL_EXPORT
|
||||
# elif QML_BUILD_STATIC_LIB
|
||||
# define QML_PARSER_EXPORT
|
||||
# else
|
||||
# define QML_PARSER_EXPORT Q_DECL_IMPORT
|
||||
# endif // QMLJS_BUILD_DIR
|
||||
# endif // QMLJS_LIBRARY
|
||||
|
||||
#else // !QT_CREATOR
|
||||
# define QT_QML_BEGIN_NAMESPACE QT_BEGIN_NAMESPACE
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
contains(CONFIG, dll) {
|
||||
DEFINES += QMLJS_BUILD_DIR
|
||||
DEFINES += QMLJS_LIBRARY
|
||||
} else {
|
||||
DEFINES += QML_BUILD_STATIC_LIB
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
DEFINES += QMLJS_BUILD_DIR
|
||||
DEFINES += QMLJS_LIBRARY
|
||||
|
||||
include(../../qtcreatorlibrary.pri)
|
||||
include(qmljs-lib.pri)
|
||||
|
||||
@@ -6,7 +6,7 @@ Project {
|
||||
QtcDevHeaders { }
|
||||
|
||||
QtcLibrary {
|
||||
cpp.defines: base.concat(["QMLJS_BUILD_DIR"])
|
||||
cpp.defines: base.concat(["QMLJS_LIBRARY"])
|
||||
cpp.optimization: "fast"
|
||||
|
||||
Depends { name: "ExtensionSystem" }
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
#include <qglobal.h>
|
||||
|
||||
#if defined(QMLJS_BUILD_DIR)
|
||||
#if defined(QMLJS_LIBRARY)
|
||||
# define QMLJS_EXPORT Q_DECL_EXPORT
|
||||
#elif defined(QML_BUILD_STATIC_LIB)
|
||||
# define QMLJS_EXPORT
|
||||
|
||||
Reference in New Issue
Block a user