[QBS] Using --start-group and --end-group

2015-10-29 Thread Tim Hutt
Hi, Currently in my QBS file for an mBed compile I have this: cpp.staticLibraries: [ "stdc++", "supc++", "m", "gcc", "c", // libc really must be included twice, and before nosys. "c",

Re: [QBS] run script after building products

2015-03-03 Thread Tim Hutt
Here's my solution, for converting elf to bin. NOTE THAT YOU MUST LEAVE application IN THE TYPE LIST. Otherwise the run configuration of the Bare Metal projects won't work. CppApplication { type: [application, bin] // ... property string objCopyPath:

Re: [QBS] Get property from parent project

2014-05-23 Thread Tim Hutt
the timestamps (or whatever it does). Cheers, Tim On 23 May 2014 08:28, Christian Kandeler christian.kande...@digia.comwrote: On 05/22/2014 06:07 PM, Tim Hutt wrote: Product { property string foo: baz Rule { prepare: { var a = product.foo; Sure it does. We use

Re: [QBS] Get property from parent project

2014-05-22 Thread Tim Hutt
Relatedly, how can I access properties from a Rule's prepare script? E.g. this does not work - it thinks foo is not defined. Rule { property string foo: baz prepare: { var *a = foo;* On 22

[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

[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

[QBS] asmFlags

2014-05-15 Thread Tim Hutt
How can I specify assembler flags? cpp.asmFlags does not work. ___ QBS mailing list QBS@qt-project.org http://lists.qt-project.org/mailman/listinfo/qbs

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

2014-05-15 Thread Tim Hutt
using Qt Creator). If I made a profile would I be able to make it automatically find the arm gcc, and could I distribute it with my code easily? Thanks for the info Denis! On 15 May 2014 10:33, Christian Kandeler christian.kande...@digia.comwrote: On 05/15/2014 10:30 AM, Tim Hutt wrote: I

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

2014-05-15 Thread Tim Hutt
: ... import YourFunctions ... ... property string gnuToolsDir: YourFunctions.findGnuToolsDir(); ... I would make it so. Also you can look how this done by analogy, e.g. in QtCreator's sources. BR, Denis 2014-05-15 12:30 GMT+04:00 Tim Hutt tdh...@gmail.com: Hi, I have a QBS script