[QBS] module for KDSoap

Christian Kandeler Christian.Kandeler at qt.io
Tue Sep 20 02:51:36 CEST 2016


Ioan Calin Borcoman <iborco at gmail.com> wrote:

> I'm trying to write a module that generates wsdl_foo.h and
> wsdl_foo.cpp from foo.wsdl, using KDSoap's kdwsdl2cpp
> (https://github.com/KDAB/KDSoap).
>
> After it is generated, the wsdl_foo.h should be parsed by moc, as it
> contains an QObject based class.
> The problem is that moc is sometimes called and sometimes isn't. If I
> delete the build tree and try to run qbs from scratch, the moc is not
> run and the build fails.
> 
> But if I touch my kdsoap.qbs module, even if I don't change anything
> in it, and then run again qbs, the moc is run and my project builds.

Two observations:
a) Your module does not have a Qt dependency. Does your product have one? 
b) (Probably unrelated to your problem) It is confusing (though not technically wrong) that you declare two rules. You should have only one rule that creates two commands.

If your answer to a) is "yes", then please file a bug at bugreports.qt.io and attach a complete (i.e. including source files), but minimal project.


Christian


More information about the Qbs mailing list