Author Topic: Clean Workspace - clean additional files?  (Read 2745 times)

Offline Martin K.

  • Multiple posting newcomer
  • *
  • Posts: 86
Clean Workspace - clean additional files?
« on: October 31, 2012, 09:26:48 am »
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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Clean Workspace - clean additional files?
« Reply #1 on: October 31, 2012, 09:44:00 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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline Martin K.

  • Multiple posting newcomer
  • *
  • Posts: 86
Re: Clean Workspace - clean additional files?
« Reply #2 on: October 31, 2012, 09:54:18 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

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Clean Workspace - clean additional files?
« Reply #3 on: October 31, 2012, 11:38:48 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: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ