<p dir="ltr">Hi Joerg and Jake,</p>
<p dir="ltr">Thanks for your time to explain me in such a detail all my queries. Also I am sorry for my late reply.</p>
<p dir="ltr">I am using qbs from command line for building the project. Qtcreator is just my editor to rapidly write the code. So how it can be that if I change the build setting in qtcreator for the build directory it would be reflected in qbs?</p>

<p dir="ltr">" What's your use case?"<br>
If I want to support multiple build systems for my project so that the user who is pulling my source may use the one already installed in their system. In that case I would like to have absolute control over the directory structure and the naming convention of the generated artifacts so that its uniform for all theĀ  supported build systems.</p>

<p dir="ltr">Thanks again for all these help.</p>
<p dir="ltr">Regards<br>
Santanu</p>
<div class="gmail_quote">On May 5, 2014 2:56 PM, "Joerg Bornemann" <<a href="mailto:joerg.bornemann@digia.com">joerg.bornemann@digia.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 03-May-14 22:40, Jake Petroules wrote:<br>
<br>
>> 2. I have found that the object file that is getting created if I<br>
>> build the QBS project has the name "XXXXX.c.o" if the file name is<br>
>> "XXXXX.c". How can I configure QBS to name the object file as "XXXXX.o"?<br>
>><br>
> We did this so that having multiple files with the same base name but<br>
> different extensions will not cause an error. For example, if you have<br>
> both file.c and file.cpp, both cannot be built into file.o as this<br>
> causes a conflict. Currently you cannot change the naming scheme of<br>
> object files but given a good reason we may add a way for users to<br>
> configure it. Is there a specific reason you need your object files<br>
> named XXXXX.o?<br>
<br>
Also, we're considering the build directory to be opaque for the user.<br>
The directory layout and naming conventions of files should not matter.<br>
<br>
I have the same question like Jake. What's your use case?<br>
<br>
>> 3. Moreover the object files are getting generated in a folder ".obj"<br>
>> in the default build directory. How to configure this also?<br>
>><br>
> This is currently not user-configurable but probably should be.<br>
<br>
Probably. But here as well: what's the use case?<br>
<br>
>> I am new to QBS as well as writing applications in C so any help<br>
>> regarding my above queries would be much appreciated. I shall also<br>
>> like to make some observations on QBS build system and its documentation.<br>
>> 1. I believe QBS is a very flexible build system, at least it appears<br>
>> so to me. But the documentation is very poor for a newcomer.<br>
>> Specifically, elaborate documentation is needed in the areas like<br>
>> Transformer, Rule (both multiplex and non-multiplex), Module, etc.<br>
>><br>
> Qbs is a very new product so we still have a lot of work to do in this<br>
> area but it's definitely on the roadmap.<br>
<br>
That's unfortunately true. Please ask on this mailing list, if<br>
something's unclear. We'll try to extend the docs in those areas.<br>
<br>
>> 4. It is not obvious from documentation how to create custom build<br>
>> jobs in QBS. For example lets say in my project I have flex/bison<br>
>> files along with other C files and I want to build those flex/bison<br>
>> files first with respective tools before compiling all the C files.<br>
>> How to specify this custom step?<br>
>><br>
> You'd do this using custom Rules, Transformers, and Modules. I remember<br>
> another user had written some Qbs scripts to handle flex/bison files;<br>
> perhaps we can add built-in support at some point. Again, this is<br>
> something that more extensive documentation could help with as you noted<br>
> in (1).<br>
<br>
There's an example in tests/auto/blackbox/testdata/codegen and another<br>
in tests/auto/blackbox/testdata/dynamicRuleOutputs.<br>
We should move them over to the examples directory.<br>
<br>
<br>
BR,<br>
<br>
Joerg<br>
_______________________________________________<br>
QBS mailing list<br>
<a href="mailto:QBS@qt-project.org">QBS@qt-project.org</a><br>
<a href="http://lists.qt-project.org/mailman/listinfo/qbs" target="_blank">http://lists.qt-project.org/mailman/listinfo/qbs</a><br>
</blockquote></div>