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
Yes, if they are automatic as in "build_number = last_build_number+1".
But an automatic build process can also extract a build number from the repository or similar.
Sometimes, it can be good to have version control system tag + sequence number (or __TIME__) in the binary for in-house testing. Then you can build the same source code using different compiler options and test, to verify if they produce the same result.