Commit 8a06df62 authored by Nikolai Kosjar's avatar Nikolai Kosjar
Browse files

Clang: Clean up unittest.pro



Change-Id: Icd3f1ab0b9b9557b0bd4cdfc60130e0c8bd15609
Reviewed-by: default avatarMarco Bubke <marco.bubke@theqtcompany.com>
parent e4748fe8
include(../../../src/shared/clang/clang_installation.pri)
requires(!isEmpty(LLVM_LIBS))
INCLUDEPATH += $$LLVM_INCLUDEPATH
LIBS += $$LLVM_LIBS
INCLUDEPATH += $$PWD
#include($$PWD/../../../src/libs/3rdparty/cplusplus/cplusplus.pri)
include($$PWD/../../../src/libs/utils/utils-lib.pri)
include($$PWD/../../../src/libs/cplusplus/cplusplus-lib.pri)
include(../../../src/libs/sqlite/sqlite-lib.pri)
include(../../../src/libs/clangbackendipc/clangbackendipc-lib.pri)
include(../../../src/tools/clangbackend/ipcsource/clangbackendclangipc-source.pri)
include(../../../src/plugins/clangcodemodel/clangcodemodelunittestfiles.pri)
include(cplusplus.pri)
INCLUDEPATH += \
$$PWD/../../../src/libs \
$$PWD/../../../src/libs/3rdparty \
$$PWD/../../../src/plugins
GMOCK_DIR = $$(GMOCK_DIR)
GTEST_DIR = $$GMOCK_DIR/gtest
requires(exists($$GMOCK_DIR))
!exists($$GMOCK_DIR):message("No gmock is found! To enabe unit tests set GMOCK_DIR")
DEFINES += \
GTEST_HAS_STD_INITIALIZER_LIST_ \
GTEST_LANG_CXX11
INCLUDEPATH += \
$$GTEST_DIR \
$$GTEST_DIR/include \
$$GMOCK_DIR \
$$GMOCK_DIR/include
SOURCES += \
$$GMOCK_DIR/src/gmock-all.cc \
$$GTEST_DIR/src/gtest-all.cc
HEADERS += \
$$PWD/gtest-qt-printing.h
QT += core network testlib widgets
TARGET = unittest
CONFIG += console c++14 testcase
CONFIG -= app_bundle
TEMPLATE = app
GMOCK_DIR = $$(GMOCK_DIR)
GTEST_DIR = $$GMOCK_DIR/gtest
requires(exists($$GMOCK_DIR))
!exists($$GMOCK_DIR):message("No gmock is found! To enabe unit tests set GMOCK_DIR")
INCLUDEPATH += ../mockup
INCLUDEPATH += $$GTEST_DIR $$GTEST_DIR/include $$GMOCK_DIR $$GMOCK_DIR/include
include(../../../src/libs/sqlite/sqlite-lib.pri)
include(../../../src/libs/clangbackendipc/clangbackendipc-lib.pri)
include(../../../src/tools/clangbackend/ipcsource/clangbackendclangipc-source.pri)
include(../../../src/shared/clang/clang_installation.pri)
include(../../../src/plugins/clangcodemodel/clangcodemodelunittestfiles.pri)
include(cplusplus.pri)
INCLUDEPATH += $$PWD/../../../src/libs $$PWD/../../../src/plugins $$PWD/../../../src/libs/3rdparty
requires(!isEmpty(LLVM_LIBS))
LIBS += $$LLVM_LIBS
INCLUDEPATH += $$LLVM_INCLUDEPATH
include(gmock_dependency.pri)
include(clang_dependency.pri)
include(creator_dependency.pri)
QT += core network testlib widgets
CONFIG += console c++14 testcase
CONFIG -= app_bundle
osx:QMAKE_CXXFLAGS = -stdlib=libc++
SOURCES += main.cpp \
$$GTEST_DIR/src/gtest-all.cc \
$$GMOCK_DIR/src/gmock-all.cc \
utf8test.cpp \
sqlstatementbuildertest.cpp \
DEFINES += \
QT_NO_CAST_FROM_ASCII \
CLANGBACKEND_TESTS \
DONT_CHECK_COMMAND_COUNTER \
TESTDATA_DIR=\"R\\\"xxx($$PWD/data)xxx\\\"\"
win32:DEFINES += ECHOSERVER=\"R\\\"xxx($$OUT_PWD/../echo)xxx\\\"\"
unix: DEFINES += ECHOSERVER=\"R\\\"xxx($$OUT_PWD/../echoserver/echo)xxx\\\"\"
SOURCES += \
activationsequencecontextprocessortest.cpp \
activationsequenceprocessortest.cpp \
clangcodecompleteresultstest.cpp \
clangcompletioncontextanalyzertest.cpp \
clangipcservertest.cpp \
clangstringtest.cpp \
clientserverinprocesstest.cpp \
clientserveroutsideprocess.cpp \
codecompletionsextractortest.cpp \
codecompletiontest.cpp \
completionchunkstotextconvertertest.cpp \
createtablesqlstatementbuildertest.cpp \
lineprefixertest.cpp \
main.cpp \
projecttest.cpp \
readandwritecommandblocktest.cpp \
spydummy.cpp \
sqlitecolumntest.cpp \
sqlitedatabasebackendtest.cpp \
sqlitedatabasetest.cpp \
sqlitestatementtest.cpp \
sqlitetabletest.cpp \
spydummy.cpp \
sqlitedatabasetest.cpp \
sqlitedatabasebackendtest.cpp \
readandwritecommandblocktest.cpp \
clientserverinprocesstest.cpp \
clientserveroutsideprocess.cpp \
codecompletiontest.cpp \
clangstringtest.cpp \
sqlstatementbuildertest.cpp \
translationunitstest.cpp \
translationunittest.cpp \
clangcodecompleteresultstest.cpp \
codecompletionsextractortest.cpp \
unsavedfilestest.cpp \
projecttest.cpp \
clangipcservertest.cpp \
translationunitstest.cpp \
completionchunkstotextconvertertest.cpp \
lineprefixertest.cpp \
activationsequenceprocessortest.cpp \
clangcompletioncontextanalyzertest.cpp \
activationsequencecontextprocessortest.cpp
utf8test.cpp
HEADERS += \
gtest-qt-printing.h \
spydummy.h \
mockipclient.h \
mockipcserver.h
mockipcserver.h \
spydummy.h
OTHER_FILES += data/complete_testfile_1.cpp \
data/complete_completer.cpp \
data/complete_completer_unsaved.cpp \
data/complete_extractor_function.cpp \
data/complete_extractor_function_unsaved.cpp \
data/complete_extractor_function_unsaved_2.cpp \
data/complete_extractor_variable.cpp \
data/complete_extractor_class.cpp \
data/complete_extractor_namespace.cpp \
data/complete_extractor_enumeration.cpp \
data/complete_extractor_constructor.cpp \
data/complete_translationunit_parse_error.cpp
DEFINES += QT_NO_CAST_FROM_ASCII
DEFINES += CLANGBACKEND_TESTS
DEFINES += DONT_CHECK_COMMAND_COUNTER
DEFINES += GTEST_HAS_STD_INITIALIZER_LIST_ GTEST_LANG_CXX11
DEFINES += TESTDATA_DIR=\"R\\\"xxx($$PWD/data)xxx\\\"\"
win32:DEFINES += ECHOSERVER=\"R\\\"xxx($$OUT_PWD/../echo)xxx\\\"\"
unix:DEFINES += ECHOSERVER=\"R\\\"xxx($$OUT_PWD/../echoserver/echo)xxx\\\"\"
OTHER_FILES += $$files(data/*)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment