[ANNOUNCE] automoc4 from kdesupport now supported for building KDE

Matthias Kretz kretz at kde.org
Thu May 29 09:18:29 CEST 2008


On Thursday 29 May 2008, Alexander Neundorf wrote:
> On Wednesday 28 May 2008, Matthias Kretz wrote:
> > On Tuesday 27 May 2008, Christian Ehrlicher wrote:
> > > Alexander Neundorf schrieb:
> > > > On Saturday 10 May 2008, Alexander Neundorf wrote:
> > > >> Hi,
> > > >>
> > > >> we moved automoc (the tool which does the automoc'ing) to
> > > >> kdesupport, so it can be used also by non-KDE apps (and maybe be
> > > >> integrated into cmake).
> > > >
> > > > I think we can make automoc from kdesupport required next week, and
> > > > delete the one from kdelibs.
> > > > Or is there anything speaking against this ?
> > >
> > > Yes, my problem with nmake :)
> > >
> > > Any news on this?
> >
> > I tried add_custom_target and it won't work in the automoc macros because
> > there needs to be a dependency from the main target to the automoc
> > target. And that cannot be added from the automoc macro because the main
> > target is not defined at this point.
> >
> > add_custom_command(TARGET has the same problem.
> >
> > It would be possible to use add_custom_target and require the user to add
> > the dependency between the two targets himself. In the KDE4_ macros we
> > could do that...
>
> Hmmm... then the target will just depend on this target, right ?
> So if we had a macro which would be called after the actual target has been
> created, like
>
> add_executable(foo ${fooSrcs})
> automoc4_target(foo ${fooSrcs})
>
> would that work ?

It wouldn't work unless you can add source files to a target after 
add_executable was already called (the automoc macro needs to add its 
<target>_automoc.cpp file to the sources list).

> Will you be at LinuxTag ?

No. Berlin is a bit too far away for my taste.

-- 
________________________________________________________
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: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20080529/847c4893/attachment.pgp 


More information about the Kde-buildsystem mailing list