forked from qt-creator/qt-creator
If you have no LLVM installed it was impossible to compile the unit test. But some unit test don't depend on LLVM. With this change it is now possible to compile them. Change-Id: Iac0c1b3cdf6c317e6ba4755acd5f8458db5a7451 Reviewed-by: David Schulz <david.schulz@qt.io>
126 lines
3.4 KiB
Prolog
126 lines
3.4 KiB
Prolog
INCLUDEPATH += ../mockup
|
|
|
|
include(gmock_dependency.pri)
|
|
include(clang_dependency.pri)
|
|
include(creator_dependency.pri)
|
|
include(benchmark_dependency.pri)
|
|
|
|
QT += core network testlib widgets
|
|
CONFIG += console c++14 testcase object_parallel_to_source
|
|
CONFIG -= app_bundle
|
|
|
|
OBJECTS_DIR = $$OUT_PWD/obj # workaround for qmake bug in object_parallel_to_source
|
|
|
|
osx:QMAKE_CXXFLAGS = -stdlib=libc++
|
|
|
|
force_debug_info:QMAKE_CXXFLAGS += -fno-omit-frame-pointer
|
|
|
|
DEFINES += \
|
|
QT_RESTRICTED_CAST_FROM_ASCII \
|
|
UNIT_TESTS \
|
|
DONT_CHECK_MESSAGE_COUNTER \
|
|
TESTDATA_DIR=\"R\\\"xxx($$PWD/data)xxx\\\"\"
|
|
msvc: QMAKE_CXXFLAGS_WARN_ON -= -w34100 # 'unreferenced formal parameter' in MATCHER_* functions
|
|
win32:DEFINES += ECHOSERVER=\"R\\\"xxx($$OUT_PWD/../echo)xxx\\\"\"
|
|
unix: DEFINES += ECHOSERVER=\"R\\\"xxx($$OUT_PWD/../echoserver/echo)xxx\\\"\"
|
|
|
|
SOURCES += \
|
|
clientserverinprocesstest.cpp \
|
|
clientserveroutsideprocess.cpp \
|
|
lineprefixertest.cpp \
|
|
main.cpp \
|
|
readandwritemessageblocktest.cpp \
|
|
sizedarraytest.cpp \
|
|
spydummy.cpp \
|
|
smallstringtest.cpp \
|
|
testutils.cpp \
|
|
utf8test.cpp
|
|
|
|
!isEmpty($$LIBCLANG_LIBS) {
|
|
SOURCES += \
|
|
activationsequencecontextprocessortest.cpp \
|
|
activationsequenceprocessortest.cpp \
|
|
clangcodecompleteresultstest.cpp \
|
|
clangcompletioncontextanalyzertest.cpp \
|
|
clangdiagnosticfiltertest.cpp \
|
|
clangfixitoperationtest.cpp \
|
|
clangipcservertest.cpp \
|
|
clangstringtest.cpp \
|
|
codecompletionsextractortest.cpp \
|
|
codecompletiontest.cpp \
|
|
completionchunkstotextconvertertest.cpp \
|
|
createtablesqlstatementbuildertest.cpp \
|
|
diagnosticsettest.cpp \
|
|
diagnostictest.cpp \
|
|
fixittest.cpp \
|
|
projecttest.cpp \
|
|
sourcelocationtest.cpp \
|
|
sourcerangetest.cpp \
|
|
sqlitecolumntest.cpp \
|
|
sqlitedatabasebackendtest.cpp \
|
|
sqlitedatabasetest.cpp \
|
|
sqlitestatementtest.cpp \
|
|
sqlitetabletest.cpp \
|
|
sqlstatementbuildertest.cpp \
|
|
translationunitstest.cpp \
|
|
translationunittest.cpp \
|
|
unsavedfilestest.cpp \
|
|
senddocumenttrackertest.cpp \
|
|
cursortest.cpp \
|
|
skippedsourcerangestest.cpp \
|
|
highlightingmarksreportertest.cpp \
|
|
chunksreportedmonitor.cpp \
|
|
unsavedfiletest.cpp \
|
|
clangisdiagnosticrelatedtolocationtest.cpp \
|
|
highlightingmarkstest.cpp \
|
|
utf8positionfromlinecolumntest.cpp \
|
|
translationunitupdatertest.cpp \
|
|
clangasyncjobtest.cpp \
|
|
clangcompletecodejobtest.cpp \
|
|
clangcreateinitialdocumentpreamblejobtest.cpp \
|
|
clangjobqueuetest.cpp \
|
|
clangjobstest.cpp \
|
|
clangrequestdocumentannotationsjobtest.cpp \
|
|
clangupdatedocumentannotationsjobtest.cpp
|
|
}
|
|
|
|
!isEmpty($$LIBTOOLING_LIBS) {
|
|
SOURCES += \
|
|
refactoringclientserverinprocesstest.cpp \
|
|
refactoringcompilationdatabasetest.cpp \
|
|
refactoringservertest.cpp \
|
|
refactoringenginetest.cpp \
|
|
refactoringclienttest.cpp \
|
|
symbolfindertest.cpp
|
|
}
|
|
|
|
exists($$GOOGLEBENCHMARK_DIR) {
|
|
SOURCES += \
|
|
smallstringbenchmark.cpp
|
|
}
|
|
|
|
HEADERS += \
|
|
gtest-qt-printing.h \
|
|
spydummy.h \
|
|
dummyclangipcclient.h \
|
|
testutils.h \
|
|
mockclangcodemodelclient.h \
|
|
mockclangcodemodelserver.h \
|
|
mockrefactoringclient.h \
|
|
mockrefactoringserver.h \
|
|
refactoringclientcallbackmock.h
|
|
|
|
!isEmpty($$LIBCLANG_LIBS) {
|
|
HEADERS += \
|
|
clangasyncjobtest.h \
|
|
chunksreportedmonitor.h \
|
|
matcher-diagnosticcontainer.h
|
|
}
|
|
|
|
!isEmpty($$LIBTOOLING_LIBS) {
|
|
HEADERS += \
|
|
filesystemutilities.h
|
|
}
|
|
|
|
OTHER_FILES += $$files(data/*)
|