2015-07-23 13:01:02 +02:00
|
|
|
INCLUDEPATH += ../mockup
|
2015-06-01 18:51:55 +02:00
|
|
|
|
2017-01-30 14:38:18 +01:00
|
|
|
QT += core network testlib widgets
|
|
|
|
CONFIG += console c++14 testcase object_parallel_to_source
|
|
|
|
CONFIG -= app_bundle shared
|
|
|
|
|
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
|
|
|
|
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 \
|
|
|
|
lineprefixer-test.cpp \
|
2016-11-29 17:32:34 +01:00
|
|
|
cppprojectfilecategorizer-test.cpp \
|
2016-12-05 15:24:09 +01:00
|
|
|
cppbaseprojectpartbuilder-test.cpp \
|
2016-12-16 13:10:43 +01:00
|
|
|
cppprojectpartchooser-test.cpp \
|
2016-09-15 17:41:41 +02:00
|
|
|
processevents-utilities.cpp \
|
2016-12-05 15:24:09 +01:00
|
|
|
mimedatabase-utilities.cpp \
|
2016-09-15 17:41:41 +02:00
|
|
|
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 \
|
2016-11-23 13:13:38 +01:00
|
|
|
utf8-test.cpp \
|
2016-11-23 13:31:47 +01:00
|
|
|
gtest-qt-printing.cpp \
|
2017-01-04 11:39:17 +01:00
|
|
|
gtest-creator-printing.cpp \
|
|
|
|
clangparsesupportivetranslationunitjob-test.cpp \
|
|
|
|
clangreparsesupportivetranslationunitjob-test.cpp \
|
|
|
|
clangsupportivetranslationunitinitializer-test.cpp \
|
|
|
|
codecompleter-test.cpp \
|
|
|
|
clientserveroutsideprocess-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 \
|
2016-09-08 15:49:54 +02:00
|
|
|
clangdocumentprocessor-test.cpp \
|
|
|
|
clangdocumentprocessors-test.cpp \
|
2016-09-15 17:41:41 +02:00
|
|
|
clangfixitoperation-test.cpp \
|
|
|
|
clangipcserver-test.cpp \
|
|
|
|
clangisdiagnosticrelatedtolocation-test.cpp \
|
|
|
|
clangjobqueue-test.cpp \
|
|
|
|
clangjobs-test.cpp \
|
|
|
|
clangrequestdocumentannotationsjob-test.cpp \
|
|
|
|
clangstring-test.cpp \
|
2016-10-04 16:23:42 +02:00
|
|
|
clangtranslationunit-test.cpp \
|
2016-09-13 10:41:22 +02:00
|
|
|
clangtranslationunits-test.cpp \
|
2016-09-15 17:41:41 +02:00
|
|
|
clangupdatedocumentannotationsjob-test.cpp \
|
|
|
|
codecompletionsextractor-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-11-15 15:38:12 +01:00
|
|
|
clangquery-test.cpp \
|
|
|
|
clangqueryprojectfindfilter-test.cpp \
|
2016-09-15 17:41:41 +02:00
|
|
|
refactoringclientserverinprocess-test.cpp \
|
|
|
|
refactoringclient-test.cpp \
|
|
|
|
refactoringcompilationdatabase-test.cpp \
|
|
|
|
refactoringengine-test.cpp \
|
|
|
|
refactoringserver-test.cpp \
|
2016-11-23 13:13:38 +01:00
|
|
|
symbolfinder-test.cpp \
|
|
|
|
sourcerangeextractor-test.cpp \
|
|
|
|
gtest-clang-printing.cpp \
|
|
|
|
testclangtool.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 \
|
2016-12-05 15:24:09 +01:00
|
|
|
mimedatabase-utilities.h \
|
2016-11-15 15:38:12 +01:00
|
|
|
spydummy.h \
|
|
|
|
sourcerangecontainer-matcher.h \
|
|
|
|
dynamicastmatcherdiagnosticcontainer-matcher.h \
|
|
|
|
mocksearchresult.h \
|
|
|
|
mocksearch.h \
|
2016-11-23 13:13:38 +01:00
|
|
|
mocksearchhandle.h \
|
2016-11-23 13:31:47 +01:00
|
|
|
compare-operators.h \
|
2016-12-14 13:30:56 +01:00
|
|
|
gtest-creator-printing.h \
|
|
|
|
conditionally-disabled-tests.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 \
|
2016-10-11 18:19:12 +02:00
|
|
|
clangcompareoperators.h \
|
2016-09-15 17:41:41 +02:00
|
|
|
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 \
|
2016-11-23 13:13:38 +01:00
|
|
|
mockrefactoringserver.h \
|
|
|
|
gtest-clang-printing.h \
|
|
|
|
testclangtool.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/*)
|