I have directory with files in subdirectories to be deployed with my application (qml plugins). The trouble is: if I try to install dirs:
Group {
name: "somegroup"
files: ["mysrc/dir"]
qbs.install: true
qbs.installDir: "mybuild"
}
I get a "Not recursively copying directory 'mysrc/dir' into target directory 'mybuild'. Install the individual file artifacts instead." error.
If I try to install files:
Group {
name: "somegroup"
files: ["mysrc/dir/**/*"]
qbs.install: true
qbs.installDir: "mybuild"
}
Then all of those files go into same directory ignoring hierarchy (and cannot be installed, because some of them share name).
Solution with multiple groups is too verbose either.
Is there a way to install directory with files, recursively, preserving hierarchy?
See the qbs.installSourceBase property; that's exactly what it is for.