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
History
Why? I just test a very simple cbp, when I click the "clean" menu item, the pch file (gch) file was deleted correctly.
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.
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.
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