We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello
We have a uv4 project that I would like to be built using an automated build tool.
The simplest way given that we already have a working project is to call uv4 from the command line.
c:\keil\uv4\uv4.exe -b PROJECTNAME.uvproj -o BuildOutput.txt
This seems to work fine.
What I would now like to do is include an automatically generated build number in the build process. Searching on the forum I thought I had found a solution by having a define=environment variable in the C preprocessor symbols dialog. However it seems that uv4 does not read environment variables. I also cannot see a command line option that would help with this either.
Any suggestions? Do I need to convert to building using a makefile?
Thanks Stephen
By far the most universal solution to this will be to put your build number directly into an actual source file, e.g.
/* file: buildnumber.h */ #define BUILD_NUMBER 12345
That way any build tool will be able to find it and include it into the build.