Known issue: https://bugreports.qt-project.org/browse/QBS-246
-- 
Jake Petroules
Chief Technology Officer
Petroules Corporation ยท www.petroules.com
Email: jake.petrou...@petroules.com

On 2014-04-07, at 10:13 AM, Aleksey Sidorov <gorthaue...@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@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qbs

_______________________________________________
QBS mailing list
QBS@qt-project.org
http://lists.qt-project.org/mailman/listinfo/qbs

Reply via email to