forked from qt-creator/qt-creator
Add qbs project files for some clang-related tools and plugins
Change-Id: I4882be50c6b007715f7b281f95d111abc5cda62a Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Jake Petroules <jake.petroules@qt.io> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This commit is contained in:
80
src/plugins/clangrefactoring/clangrefactoring.qbs
Normal file
80
src/plugins/clangrefactoring/clangrefactoring.qbs
Normal file
@@ -0,0 +1,80 @@
|
||||
import qbs
|
||||
import qbs.FileInfo
|
||||
|
||||
QtcPlugin {
|
||||
name: "ClangRefactoring"
|
||||
|
||||
Depends { name: "libclang"; required: false }
|
||||
condition: libclang.present && libclang.toolingEnabled
|
||||
|
||||
Depends { name: "ClangSupport" }
|
||||
Depends { name: "Utils" }
|
||||
|
||||
Depends { name: "ClangPchManager" }
|
||||
Depends { name: "Core" }
|
||||
Depends { name: "CppTools" }
|
||||
Depends { name: "ProjectExplorer" }
|
||||
Depends { name: "TextEditor" }
|
||||
|
||||
cpp.defines: {
|
||||
var defines = base;
|
||||
defines.push("CLANGPCHMANAGER_LIB");
|
||||
|
||||
// The following defines are used to determine the clang include path for intrinsics.
|
||||
defines.push('CLANG_VERSION="' + libclang.llvmVersion + '"');
|
||||
var resourceDir = FileInfo.joinPaths(libclang.llvmLibDir, "clang", libclang.llvmVersion,
|
||||
"include");
|
||||
defines.push('CLANG_RESOURCE_DIR="' + resourceDir + '"');
|
||||
return defines;
|
||||
}
|
||||
|
||||
cpp.includePaths: ["."]
|
||||
|
||||
files: [
|
||||
"baseclangquerytexteditorwidget.cpp",
|
||||
"baseclangquerytexteditorwidget.h",
|
||||
"clangqueryexamplehighlighter.cpp",
|
||||
"clangqueryexamplehighlighter.h",
|
||||
"clangqueryexamplehighlightmarker.h",
|
||||
"clangqueryexampletexteditorwidget.cpp",
|
||||
"clangqueryexampletexteditorwidget.h",
|
||||
"clangqueryhighlighter.cpp",
|
||||
"clangqueryhighlighter.h",
|
||||
"clangqueryhighlightmarker.h",
|
||||
"clangqueryhoverhandler.cpp",
|
||||
"clangqueryhoverhandler.h",
|
||||
"clangqueryprojectsfindfilter.cpp",
|
||||
"clangqueryprojectsfindfilter.h",
|
||||
"clangqueryprojectsfindfilter.ui",
|
||||
"clangqueryprojectsfindfilterwidget.cpp",
|
||||
"clangqueryprojectsfindfilterwidget.h",
|
||||
"clangquerytexteditorwidget.cpp",
|
||||
"clangquerytexteditorwidget.h",
|
||||
"clangrefactoringplugin.cpp",
|
||||
"clangrefactoringplugin.h",
|
||||
"projectpartutilities.cpp",
|
||||
"projectpartutilities.h",
|
||||
"qtcreatorclangqueryfindfilter.cpp",
|
||||
"qtcreatorclangqueryfindfilter.h",
|
||||
"qtcreatorsearch.cpp",
|
||||
"qtcreatorsearch.h",
|
||||
"qtcreatorsearchhandle.cpp",
|
||||
"qtcreatorsearchhandle.h",
|
||||
"querysqlitestatementfactory.h",
|
||||
"refactoringclient.cpp",
|
||||
"refactoringclient.h",
|
||||
"refactoringconnectionclient.cpp",
|
||||
"refactoringconnectionclient.h",
|
||||
"refactoringengine.cpp",
|
||||
"refactoringengine.h",
|
||||
"refactoringprojectupdater.cpp",
|
||||
"refactoringprojectupdater.h",
|
||||
"searchhandle.cpp",
|
||||
"searchhandle.h",
|
||||
"searchinterface.cpp",
|
||||
"searchinterface.h",
|
||||
"sourcelocations.h",
|
||||
"symbolquery.cpp",
|
||||
"symbolquery.h",
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user