forked from qt-creator/qt-creator
Change-Id: I36b5e28a91999559644bce002085eb929e6e82ef Reviewed-by: Marco Bubke <marco.bubke@qt.io> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
41 lines
1.2 KiB
QML
41 lines
1.2 KiB
QML
import qbs
|
|
import qbs.FileInfo
|
|
|
|
QtcTool {
|
|
name: "clangrefactoringbackend"
|
|
Depends { name: "libclang"; required: false }
|
|
condition: libclang.present
|
|
&& libclang.toolingEnabled
|
|
&& (!qbs.targetOS.contains("windows") || libclang.llvmBuildModeMatches)
|
|
|
|
Depends { name: "ClangSupport" }
|
|
|
|
Depends { name: "Qt.network" }
|
|
|
|
cpp.cxxFlags: base.concat(libclang.llvmToolingCxxFlags)
|
|
cpp.defines: base.concat(libclang.llvmToolingDefines)
|
|
cpp.includePaths: base.concat(libclang.llvmIncludeDir)
|
|
.concat(libclang.llvmToolingIncludes)
|
|
.concat(["source"])
|
|
.concat(["../clangpchmanagerbackend/source"])
|
|
cpp.libraryPaths: base.concat(libclang.llvmLibDir)
|
|
cpp.dynamicLibraries: base.concat(libclang.llvmToolingLibs)
|
|
|
|
Properties {
|
|
condition: qbs.targetOS.contains("unix") && !qbs.targetOS.contains("macos")
|
|
cpp.rpaths: base.concat(libclang.llvmLibDir)
|
|
}
|
|
|
|
files: [
|
|
"clangrefactoringbackendmain.cpp",
|
|
]
|
|
|
|
Group {
|
|
prefix: "source/"
|
|
files: [
|
|
"*.cpp",
|
|
"*.h",
|
|
]
|
|
}
|
|
}
|