Re: [QBS] How to setup an custom profile without Qt?

2014-05-16 Thread Jake Petroules
On 2014-05-16, at 02:36 PM, Denis Shienkov wrote: > Hi all. > > I have an two questions: > > > 1) I want to setup manually an custom profile with the custom qbs and > cpp options, without Qt (using the "qbs-config" utility). > > E.g. here http://qt-project.org/doc/qbs-1.2/qt-versions.html I

[QBS] How to setup an custom profile without Qt?

2014-05-16 Thread Denis Shienkov
Hi all. I have an two questions: 1) I want to setup manually an custom profile with the custom qbs and cpp options, without Qt (using the "qbs-config" utility). E.g. here http://qt-project.org/doc/qbs-1.2/qt-versions.html I see that is used a path to the qmake: {quote} qbs setup-qt /usr/bin/

Re: [QBS] Generating rc file

2014-05-16 Thread olivier musse
Hi Joerg, Amazing, nice many thanks, it works perfectly and I think the module concept is what I need for many things I have to do. Just one last question if I can : Does the folder hierarchy modules/generateRC/generateRC.qbs can be change. I have found 2 projects properties which are QbsSe

Re: [QBS] Generating rc file

2014-05-16 Thread Joerg Bornemann
On 16-May-14 12:59, olivier musse wrote: > 2) What is the best solution (Module, Product...) to put this > transformer and group in a separate file I can use from any project with > a simple Depends{ name : "generated.qbs"} call or something equivalent. > I have tried using another product, but

Re: [QBS] Generating rc file

2014-05-16 Thread olivier musse
Hi Joerg, Thanks a lot, it works now. What about my second question ? Can you also help on that ? Regards Le 16/05/2014 13:52, Joerg Bornemann a écrit : > On 16-May-14 12:59, olivier musse wrote: > >> Artifact { >> fileName: "generated.rc" >> fi

Re: [QBS] Error at using multiple artifacts for module's rule

2014-05-16 Thread Denis Shienkov
Joerg, many thanks, it works. Sorry for my stupid questions.. :) BR, Denis 2014-05-16 15:57 GMT+04:00 Joerg Bornemann : > On 16-May-14 13:44, Denis Shienkov wrote: > > Artifact { >> condition: product.moduleProperty("qbs", "generateListing") >> fileTags:

Re: [QBS] Error at using multiple artifacts for module's rule

2014-05-16 Thread Joerg Bornemann
On 16-May-14 13:44, Denis Shienkov wrote: > Artifact { > condition: product.moduleProperty("qbs", "generateListing") > fileTags: [ "keil_lst" ] > fileName: ".lst/" + product.name + > "/" + FileInfo.baseName(input.

Re: [QBS] Generating rc file

2014-05-16 Thread Joerg Bornemann
On 16-May-14 12:59, olivier musse wrote: > Artifact { > fileName: "generated.rc" > fileTags: "generatedRC" > } Qbs doesn't know what "generatedRC" is. To be picked up by the resource compiler rule, you must specify the "rc" file tag.

[QBS] Error at using multiple artifacts for module's rule

2014-05-16 Thread Denis Shienkov
Hi all.. My new question is continuation of previous issue: http://lists.qt-project.org/pipermail/qbs/2014-May/000703.html Where I trying to adapt an Keil (C51) compiler to Qbs. Now I want to create multiple artifacts: - one to generate the object file (*.obj) - one to genetate the listings fil

[QBS] Generating rc file

2014-05-16 Thread olivier musse
Hi everybody, Since QBS is not yet managing automatic generation of rc file from properties (version, name...) of a CppApplication, I would like to create a generic qbs file so that I can call it from any project and do the job. This should : - generating a rc file from an input rc file (pro

Re: [QBS] Again is not started an Rule from the Module

2014-05-16 Thread Denis Shienkov
Ahh.. Christian, many thanks. Adding of FileTagger into my module: FileTagger { patterns: "*.c" fileTags: ["kc"] } Rule { id: compiler inputs: [ "kc" ] and changing of all "obj" tags, e.g. to "kobj" is helped. BR, Denis 2014-05-1

Re: [QBS] Again is not started an Rule from the Module

2014-05-16 Thread Christian Kandeler
On 05/16/2014 10:35 AM, Denis Shienkov wrote: > So, what I should to change to solve my problem? I do not understand.. The file in your project does not have any tags, so the rule will not run. You can either give the file a tag in the product via a group, or you can add a FileTagger to your mod

[QBS] Again is not started an Rule from the Module

2014-05-16 Thread Denis Shienkov
Hi guys.. I want to create the separate module for support of Keil compiler to assembly of my Embedded project. I inherit the module from the Module, but not from the CppModule because my module has to be in directory "/qbs/modules" of my project (besides, I can not able to inherit from the CppMod