[QBS] Install subdirectory tree

Dmitry Volosnykh dmitry.volosnykh at gmail.com
Wed Jan 7 12:10:03 CET 2015


Christian,

were could we read the details of the discussion?

On Wed, Jan 7, 2015 at 1:24 PM, Christian Kandeler <
christian.kandeler at theqtcompany.com> wrote:

> On 01/07/2015 11:04 AM, St├ęphane Fabry wrote:
> > I'd like to install some files and directories that form a directory
> tree.
> >
> > Example:
> >
> > Group {
> >
> >          name:  "IMAGERs"
> >          prefix:  "IMAGERs/**/"
> >          files:  "*"
> >          qbs.install:  true
> >          qbs.installDir:  project.calibInstall  +  "/IMAGERs"
> > }
> > The imager directory has two subdirectories that contains files, after
> > the install all files are mixed in IMAGER's and subdirectories are not
> > created.
>
> Yes, this is a known problem that comes up regularly.
>
> > The only solution I have now is to make a group for each leaf
> subdirectory.
>
> That is one possible workaround. The other one is to simply set the
> "files" property to the root of the directory tree you want to install.
> In your case:
>
> Group {
>      name:  "IMAGERs"
>      files:  "IMAGERs"
>      qbs.install:  true
>      qbs.installDir:  project.calibInstall
> }
>
> This has the drawback that now qbs does not know the files in this
> directory, so they won't show up in your project tree in Qt Creator. And
> of course, if they are not purely run-time resources, but actual
> sources, this approach won't work.
>
> > Do you have a solution ?
>
> We have discussed some promising ideas and I'm confident we will have
> something ready for 1.4.
>
>
> Christian
> _______________________________________________
> QBS mailing list
> QBS at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qbs
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20150107/39ad3f8a/attachment.html>


More information about the Qbs mailing list