Clang: Fix release build

* The QtTest include is not available in release builds.
* Make the batch file mode only available in debug/test builds as that
  one uses test utilities that are only available in debug builds.

Change-Id: I441c51ec00b14b81a396ad0199882cf46fff10b0
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Nikolai Kosjar
2017-02-27 16:08:04 +01:00
parent 69ec8054a6
commit d1133916a9
4 changed files with 13 additions and 11 deletions

View File

@@ -9,9 +9,7 @@ SOURCES += \
clangassistproposal.cpp \
clangassistproposalitem.cpp \
clangassistproposalmodel.cpp \
clangautomationutils.cpp \
clangbackendipcintegration.cpp \
clangbatchfileprocessor.cpp \
clangcodemodelplugin.cpp \
clangcompletionassistinterface.cpp \
clangcompletionassistprocessor.cpp \
@@ -41,9 +39,7 @@ HEADERS += \
clangassistproposal.h \
clangassistproposalitem.h \
clangassistproposalmodel.h \
clangautomationutils.h \
clangbackendipcintegration.h \
clangbatchfileprocessor.h \
clangcodemodelplugin.h \
clangcompletionassistinterface.h \
clangcompletionassistprocessor.h \
@@ -80,10 +76,14 @@ DISTFILES += \
equals(TEST, 1) {
HEADERS += \
test/clangcodecompletion_test.h
test/clangautomationutils.h \
test/clangbatchfileprocessor.h \
test/clangcodecompletion_test.h \
SOURCES += \
test/clangcodecompletion_test.cpp
test/clangautomationutils.cpp \
test/clangbatchfileprocessor.cpp \
test/clangcodecompletion_test.cpp \
RESOURCES += test/data/clangtestdata.qrc
OTHER_FILES += $$files(test/data/*)