Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, January 2008
Generated files and source control


Message 1 in thread

Should moc files and their associated headers be kept in source control or
regenerated each build? What's the correct practice here?

Thanks
-- 
 [ signature omitted ] 

Message 2 in thread

On January 14, 2008 08:04:33 am Robin Charlton wrote:
> Should moc files and their associated headers be kept in source control or
> regenerated each build? What's the correct practice here?

Regenerate with each build.  No need to keep them in source control as they 
are designed to be created from your source files.

--
 [ signature omitted ] 

Message 3 in thread

Robin Charlton wrote:
>Should moc files and their associated headers be kept in source control
> or regenerated each build? What's the correct practice here?

I'd say it depends on whether your developers have the tools required to 
build those files in all cases.

In the case of moc and uic, they definitely do. So you should not put the 
generated files in version control.

But in the case of parsers, lexers, etc., the tools are not necessarily 
available to everyone. I've also seen many parsers that are hand-edited 
after being generated.

Your choice, really.

-- 
 [ signature omitted ] 

Attachment: signature.asc
Description: This is a digitally signed message part.