[QBS] User defined target action

Andrii Anpilogov anpilog at gmail.com
Mon Jan 19 11:22:41 CET 2015


Thanks Christian,

Is there any way to do it with current release?
For example add Transformer item into Product and control it's execution
somehow?
For example add condition by environment variable?

Regards

2015-01-19 17:46 GMT+08:00 Christian Kandeler <
christian.kandeler at theqtcompany.com>:

> On 01/19/2015 08:28 AM, Andrii Anpilogov wrote:
>
> > Is there any way to redefine "run" target or define custom one?
> > For example I would like to flash project into device by "qbs run":
> > openocd -f board/mydevkit.cfg -c "flash write_image erase
> > ./build/armgcc/project/prpject.elf" -c shutdown
> >
> > I haven't find anything like that in documentation...
>
> qbs 1.4 will introduce a new Product property "builtByDefault", which
> you can set to false for products you don't want to build generally (see
> http://doc-snapshot.qt-project.org/qbs/product-item.html). This is
> useful for stuff like packaging and also your use case. Just put a
> Transformer item into such a product that runs your command, and then
> "building" the product will execute that command.
>
>
> Christian
>
> _______________________________________________
> QBS mailing list
> QBS at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qbs
>



-- 
-- 
WBR,
  Andrii Anpilogov
  Phone: +86 186-1660-3720
  Skype: anpilogov.andrey
  mailto:anpilog at gmail.com, andrii.anpilogov at mesheven.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20150119/4972c8d7/attachment.html>


More information about the Qbs mailing list