[QBS] When are rules built?

Johannes.Matokic at microchip.com Johannes.Matokic at microchip.com
Mon Jul 1 16:28:34 CEST 2013


It is quite common that I write rules that are completely ignored during building. 
After doing random changes they sometimes are built, but not always.

So I started wondering what is required that a rule is considered part of the build-process?

So far I know:
- Artifacts need to have a tag that is identical to the product type or are required by a different rule as input
- Changes to JavaScript-code are only respected after deletion of the *.bg file
  -> Maybe Javascript Fragments should be seen as input and hashed between calls to QBS
- Properties have to be written correctly. As in the nature of Javascript a missing property is no error but just the special value undefined which might stay unnoticed
  -> I don't think there is something that QBS could do against this, however once https://bugreports.qt-project.org/browse/QBS-339 is solved this should be easier to detect

However this doesn't seem to be enough that a rules commands get executed.
E.g. I have a rule that has only usings and no input that is ignored whatever I do.
I haven't tried yet whether fake-input could solves this but I will do if I don't find another reason.

So are there any other requirements?



Johannes Matokic

Microchip Technology Germany II GmbH & Co. KG
Friedrichshafener Straße 3 | 82205 Gilching | Germany
Tel: +49 (0) 8153 88 969-73 | Fax: +49 (0) 8153 88 969-9
johannes.matokic at microchip.com 
Haftender Gesellschafter: Microchip Technology Germany GmbH, Gilching
Geschäftsführer: Mohammed Nawaz Sharif, J. Eric Bjornholt, Ulrich Hallerberg
Sitz: 85737 Ismaning | HRA 98692

More information about the Qbs mailing list