[QBS] Functions in QBS scripts and accessing properties from them.

2014-05-15 Thread Tim Hutt
Hi, I have a QBS script that depends on using the GNU Arm toolchain, and I want it to automatically find them (on Windows for now). In my QBS I have this line: property string gnuToolsDir: C:/Program Files/GNU Tools ARM Embedded/4.8 2014q1 And then I use that elsewhere. I want to set

Re: [QBS] Functions in QBS scripts and accessing properties from them.

2014-05-15 Thread Christian Kandeler
On 05/15/2014 10:30 AM, Tim Hutt wrote: I have a QBS script that depends on using the GNU Arm toolchain, and I want it to automatically find them (on Windows for now). Are you sure that's really what you want? Toolchain information typically comes from the outside via a profile, and then it

Re: [QBS] Functions in QBS scripts and accessing properties from them.

2014-05-15 Thread Tim Hutt
Well I guess it is fairly special - I'm compiling stuff for a microcontroller using gcc for arm embedded. It needs specific flags and linker scripts and so on. Is there any documentation on profiles? The only thing I could find was on listing them with the qbs binary which I don't have (since I'm

Re: [QBS] Functions in QBS scripts and accessing properties from them.

2014-05-15 Thread Denis Shienkov
Well I guess it is fairly special - I'm compiling stuff for a microcontroller using gcc for arm embedded. As I know, you can create a custom *.config file in which to specify paths to your toolchain, and then pass to qbs this your config file. Then qbs will take your profile as default profile..

Re: [QBS] Functions in QBS scripts and accessing properties from them.

2014-05-15 Thread Tim Hutt
Is there no way to do this in two files instead of three? It doesn't seem like I can put the `import YourFunctions` before the `Project`, so I need a separate file for the Project and Product, and then a third for the javascript. Is that right? Cheers, Tim On 15 May 2014 10:37, Denis Shienkov