Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: nus1998 on August 19, 2014, 01:41:13 pm

Title: any way for "middle" build step?
Post by: nus1998 on August 19, 2014, 01:41:13 pm
Hi All,

I use custom command "$compiler $options $includes -E -P $file -o ...."  to pre-compile the file to a temporary file, and then I will use a tool to generate ".c" file from the temporary file, the question is that I can't use the tool in pre-build step neither post-build step, how to implement it as easy as possible?

Thanks in advance
Title: Re: any way for "middle" build step?
Post by: oBFusCATed on August 19, 2014, 08:58:30 pm
Have read this: http://wiki.codeblocks.org/index.php?title=Adding_support_for_non_C/C%2B%2B_files_to_the_build_system ?
Title: Re: any way for "middle" build step?
Post by: nus1998 on August 20, 2014, 03:03:23 am
Thanks a lot.

It seems that I need config the compiler in a global setting to specific file extension? I just think it's not perfect as I can't specify the compiling on dedicated file but not dedicated file type.
Title: Re: any way for "middle" build step?
Post by: nus1998 on August 20, 2014, 03:24:28 am
I found that not only compiling command but other executable command can be executed on dedicated file properties->advanced, so the issue is solved. thanks
Title: Re: any way for "middle" build step?
Post by: oBFusCATed on August 20, 2014, 10:23:02 am
This option is useful only if you have small number of files:)