RFC: new way to handle MOC files ?

Michael Schuerig schuerig at acm.org
Fri Feb 21 19:55:00 GMT 2003


On Friday 21 February 2003 18:51, Alexander Neundorf wrote:

> It works the following way: a moc file is required if a source or
> header contains the Q_OBJECT macro. The create_global_moc script
> parses all files given on its command line and searches checks which
> files contain "Q_OBJECT". These files are remembered (e.g. foo.cpp)
> and a new file "mocs.cpp" is created which will include all required
> moc files (e.g. foo.cpp.moc).

This means all moc files have to be recompiled when any header/source 
containing Q_OBJECT changes. Is that a good idea?

Michael

-- 
Michael Schuerig                All good people read good books
mailto:schuerig at acm.org         Now your conscience is clear
http://www.schuerig.de/michael/ --Tanita Tikaram, "Twist In My Sobriety"





More information about the kde-core-devel mailing list