【发布时间】:2013-06-18 16:08:54
【问题描述】:
我想使用 Qbs 来编译一个现有的项目。这个项目已经包含了一个在这个项目中大量使用的代码转换工具(my_tool)。
到目前为止,我已经(简化):
import qbs 1.0
Project {
Application {
name: "my_tool"
files: "my_tool/main.cpp"
Depends { name: "cpp" }
}
Application {
name: "my_app"
Group {
files: 'main.cpp.in'
fileTags: ['cpp_in']
}
Depends { name: "cpp" }
Rule {
inputs: ["cpp_in"]
Artifact {
fileName: input.baseName
fileTags: "cpp"
}
prepare: {
var mytool = /* Reference to my_tool */;
var cmd = new Command(mytool, input.fileName, output.fileName);
cmd.description = "Generate\t" + input.baseName;
cmd.highlight = "codegen";
return cmd;
}
}
}
}
如何获取命令的 my_tool 引用?
【问题讨论】:
-
还没有标签'qbs'...
标签: qt build-system qbs