Author Topic: any way for "middle" build step?  (Read 3689 times)

Offline nus1998

  • Single posting newcomer
  • *
  • Posts: 3
any way for "middle" build step?
« 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

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 nus1998

  • Single posting newcomer
  • *
  • Posts: 3
Re: any way for "middle" build step?
« Reply #2 on: August 20, 2014, 03:03:23 am »
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.

Offline nus1998

  • Single posting newcomer
  • *
  • Posts: 3
Re: any way for "middle" build step?
« Reply #3 on: August 20, 2014, 03:24:28 am »
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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: any way for "middle" build step?
« Reply #4 on: August 20, 2014, 10:23:02 am »
This option is useful only if you have small number of files:)
(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!]