> On Sep 21, 2015, at 11:19 PM, Hristo Hristov <[email protected]> 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
> [email protected] <mailto:[email protected]>
> 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

_______________________________________________
QBS mailing list
[email protected]
http://lists.qt-project.org/mailman/listinfo/qbs

Reply via email to