-------- Original-Nachricht --------
> Datum: Sat, 24 Sep 2011 18:05:07 +0200
> Von: Thiago Macieira <[email protected]>
> An: [email protected]
> Betreff: Re: [Qt5-feedback] Generating headers with moc

> On Saturday, 24 de September de 2011 17:58:47 Peter Kuemmel wrote:
> > > make will scream out.
> > 
> > Indeed. Would this work? Content of file 'QObject':
> > 
> > #include ".../qobject.h"
> > #include "qobject_moc.h"
> 
> Yes, that would be better, but it would be another generated header. The 
> QObject forwarding header is just something Qt does to be nice. For other 
> people who don't have syncqt, that's a new file they need to 
> deal with and install.
> 

So sometimes the file 'QObject' is simply a copy of qobject.h?
Then this would not be possible any more.

> What's more, having public generated headers means we need to preprocess
> all headers before we can start compiling.
> 

Yes compilation would slow down.


> I also would like to know how moc deals with its input including headers
> that it generated by itself.
> 

The bootsrap code can't rely on the moc's generated headers. This would
limit the usage of Qt features for the boostrap code, or the boostrap
code must use some pre-generated headers. Isn't it the same problem like
the self-compiling of compilers?

Peter

-- 
Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir
belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de
_______________________________________________
Qt5-feedback mailing list
[email protected]
http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback

Reply via email to