[QBS] Recursively copying direcotyr
Jake Petroules
jake.petroules at petroules.com
Tue Sep 22 08:25:20 CEST 2015
> On Sep 21, 2015, at 11:19 PM, Hristo Hristov <registrirayme at live.com> wrote:
>
> Hello,
>
> If copying of a directory is now deprecated:
>
> WARNING: Recursively copying directory
> This behavior is deprecated and will change in qbs 1.5. Install the individual file artifacts instead.
>
> What would be an easy way to install lost of stuff? Why is this behavior deprecated? It used to be easy: copy everything and live happily ever after? Now I'll need to handle lots and lots of file extensions and sub-directories and make the Qbs project inflate in size just because of these. Or is there a better way?
>
> Than this:
>
> Group {
> // Assets to install
> name: "Assets"
> files: [
> "assets/icons/*.png",
> "assets/icons/*.jpg"
> ]
> qbs.install: true
> qbs.installDir: destinationDirectoryPath + "/assets/icons"
> }
>
> Regards
> _______________________________________________
> QBS mailing list
> QBS at qt-project.org <mailto:QBS at qt-project.org>
> http://lists.qt-project.org/mailman/listinfo/qbs <http://lists.qt-project.org/mailman/listinfo/qbs>
See the qbs.installSourceBase property, documented here: http://doc.qt.io/qbs/qbs-module.html#installsourcebase
I'm guessing you want something like the following:
Group {
name: "Assets"
files: ["assets/**"]
qbs.install: true
qbs.installDir: destinationDirectoryPath + "/assets"
qbs.installSourceBase: "assets"
}
--
Jake Petroules - jake.petroules at petroules.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20150921/c9cd6980/attachment.html>
More information about the Qbs
mailing list