Opened 8 years ago

Closed 8 years ago

#13070 closed Patch - Feature (fixed)

Hide generated objects in subdirectories.

Reported by: David Hampton <mythtv@…> Owned by: David Hampton <mythtv@…>
Priority: minor Milestone: 29.0
Component: MythTV - General Version: Master Head
Severity: low Keywords:
Cc: Ticket locked: no

Description

Clean up working directories by stashing all the compiler generated objects in hidden subdirectories. This patch is a combination of a suggestion from the "Design Patterns in C++ with Qt" book and code already in the setting.pro file.

Change History (4)

comment:1 by David Hampton <mythtv@…>, 8 years ago

comment:2 by Peter Bennett, 8 years ago

Does this include the .o files ? The moc_something.cpp files? Executables like mythfrontend?

Will "git clean -xfd" still clean them all? I am not sure if it looks for hidden directories.

Does ccache still work ok with this?

comment:3 by David Hampton <mythtv@…>, 8 years ago

This includes the .o files and all files built by moc, but not the libraries or executables.

At the request of gigem, I updated the patch to use the visible directory names 'obj' and 'moc'. Git clean does remove these directories and their contents.

I run with ccache enabled and haven't noticed any issues.

comment:4 by David Hampton <mythtv@…>, 8 years ago

Owner: set to David Hampton <mythtv@…>
Resolution: fixed
Status: newclosed

In 9536964fd0d414f15c7da8fef9bff7ae563339d7/mythtv:

Error: Processor CommitTicketReference failed
GIT backend not available
Note: See TracTickets for help on using tickets.