How to include build numbers into build?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to include build numbers into build?

1,547 Views
Albitz
Contributor I
Hello,

I'm working with CodeWarrior 8.0 for 56800E and want to include a build number into my software. Is it possible to set up CodeWarrior to increment a number and include it into the software?

Thanks!
Labels (1)
Tags (1)
0 Kudos
1 Reply

260 Views
CrasyCat
Specialist III
Hello
 
There is no formal way to get CodeWarrior generate a version number when building code.
If you want to get a version number stored in the image you can define a constant string variable, where you store a version number.
 
Each time you start working on a new version of the program you have to increment the version number manually.
 
Make sure to specify your version constant in a FORCE_ACTIVE command in the application linker command file. This will ensure the constant is linked to the application even though it is not used.
 
Alternatively you can decide to initialize your constant string with the predefined macro __DATE__.
This way the compiler will initialize the constant with the build date.
You version number will then be the build date.
 
I hope this helps.
 
CrasyCat
0 Kudos