We are calling $QMAKE_MOC unnecessarily when generating various files. The attached patch removes these unneeded arguments.
Created attachment 17779 [details]
Remove unnecessary $QMAKE_MOC usage
Does this affect the Qt build? If Qt needs this, I don't think there's any harm in calling it for GTK+ too. If Qt doesn't need it, let's remove it.
I don't see why the use of $QMAKE_MOC is unnecessary.
The perl scripts in question call gcc -E, which is not available for example when compiling in a Windows environment without cygwin. For the Qt build that is a supported build combination, and that is why we use moc's builtin primitive preprocessor for those build scripts.