[QBS] Project directory variable.

2014-05-15 Thread Tim Hutt
Is there a way to get the directory that the QBS file is in, i.e. like buildDirectory, but for the source? ___ QBS mailing list QBS@qt-project.org http://lists.qt-project.org/mailman/listinfo/qbs

Re: [QBS] Project directory variable.

2014-05-15 Thread Christian Kandeler
On 05/15/2014 10:46 AM, Tim Hutt wrote: > Is there a way to get the directory that the QBS file is in, i.e. like > buildDirectory, but for the source? There is the "path" property that gives you the directory the current file is in. In qbs 1.3, the Project item will also have a "sourceDirectory"

Re: [QBS] Project directory variable.

2014-05-15 Thread Tim Hutt
Great thanks! On 15 May 2014 10:38, Christian Kandeler wrote: > On 05/15/2014 10:46 AM, Tim Hutt wrote: > > Is there a way to get the directory that the QBS file is in, i.e. like > > buildDirectory, but for the source? > > There is the "path" property that gives you the directory the current > f

Re: [QBS] Project directory variable.

2014-05-15 Thread Denis Shienkov
You can try to use: product.sourceDirectory BR, Denis 2014-05-15 13:45 GMT+04:00 Tim Hutt : > Great thanks! > > > On 15 May 2014 10:38, Christian Kandeler wrote: > >> On 05/15/2014 10:46 AM, Tim Hutt wrote: >> > Is there a way to get the directory that the QBS file is in, i.e. like >> > buil