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 > <[email protected] > <mailto:[email protected]>>: > > 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 > [email protected] <mailto:[email protected]> > http://lists.qt-project.org/mailman/listinfo/qbs > > > > > -- > -- > WBR, > Andrii Anpilogov > Phone: +86 186-1660-3720 > Skype: anpilogov.andrey > mailto:[email protected] <mailto:[email protected]>, > [email protected] <mailto:[email protected]> > _______________________________________________ QBS mailing list [email protected] http://lists.qt-project.org/mailman/listinfo/qbs
