ClangCodeModel: Update build system files

There is no compile-time dependency to libclang anymore.

Change-Id: I3b07977ba037a9c39c54d95c39f0505ae934cb02
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Christian Kandeler
2022-05-09 16:24:57 +02:00
parent e0ab8ad258
commit 031fe30260
2 changed files with 0 additions and 8 deletions

View File

@@ -1,18 +1,13 @@
set(CLANG_VERSION ${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH})
set(TEST_LINK_DEPENDS) set(TEST_LINK_DEPENDS)
if(WITH_TESTS) if(WITH_TESTS)
set(TEST_LINK_DEPENDS QtSupport) set(TEST_LINK_DEPENDS QtSupport)
endif() endif()
add_qtc_plugin(ClangCodeModel add_qtc_plugin(ClangCodeModel
CONDITION TARGET libclang
DEPENDS CPlusPlus DEPENDS CPlusPlus
PLUGIN_DEPENDS Core CppEditor LanguageClient ${TEST_LINK_DEPENDS} TextEditor PLUGIN_DEPENDS Core CppEditor LanguageClient ${TEST_LINK_DEPENDS} TextEditor
PLUGIN_TEST_DEPENDS QmakeProjectManager PLUGIN_TEST_DEPENDS QmakeProjectManager
DEFINES DEFINES
CLANG_VERSION="${CLANG_VERSION}"
CLANG_INCLUDE_DIR="${LLVM_LIBRARY_DIR}/clang/${CLANG_VERSION}/include"
CLANG_BINDIR="${LLVM_TOOLS_BINARY_DIR}" CLANG_BINDIR="${LLVM_TOOLS_BINARY_DIR}"
SOURCES SOURCES
clangactivationsequencecontextprocessor.cpp clangactivationsequencecontextprocessor.h clangactivationsequencecontextprocessor.cpp clangactivationsequencecontextprocessor.h

View File

@@ -14,15 +14,12 @@ QtcPlugin {
Depends { name: "TextEditor" } Depends { name: "TextEditor" }
Depends { name: "Utils" } Depends { name: "Utils" }
Depends { name: "libclang"; required: false }
Depends { name: "clang_defines" } Depends { name: "clang_defines" }
pluginTestDepends: [ pluginTestDepends: [
"QmakeProjectManager", "QmakeProjectManager",
] ]
condition: libclang.present
files: [ files: [
"clangactivationsequencecontextprocessor.cpp", "clangactivationsequencecontextprocessor.cpp",
"clangactivationsequencecontextprocessor.h", "clangactivationsequencecontextprocessor.h",