<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Great, <br>
    <br>
    Thanks.<br>
    <br>
    <div class="moz-cite-prefix">Le 07-01-15 11:24, Christian Kandeler a
      écrit :<br>
    </div>
    <blockquote cite="mid:54AD0960.7070109@theqtcompany.com" type="cite">
      <pre wrap="">On 01/07/2015 11:04 AM, Stéphane Fabry wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">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.
</pre>
      </blockquote>
      <pre wrap="">
Yes, this is a known problem that comes up regularly.

</pre>
      <blockquote type="cite">
        <pre wrap="">The only solution I have now is to make a group for each leaf subdirectory.
</pre>
      </blockquote>
      <pre wrap="">
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.

</pre>
      <blockquote type="cite">
        <pre wrap="">Do you have a solution ?
</pre>
      </blockquote>
      <pre wrap="">
We have discussed some promising ideas and I'm confident we will have 
something ready for 1.4.


Christian
_______________________________________________
QBS mailing list
<a class="moz-txt-link-abbreviated" href="mailto:QBS@qt-project.org">QBS@qt-project.org</a>
<a class="moz-txt-link-freetext" href="http://lists.qt-project.org/mailman/listinfo/qbs">http://lists.qt-project.org/mailman/listinfo/qbs</a>

</pre>
    </blockquote>
    <br>
    <div class="moz-signature">-- <br>
      <strong>Stéphane Fabry</strong>, Project & IT Manager<br>
      +32 (0)4 367 07 92<br>
      <strong><font color="#FF3300"><font size="4">X</font></font>-RIS</strong>
      | <i>X-Ray Imaging Solutions</i><br>
      <a class="moz-txt-link-freetext" href="www.xris.eu/contact">www.xris.eu/contact.html</a><br>
    </div>
  </body>
</html>