[Qbs] Qbs: how to use a pre-build script

Christian Kandeler christian.kandeler at qt.io
Mon May 29 08:57:07 CEST 2017


On Sat, 27 May 2017 08:21:52 +0200
Timur Kristóf <timur.kristof at gmail.com> wrote:

> But how can I do other pre-build stuff, like running a code generator
> (flex, bison, etc. come to mind)?

As always, you use a Rule. If the output artifacts have proper file tags, they will integrate into the build as needed. E.g. if you create a header file (tagged "hpp") and it is included in some source, then the object file will get a dependency on that header. If you create a C++ source file, it will simply get built.


Christian



More information about the Qbs mailing list