[Qbs] Use DBus module with xml2CppHeaderFlags property

Denis Shienkov denis.shienkov at gmail.com
Mon Nov 20 13:29:23 CET 2017


Ahh, sorry, it works as:

Qt.dbus.xml2CppHeaderFlags: [ "-i", product.sourceDirectory +
"/dbusphonebooktypes_p.h" ]

BR,
Denis

2017-11-20 15:13 GMT+03:00 Denis Shienkov <denis.shienkov at gmail.com>:

> Hi all,
>
> I need to port the following qmake's features to qbs:
>
>     phonebook_access_iface.files = $$PWD/org.bluez.obex.
> PhonebookAccess1.xml
>     phonebook_access_iface.header_flags = -i dbusphonebooktypes_p.h
>
>     DBUS_INTERFACES += phonebook_access_iface
>
> for this purpose, seems, I need to use the xml2CppHeaderFlags property:
> https://github.com/qbs/qbs/blob/master/src/lib/
> qtprofilesetup/templates/dbus.qbs
>
> I don't know, where I need to declare this property:
>
> Product {
>     ...
>     Depends { name: "Qt"; submodules: [ "dbus" ] }
>     ...
>     Group {
>         name: "My DBus data types"
>         files: [
>             "dbusphonebooktypes_p.h",
>         ]
>     }
>     ...
>     Group {
>         name: "Dbus interfaces"
>         files: [
>             "...",
>             "org.bluez.obex.PhonebookAccess1.xml",
>             "..."
>         ]
>
>         fileTags: ["qt.dbus.interface"]
>     }
>
>     // THIS DOESN'T WORK. HOW TO USE IT?
>     dbus.xml2CppHeaderFlags: [ "-i", "dbusphonebooktypes_p.h" ]
> }
>
> BR,
> Denis
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qbs/attachments/20171120/733a0302/attachment.html>


More information about the Qbs mailing list