我想使用Qbs编译现有项目。这个项目已经包含了一个代码转换工具(my_tool),该工具在这个项目中被大量使用。Qbs构建规则如何使用产品
到目前为止,我已经(简体):
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命令的参考?
Ther没有标记'qbs'尚未... –