[QBS] BinaryProbe is broken?
Jake Petroules
jake.petroules at petroules.com
Mon Apr 7 17:46:23 CEST 2014
Known issue: https://bugreports.qt-project.org/browse/QBS-246
--
Jake Petroules
Chief Technology Officer
Petroules Corporation ยท www.petroules.com
Email: jake.petroules at petroules.com
On 2014-04-07, at 10:13 AM, Aleksey Sidorov <gorthauer87 at yandex.ru> wrote:
> Following code snippet successfully found bison binary, but path or filePath variable is undefined
>
> import qbs
> import qbs.probes as Probes
>
> Product {
> property string bisonPath: "bison"
>
> Probes.PathProbe {
> id: bisonProbe
> names: ["bison"]
> platformPaths: [ "/usr/local/bin", "/usr/bin" ]
> }
> Properties {
> condition: bisonProbe.found
> bisonPath: {
> print ("Bison found: " + bisonProbe.found + ", path: " + bisonProbe.path);
> return bisonProbe.path;
> }
> }
> Group {
> name: "Bison: " + bisonPath + "(" + bisonProbe.filePath + ")"
> }
> }
>
>
> _______________________________________________
> 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/20140407/b783480e/attachment.html>
More information about the Qbs
mailing list