How to include build numbers into build?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to include build numbers into build?

1,714件の閲覧回数
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!
ラベル(1)
タグ(1)
0 件の賞賛
返信
1 返信

427件の閲覧回数
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 件の賞賛
返信