News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Clean Workspace - clean additional files?

Started by Martin K., October 31, 2012, 09:26:48 AM

Previous topic - Next topic

Martin K.

Hi,

I have converted "a few" (70) Visual Studio 6 Projects to Code::Blocks Projects and now i run into the issue that "Clean Workspace" doesn't clean some compiler generated files. Is it possible to add additional files (like precompiled header oder incremental link files) to the cleaning list?

Martin

MortenMacFly

Quote from: Martin K. on October 31, 2012, 09:26:48 AM
Is it possible to add additional files (like precompiled header oder incremental link files) to the cleaning list?
You can do whatever you want in the pre- and/or post build steps. Including removing additional files.

BTW: Maybe you should consult the section about PCH's in the manual/WiKi. Probably there is an even easier way if you just declare your PCH files as... erm... PCH's. See how its done in the C::B project file, for example.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Martin K.

Quote from: MortenMacFly on October 31, 2012, 09:44:00 AM
Quote from: Martin K. on October 31, 2012, 09:26:48 AM
Is it possible to add additional files (like precompiled header oder incremental link files) to the cleaning list?
You can do whatever you want in the pre- and/or post build steps. Including removing additional files.

BTW: Maybe you should consult the section about PCH's in the manual/WiKi. Probably there is an even easier way if you just declare your PCH files as... erm... PCH's. See how its done in the C::B project file, for example.

I whould like to clean the files on user request (clean Workspace/target, rebuild, ...) and not at every build.  :(

Martin

MortenMacFly

Quote from: Martin K. on October 31, 2012, 09:54:18 AM
I whould like to clean the files on user request (clean Workspace/target, rebuild, ...) and not at every build.  :(
Well for such specific tasks: Why don't you make yourself a tool entry? Using macros you can have a generic command that does what you want and when you want (if you click the entry in the "Tools" menu).
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]