[QBS] module for KDSoap

Карелин Павел hkarel at yandex.ru
Tue Sep 20 12:25:04 CEST 2016


Hello, Ioan.


20.09.2016 12:35, Ioan Calin Borcoman пишет:
> Adding to both the module and the project using it:
>
>    Depends { name: "Qt"; submodules: ["core", "network"]}
>
> didn't solve the problem, unfortunately.
>
> I have reported this as https://bugreports.qt.io/browse/QBS-1021.
>
> Regarding your suggestion b), how can I do it? I haven't seen any qbs
> examples returning multiple executables for the same rule. Also, from
> what I understand, the "wsdl_foo.h" should be tagged as "hpp", while
> the "wsdl_foo.cpp" as "cpp". Is my understanding correct? Can I do
> this using a single rule? How?
I also had a similar problem on generation the soap- cpp/h files. I 
managed to solve this problem.
I have attached an example of his QBS-module. Perhaps he will prompt you 
how to solve the problem.
>
> Thank you,
>
> Ioan
>
> On Tue, Sep 20, 2016 at 3:51 AM, Christian Kandeler
> <Christian.Kandeler at qt.io> wrote:
>> 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
>> _______________________________________________
>> QBS mailing list
>> QBS at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/qbs
> _______________________________________________
> QBS mailing list
> QBS at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/qbs

--
Best regards,
Pavel Karelin.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20160920/1e94eeb2/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gsoap-example.qbs
Type: text/x-qml
Size: 7965 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20160920/1e94eeb2/attachment.bin>


More information about the Qbs mailing list