Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: hanshuckebein on January 09, 2017, 11:47:58 PM

Title: How to tell the build system to run a pre-compile step?
Post by: hanshuckebein on January 09, 2017, 11:47:58 PM
A file test.crb should be processed by a ruby script to generate test.c. After this step, test.c should be compiled.

How to tell the build system to use the ruby script to process a *.crb file?
Title: Re: How to tell the build system to run a pre-compile step?
Post by: BlueHazzard on January 10, 2017, 12:11:18 AM
what operating system are you using?
How do you call the ruby script?
Some things to read:
http://wiki.codeblocks.org/index.php/The_build_process_of_Code::Blocks
http://wiki.codeblocks.org/index.php/Variable_expansion
Title: Re: How to tell the build system to run a pre-compile step?
Post by: hanshuckebein on January 10, 2017, 12:26:37 AM
Linux. The script is a shebang script started by its name from a shell.
Title: Re: How to tell the build system to run a pre-compile step?
Post by: oBFusCATed on January 10, 2017, 02:21:32 AM
You can look at this page: http://wiki.codeblocks.org/index.php/Adding_support_for_non_C/C%2B%2B_files_to_the_build_system
Title: Re: How to tell the build system to run a pre-compile step?
Post by: hanshuckebein on January 10, 2017, 09:44:49 PM
Very interesting and solves my problem. Thanks.