[QBS] Project directory variable.
Denis Shienkov
denis.shienkov at gmail.com
Thu May 15 11:54:38 CEST 2014
You can try to use:
product.sourceDirectory
BR,
Denis
2014-05-15 13:45 GMT+04:00 Tim Hutt <tdhutt at gmail.com>:
> Great thanks!
>
>
> On 15 May 2014 10:38, Christian Kandeler <christian.kandeler at digia.com>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
>> file is in. In qbs 1.3, the Project item will also have a
>> "sourceDirectory" property indicating where the top-level project is
>> located.
>>
>>
>> Christian
>>
>> _______________________________________________
>> QBS mailing list
>> QBS at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/qbs
>>
>
>
> _______________________________________________
> 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/20140515/5032fd34/attachment.html>
More information about the Qbs
mailing list