Hi,
I created a simple project to copy an executable generated by
CppApplication. However the executable is not copied.
I cannot figure out why? Can anyone tell me why?
Thank you very much.
Regards,
Vincent
my qbs file
"
import qbs.base
import qbs.File
import qbs.FileInfo
CppApplication {
name: "myapp"
consoleApplication: true
files: "main.cpp"
Depends { name: "Qt.core" }
Group { // Properties for the produced executable
fileTagsFilter: "application"
qbs.install: true
qbs.installDir: "bin"
}
Rule {
inputs: ["application"]
Artifact {
filePath: input.fileName + ".out"
}
prepare: {
var cmd = new JavaScriptCommand();
cmd.description = "generating " +
FileInfo.fileName(output.filePath);
cmd.sourceCode = function() {
File.copy(input.filePath, output.filePath);
}
return cmd;
}
}
}
"
_______________________________________________
Qbs mailing list
[email protected]
https://lists.qt-project.org/listinfo/qbs