Discussion Forum

How to add a precompile step using the uVision2 environment

Next Thread | Thread List | Previous Thread Start a Thread | Settings

DetailsMessage
Read-Only
Author
Patrick Brouckxon
Posted
4-Jul-2002 15:50 GMT
Toolset
C51
New! How to add a precompile step using the uVision2 environment
Hi,

I'm using the uVision2 environment for 8051 development.
I have some tools that should run before the actual Keil c/asm/link step.

In uVision2 the option exists to add "post" compile tools.
But I can't find a way to add "pre" compile tools.

Does anybody have a suggestion?
(I would like to keep using the uVision environment
to set compiler options easily; to enter debug mode;....
It would be ennoying to be forced to manually execute a batch file first
before hitting the 'compile button')

Off course, I could consider to write a makefile in MS Visual studio,
but then I don't have a button to enter 'target debug mode' anymore.

Thanks
Patrick Brouckxon.
Read-Only
Author
Andrew Neil
Posted
4-Jul-2002 20:38 GMT
Toolset
C51
New! RE: How to add a precompile step using the uVision2 environment
http://www.keil.com/forum/docs/thread1630.asp
In the above thread, I note that uVision builds the Groups in order, and the files within each group in order.

So you just have to add a group before your source files to do your precompile stuff.

The catch is that there is no way to control the position at which a new group is added, nor to re-order the existing groups in a Project :-(
- that's why I made that post!

you can manually hack the .uv2 file, but it really shouldn't come to that, should it? :-(

BTW: note that there is no dependency checking for custom translations. :-(

Next Thread | Thread List | Previous Thread Start a Thread | Settings