[PATCH] Add optional arguments to QT4_GENERATE_DBUS_INTERFACE

Thomas McGuire thomas.mcguire at gmx.net
Wed Dec 19 20:53:22 CET 2007


Hi,

On Wednesday 19 December 2007, Alexander Neundorf wrote:
> On Wednesday 19 December 2007, Thomas McGuire wrote:
> > Hi,
> >
> > the current QT4_GENERATE_DBUS_INTERFACE does not allow me to only extract
> > methods marked with Q_SCRIPTABLE. I need this for KMail, I don't want to
> > export each public slot.
> >
> > The attached patch simply uses an optional parameter to specify the
> > parameters for qdbuscpp2xml. For example, by passing -psm to the macro,
> > only scriptable methodes are exported.
> >
> > Is the patch OK? Any comments? Can I commit?
>
> It would be ok if there wouldn't be support for additional options since a
> few days ago in the cmake cvs version of FindQt4.cmake, which looks like
> this:
>
> QT4_ADD_RESOURCES(outfiles inputfile ... OPTIONS ...)
>
> So there you can add options as you want for the tool after the OPTIONS
> keyword.
> It seems we want that for our FindQt4.cmake too ?
Oh, I didn't know CVS had it already. In that case, my patch is not needed.
How are these things handled? Can it be backported to the KDE FindQt4.cmake 
until we require a higher version?

Regards,
Thomas


More information about the Kde-buildsystem mailing list