Commit ba20d638 authored by Nikolai Kosjar's avatar Nikolai Kosjar
Browse files

C++: Add cplusplus tools to qtcreator.qbs



Change-Id: I19e31ec13a6f726eff5938bca191c251abb50b4d
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@theqtcompany.com>
parent 0df67801
import "../cplusplus-shared/CPlusPlusToolUsingCustomUtils.qbs" as CPlusPlusToolUsingCustomUtils
CPlusPlusToolUsingCustomUtils {
name: "cplusplus-ast2png"
files: base.concat(["cplusplus-ast2png.cpp"])
}
import "../cplusplus-shared/CPlusPlusToolUsingCustomUtils.qbs" as CPlusPlusToolUsingCustomUtils
CPlusPlusToolUsingCustomUtils {
name: "cplusplus-frontend"
files: base.concat("cplusplus-frontend.cpp")
}
import "../cplusplus-shared/CPlusPlusToolUsingCustomUtils.qbs" as CPlusPlusToolUsingCustomUtils
CPlusPlusToolUsingCustomUtils {
name: "cplusplus-mkvisitor"
cpp.defines: base.concat('PATH_AST_H="' + path + '/../../libs/3rdparty/cplusplus/AST.h"')
files: base.concat("cplusplus-mkvisitor.cpp")
}
import qbs 1.0
QtcTool {
Depends { name: "Qt"; submodules: ["core", "widgets"]; }
Depends { name: "CPlusPlus" }
Depends { name: "Utils" }
}
import "../cplusplus-shared/CPlusPlusTool.qbs" as CPlusPlusTool
CPlusPlusTool {
Depends { name: "Qt"; submodules: ["core", "widgets"]; }
Depends { name: "CPlusPlus" }
Depends { name: "Utils" }
cpp.includePaths: base.concat(path)
cpp.defines: base.concat('PATH_PREPROCESSOR_CONFIG="' + path + '/pp-configuration.inc"')
files: [
path + '/utils.h',
path + '/utils.cpp',
]
}
import "../cplusplus-shared/CPlusPlusTool.qbs" as CPlusPlusTool
CPlusPlusTool {
name: "cplusplus-update-frontend"
cpp.defines: base.concat([
'PATH_CPP_FRONTEND="' + path + '/../../libs/3rdparty/cplusplus"',
'PATH_DUMPERS_FILE="' + path + '/../cplusplus-ast2png/dumpers.inc"',
])
files: "cplusplus-update-frontend.cpp"
}
Project {
name: "CPlusPlus Tools"
condition: qbs.getEnv("BUILD_CPLUSPLUS_TOOLS")
references: [
"cplusplus-ast2png/cplusplus-ast2png.qbs",
"cplusplus-frontend/cplusplus-frontend.qbs",
"cplusplus-mkvisitor/cplusplus-mkvisitor.qbs",
"cplusplus-update-frontend/cplusplus-update-frontend.qbs",
]
}
......@@ -4,6 +4,7 @@ Project {
name: "Tools"
references: [
"buildoutputparser/buildoutputparser.qbs",
"cplusplustools.qbs",
"qtcdebugger/qtcdebugger.qbs",
"qtcreatorcrashhandler/qtcreatorcrashhandler.qbs",
"qtpromaker/qtpromaker.qbs",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment