forked from qt-creator/qt-creator
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:
@@ -1,18 +1,13 @@
|
||||
set(CLANG_VERSION ${LLVM_VERSION_MAJOR}.${LLVM_VERSION_MINOR}.${LLVM_VERSION_PATCH})
|
||||
|
||||
set(TEST_LINK_DEPENDS)
|
||||
if(WITH_TESTS)
|
||||
set(TEST_LINK_DEPENDS QtSupport)
|
||||
endif()
|
||||
|
||||
add_qtc_plugin(ClangCodeModel
|
||||
CONDITION TARGET libclang
|
||||
DEPENDS CPlusPlus
|
||||
PLUGIN_DEPENDS Core CppEditor LanguageClient ${TEST_LINK_DEPENDS} TextEditor
|
||||
PLUGIN_TEST_DEPENDS QmakeProjectManager
|
||||
DEFINES
|
||||
CLANG_VERSION="${CLANG_VERSION}"
|
||||
CLANG_INCLUDE_DIR="${LLVM_LIBRARY_DIR}/clang/${CLANG_VERSION}/include"
|
||||
CLANG_BINDIR="${LLVM_TOOLS_BINARY_DIR}"
|
||||
SOURCES
|
||||
clangactivationsequencecontextprocessor.cpp clangactivationsequencecontextprocessor.h
|
||||
|
@@ -14,15 +14,12 @@ QtcPlugin {
|
||||
Depends { name: "TextEditor" }
|
||||
Depends { name: "Utils" }
|
||||
|
||||
Depends { name: "libclang"; required: false }
|
||||
Depends { name: "clang_defines" }
|
||||
|
||||
pluginTestDepends: [
|
||||
"QmakeProjectManager",
|
||||
]
|
||||
|
||||
condition: libclang.present
|
||||
|
||||
files: [
|
||||
"clangactivationsequencecontextprocessor.cpp",
|
||||
"clangactivationsequencecontextprocessor.h",
|
||||
|
Reference in New Issue
Block a user