Code::Blocks Forums
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
As usual while waiting for the next release - don't forget to check the
nightly builds
in the forum.
Home
Help
Search
Login
Register
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
How to tell the build system to run a pre-compile step?
« previous
next »
Send this topic
Print
Pages: [
1
]
Go Down
Author
Topic: How to tell the build system to run a pre-compile step? (Read 3680 times)
hanshuckebein
Multiple posting newcomer
Posts: 36
How to tell the build system to run a pre-compile step?
«
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?
Logged
BlueHazzard
Developer
Lives here!
Posts: 3352
Re: How to tell the build system to run a pre-compile step?
«
Reply #1 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
Logged
hanshuckebein
Multiple posting newcomer
Posts: 36
Re: How to tell the build system to run a pre-compile step?
«
Reply #2 on:
January 10, 2017, 12:26:37 am »
Linux. The script is a shebang script started by its name from a shell.
Logged
oBFusCATed
Developer
Lives here!
Posts: 13406
Re: How to tell the build system to run a pre-compile step?
«
Reply #3 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
Logged
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]
hanshuckebein
Multiple posting newcomer
Posts: 36
Re: How to tell the build system to run a pre-compile step?
«
Reply #4 on:
January 10, 2017, 09:44:49 pm »
Very interesting and solves my problem. Thanks.
Logged
Send this topic
Print
Pages: [
1
]
Go Up
« previous
next »
Code::Blocks Forums
»
User forums
»
Using Code::Blocks
»
How to tell the build system to run a pre-compile step?