我想使用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'尚未... –