2015-07-23 13:01:02 +02:00
|
|
|
INCLUDEPATH += ../mockup
|
2015-06-01 18:51:55 +02:00
|
|
|
|
2015-07-22 16:56:17 +02:00
|
|
|
include(gmock_dependency.pri)
|
|
|
|
include(clang_dependency.pri)
|
|
|
|
include(creator_dependency.pri)
|
2016-02-16 16:04:54 +01:00
|
|
|
include(benchmark_dependency.pri)
|
2015-07-08 14:07:13 +02:00
|
|
|
|
2015-07-22 16:56:17 +02:00
|
|
|
QT += core network testlib widgets
|
2016-08-12 16:44:39 +03:00
|
|
|
CONFIG += console c++14 testcase object_parallel_to_source
|
2015-07-22 16:56:17 +02:00
|
|
|
CONFIG -= app_bundle
|
2015-06-01 18:51:55 +02:00
|
|
|
|
2016-02-16 16:04:54 +01:00
|
|
|
OBJECTS_DIR = $$OUT_PWD/obj # workaround for qmake bug in object_parallel_to_source
|
|
|
|
|
2015-06-01 18:51:55 +02:00
|
|
|
osx:QMAKE_CXXFLAGS = -stdlib=libc++
|
|
|
|
|
2016-02-17 11:40:56 +01:00
|
|
|
force_debug_info:QMAKE_CXXFLAGS += -fno-omit-frame-pointer
|
|
|
|
|
2015-07-22 16:56:17 +02:00
|
|
|
DEFINES += \
|
2016-05-14 22:06:00 +03:00
|
|
|
QT_RESTRICTED_CAST_FROM_ASCII \
|
2016-02-17 11:41:23 +01:00
|
|
|
UNIT_TESTS \
|
2015-08-19 12:36:43 +02:00
|
|
|
DONT_CHECK_MESSAGE_COUNTER \
|
2015-07-22 16:56:17 +02:00
|
|
|
TESTDATA_DIR=\"R\\\"xxx($$PWD/data)xxx\\\"\"
|
2016-04-26 11:09:44 +02:00
|
|
|
msvc: QMAKE_CXXFLAGS_WARN_ON -= -w34100 # 'unreferenced formal parameter' in MATCHER_* functions
|
2015-07-22 16:56:17 +02:00
|
|
|
win32:DEFINES += ECHOSERVER=\"R\\\"xxx($$OUT_PWD/../echo)xxx\\\"\"
|
|
|
|
unix: DEFINES += ECHOSERVER=\"R\\\"xxx($$OUT_PWD/../echoserver/echo)xxx\\\"\"
|
|
|
|
|
2016-08-17 14:18:55 +02:00
|
|
|
SOURCES += \
|
2016-09-15 17:41:41 +02:00
|
|
|
clientserverinprocess-test.cpp \
|
2016-08-17 14:18:55 +02:00
|
|
|
clientserveroutsideprocess.cpp \
|
2016-09-15 17:41:41 +02:00
|
|
|
lineprefixer-test.cpp \
|
|
|
|
processevents-utilities.cpp \
|
|
|
|
readandwritemessageblock-test.cpp \
|
|
|
|
sizedarray-test.cpp \
|
|
|
|
smallstring-test.cpp \
|
2016-08-17 14:18:55 +02:00
|
|
|
spydummy.cpp \
|
2016-09-15 17:41:41 +02:00
|
|
|
unittests-main.cpp \
|
|
|
|
utf8-test.cpp
|
2016-08-17 14:18:55 +02:00
|
|
|
|
2016-08-31 15:15:48 +02:00
|
|
|
!isEmpty(LIBCLANG_LIBS) {
|
2015-07-22 16:56:17 +02:00
|
|
|
SOURCES += \
|
2016-09-15 17:41:41 +02:00
|
|
|
activationsequencecontextprocessor-test.cpp \
|
|
|
|
activationsequenceprocessor-test.cpp \
|
2016-01-11 15:20:04 +01:00
|
|
|
chunksreportedmonitor.cpp \
|
2016-09-15 17:41:41 +02:00
|
|
|
clangasyncjob-base.cpp \
|
|
|
|
clangcodecompleteresults-test.cpp \
|
|
|
|
clangcompletecodejob-test.cpp \
|
|
|
|
clangcompletioncontextanalyzer-test.cpp \
|
|
|
|
clangcreateinitialdocumentpreamblejob-test.cpp \
|
|
|
|
clangdiagnosticfilter-test.cpp \
|
|
|
|
clangdocuments-test.cpp \
|
|
|
|
clangdocument-test.cpp \
|
|
|
|
clangfixitoperation-test.cpp \
|
|
|
|
clangipcserver-test.cpp \
|
|
|
|
clangisdiagnosticrelatedtolocation-test.cpp \
|
|
|
|
clangjobqueue-test.cpp \
|
|
|
|
clangjobs-test.cpp \
|
|
|
|
clangrequestdocumentannotationsjob-test.cpp \
|
|
|
|
clangstring-test.cpp \
|
|
|
|
clangupdatedocumentannotationsjob-test.cpp \
|
|
|
|
codecompletionsextractor-test.cpp \
|
|
|
|
codecompletion-test.cpp \
|
|
|
|
completionchunkstotextconverter-test.cpp \
|
|
|
|
createtablesqlstatementbuilder-test.cpp \
|
|
|
|
cursor-test.cpp \
|
|
|
|
diagnosticset-test.cpp \
|
|
|
|
diagnostic-test.cpp \
|
|
|
|
fixit-test.cpp \
|
|
|
|
highlightingmarksreporter-test.cpp \
|
|
|
|
highlightingmarks-test.cpp \
|
|
|
|
projectpart-test.cpp \
|
|
|
|
senddocumenttracker-test.cpp \
|
|
|
|
skippedsourceranges-test.cpp \
|
|
|
|
sourcelocation-test.cpp \
|
|
|
|
sourcerange-test.cpp \
|
|
|
|
sqlitecolumn-test.cpp \
|
|
|
|
sqlitedatabasebackend-test.cpp \
|
|
|
|
sqlitedatabase-test.cpp \
|
|
|
|
sqlitestatement-test.cpp \
|
|
|
|
sqlitetable-test.cpp \
|
|
|
|
sqlstatementbuilder-test.cpp \
|
|
|
|
translationunitupdater-test.cpp \
|
|
|
|
unsavedfiles-test.cpp \
|
|
|
|
unsavedfile-test.cpp \
|
|
|
|
utf8positionfromlinecolumn-test.cpp
|
2016-08-17 14:18:55 +02:00
|
|
|
}
|
|
|
|
|
2016-08-31 15:15:48 +02:00
|
|
|
!isEmpty(LIBTOOLING_LIBS) {
|
2016-08-17 14:18:55 +02:00
|
|
|
SOURCES += \
|
2016-09-15 17:41:41 +02:00
|
|
|
refactoringclientserverinprocess-test.cpp \
|
|
|
|
refactoringclient-test.cpp \
|
|
|
|
refactoringcompilationdatabase-test.cpp \
|
|
|
|
refactoringengine-test.cpp \
|
|
|
|
refactoringserver-test.cpp \
|
|
|
|
symbolfinder-test.cpp
|
2016-08-17 14:18:55 +02:00
|
|
|
}
|
2016-02-17 16:05:41 +01:00
|
|
|
|
|
|
|
exists($$GOOGLEBENCHMARK_DIR) {
|
|
|
|
SOURCES += \
|
2016-09-15 17:41:41 +02:00
|
|
|
smallstring-benchmark.cpp
|
2016-02-17 16:05:41 +01:00
|
|
|
}
|
2015-06-01 18:51:55 +02:00
|
|
|
|
|
|
|
HEADERS += \
|
2016-09-15 17:41:41 +02:00
|
|
|
filesystem-utilities.h \
|
|
|
|
googletest.h \
|
2015-06-01 18:51:55 +02:00
|
|
|
gtest-qt-printing.h \
|
2016-09-15 17:41:41 +02:00
|
|
|
processevents-utilities.h \
|
|
|
|
spydummy.h
|
2016-08-17 14:18:55 +02:00
|
|
|
|
2016-08-31 15:15:48 +02:00
|
|
|
!isEmpty(LIBCLANG_LIBS) {
|
2016-08-17 14:18:55 +02:00
|
|
|
HEADERS += \
|
|
|
|
chunksreportedmonitor.h \
|
2016-09-15 17:41:41 +02:00
|
|
|
clangasyncjob-base.h \
|
|
|
|
diagnosticcontainer-matcher.h \
|
|
|
|
dummyclangipcclient.h \
|
|
|
|
mockclangcodemodelclient.h \
|
|
|
|
mockclangcodemodelserver.h
|
2016-08-17 14:18:55 +02:00
|
|
|
}
|
|
|
|
|
2016-08-31 15:15:48 +02:00
|
|
|
!isEmpty(LIBTOOLING_LIBS) {
|
2016-08-17 14:18:55 +02:00
|
|
|
HEADERS += \
|
2016-09-15 17:41:41 +02:00
|
|
|
mockrefactoringclientcallback.h \
|
|
|
|
mockrefactoringclient.h \
|
|
|
|
mockrefactoringserver.h
|
2016-08-17 14:18:55 +02:00
|
|
|
}
|
2015-06-01 18:51:55 +02:00
|
|
|
|
2015-07-22 16:56:17 +02:00
|
|
|
OTHER_FILES += $$files(data/*)
|