automoc support for private headers

Matthias Kretz kretz at kde.org
Mon Sep 24 14:32:05 CEST 2007


On Monday 24 September 2007, Thiago Macieira wrote:
> Em Monday 24 September 2007 13:19:50 Matthias Kretz escreveu:
> > I'd like to make kde4automoc look for Q_OBJECT macros in private headers
> > automatically. This is very convenient as it just makes everything work
> > automatically (I was putting Q_OBJECT macros in _p.h files in
> > playground/multimedia/phonon/mixer and expected the automoc to work, but
> > it didn't).
> >
> > I have been using this patch for a week or so now and seen no
> > regressions. Ok to commit?
>
> Does this still allow us to
>
> #include "basename_p.moc"
> ?

Yes, because kde4automoc keeps a list of all #included mocs and all mocs it is 
going to compile on its own. If a file appears in both lists it gets removed 
from the latter.

-- 
________________________________________________________
Matthias Kretz (Germany)                            <><
http://Vir.homelinux.org/
MatthiasKretz at gmx.net, kretz at kde.org,
Matthias.Kretz at urz.uni-heidelberg.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20070924/4f738998/attachment.pgp 


More information about the Kde-buildsystem mailing list