Code::Blocks Forums
User forums => Using Code::Blocks => Topic started 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
-
Have read this: http://wiki.codeblocks.org/index.php?title=Adding_support_for_non_C/C%2B%2B_files_to_the_build_system ?
-
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.
-
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
-
This option is useful only if you have small number of files:)