[QBS] User defined target action
Christian Kandeler
christian.kandeler at theqtcompany.com
Mon Jan 19 18:26:35 CET 2015
On 01/19/2015 11:22 AM, Andrii Anpilogov wrote:
> 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?
Interesting idea. Why don't you just try it?
Christian
>
> Regards
>
> 2015-01-19 17:46 GMT+08:00 Christian Kandeler
> <christian.kandeler at theqtcompany.com
> <mailto: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 <mailto: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 <mailto:anpilog at gmail.com>,
> andrii.anpilogov at mesheven.com <mailto:andrii.anpilogov at mesheven.com>
>
More information about the Qbs
mailing list