Skip to content
Snippets Groups Projects
Commit f13d4a10 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Autotests: Compile on Windows

Reviewed-by: default avatarRoberto Raggi <qtc-committer@nokia.com>
parent 4091efb4
No related branches found
No related tags found
No related merge requests found
DEFINES += CPLUSPLUS_BUILD_LIB contains(CONFIG, dll) {
DEFINES += CPLUSPLUS_BUILD_LIB
} else {
DEFINES += CPLUSPLUS_BUILD_STATIC_LIB
}
INCLUDEPATH += $$PWD INCLUDEPATH += $$PWD
include(../../shared/cplusplus/cplusplus.pri) include(../../shared/cplusplus/cplusplus.pri)
......
TEMPLATE = lib TEMPLATE = lib
CONFIG+=dll
TARGET = CPlusPlus TARGET = CPlusPlus
DEFINES += NDEBUG DEFINES += NDEBUG
......
...@@ -2,7 +2,7 @@ TEMPLATE = lib ...@@ -2,7 +2,7 @@ TEMPLATE = lib
TARGET = Utils TARGET = Utils
QT += gui \ QT += gui \
network network
DEFINES += QTCREATOR_UTILS_LIBRARY DEFINES += QTCREATOR_UTILS_LIB
include(../../qtcreatorlibrary.pri) include(../../qtcreatorlibrary.pri)
SOURCES += reloadpromptutils.cpp \ SOURCES += reloadpromptutils.cpp \
settingsutils.cpp \ settingsutils.cpp \
......
...@@ -32,8 +32,10 @@ ...@@ -32,8 +32,10 @@
#include <QtCore/qglobal.h> #include <QtCore/qglobal.h>
#if defined(QTCREATOR_UTILS_LIBRARY) #if defined(QTCREATOR_UTILS_LIB)
# define QTCREATOR_UTILS_EXPORT Q_DECL_EXPORT # define QTCREATOR_UTILS_EXPORT Q_DECL_EXPORT
#elif defined(QTCREATOR_UTILS_STATIC_LIB) // Abuse single files for manual tests
# define QTCREATOR_UTILS_EXPORT
#else #else
# define QTCREATOR_UTILS_EXPORT Q_DECL_IMPORT # define QTCREATOR_UTILS_EXPORT Q_DECL_IMPORT
#endif #endif
......
...@@ -54,6 +54,8 @@ ...@@ -54,6 +54,8 @@
# if defined(CPLUSPLUS_BUILD_LIB) # if defined(CPLUSPLUS_BUILD_LIB)
# define CPLUSPLUS_EXPORT Q_DECL_EXPORT # define CPLUSPLUS_EXPORT Q_DECL_EXPORT
# elif defined(CPLUSPLUS_BUILD_STATIC_LIB)
# define CPLUSPLUS_EXPORT
# else # else
# define CPLUSPLUS_EXPORT Q_DECL_IMPORT # define CPLUSPLUS_EXPORT Q_DECL_IMPORT
# endif # endif
......
DEFINES+=CPLUSPLUS_BUILD_STATIC_LIB
INCLUDEPATH += $$PWD/../../../../src/shared/cplusplus INCLUDEPATH += $$PWD/../../../../src/shared/cplusplus
INCLUDEPATH += $$PWD/../../../../src/libs/cplusplus INCLUDEPATH += $$PWD/../../../../src/libs/cplusplus
DEPENDPATH += $$INCLUDEPATH . DEPENDPATH += $$INCLUDEPATH .
......
TEMPLATE = subdirs TEMPLATE = subdirs
SUBDIRS = dumpers.pro plugin.pro gdb.pro SUBDIRS = dumpers.pro plugin.pro
QT += testlib QT += testlib
# Defines import symbol as empty
DEFINES+=QTCREATOR_UTILS_STATIC_LIB
FAKEVIMDIR = ../../../src/plugins/fakevim FAKEVIMDIR = ../../../src/plugins/fakevim
UTILSDIR = ../../../src/libs UTILSDIR = ../../../src/libs
......
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