User forums > Using Code::Blocks

any way for "middle" build step?

(1/1)

nus1998:
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

oBFusCATed:
Have read this: http://wiki.codeblocks.org/index.php?title=Adding_support_for_non_C/C%2B%2B_files_to_the_build_system ?

nus1998:
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.

nus1998:
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

oBFusCATed:
This option is useful only if you have small number of files:)

Navigation

[0] Message Index

Go to full version