News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Using Pre-Compilers

Started by SherryH, August 23, 2007, 03:01:44 AM

Previous topic - Next topic

SherryH

Hi, is there a way to associate pre-complie steps by file extension?
I am using Oracle ProC to build database applications. My pro-c files end with a .pc extension. Is there anyway to specify instructions to invoke pro-c to generate .c file from the .pc version prior to invoking the CC compiler?

I know at the package level, I can put the command in the pre-build instructions.

thomas

QuoteI can put the command in the pre-build instructions
That's inconvenient, but currently the only way you can do it. Worse, you will have to add dummy files too, because you can't add files to a project that do not exist.
What you want might work in the future with the next-gen build system, but under the current one, I see no way.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

SherryH

I ended up adding the precompiler command as a tool and then once it has run adding the generated .c file to the project. This is very awkward!
I must say everything else works great! Hopefully, a more elegant solution will be available in a future release.