Feature #5546 2012-07-22 16:18

stahta01

project clean step like pre/post build

I would like a clean step like the pre/post build steps that is executed when the project is cleaned.

It would be useful to delete PCH files.

Tim S.

Category
Build System
Status
Open
Close date
 
Assigned to
 
ollydbg 2012-07-24 14:41

Why? I just test a very simple cbp, when I click the "clean" menu item, the pch file (gch) file was deleted correctly.

kortmann 2012-12-10 12:55

No, not if you are using Visual C++ and/or redirect the pch file to a non standard location (for example to the objectfile directory). And other files (incremental link files, program databases, ...) can be cleaned also this way.

mortenmacfly 2012-12-10 13:29

This is already possible: Create yourself a target that is of type "commands only" and setup pre-build steps as desired. Then move that target before the one that requires the clean step. Connect these target to a virtual one (and others, if needed) and compile the virtual target instead.

kortmann 2012-12-10 16:24

I have a workspace with nearly 90 projects. Every project with three targets. Release, Debug and a virtual All. And now i should create a new target with the clean commands and a virtual (or two) target to connect clean with debug/release on every project? To do a clean rebuild or a clean only i have to switch to this target, issue a build and switch back later to do my coding work? Sorry, i like a simple rebuild/clean workspace much more.

Martin