Author Topic: How to tell the build system to run a pre-compile step?  (Read 2401 times)

Offline 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?

Offline BlueHazzard

  • Developer
  • Lives here!
  • *****
  • Posts: 3353
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

Offline 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.

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
(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!]

Offline 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.