Removing non-required moc includes
Stephen Kelly
steveire at gmail.com
Mon Jan 23 21:08:39 UTC 2012
Andras Mantia wrote:
> On Monday, January 23, 2012 09:39:07 Stephen Kelly wrote:
>> Hi,
>>
>> I wrote a script to remove most of the moc includes from kdelibs
>
> I probably missed something, but why remove them? Wouldn't that mean
> slower compilation?
Not really. The moc files are built together (per target), not one at a
time.
>
>> and
>> transform the remaining ones from incorrect to correct form (usually from
>> #include "foo.moc" to #include "moc_foo.cpp").
>
> Does the built-in automoc not support the "foo.moc" includes?
> It'd be a pitty, imo it is much nicer then moc_foo.cpp.
moc_foo.cpp makes more sense anyway, and compares to the way qrc_ and ui_
generated files are named.
Thanks,
Steve.
More information about the Kde-buildsystem
mailing list