I made at .bat file that modifies a .h file containing a #define BUILD_VER so that it gets incremented every time I build.
There is also a #define MAJOR_VER in the same .h file that defines the version that the customers will see.
I'm trying to figure out a way to get the MAJOR_VER and BUILD_VER attached the to the binary output file (I'm using MSP430's so the output is a .txt files.)
So with something like this
#define MAJOR_VER 22
#define BUILD_VER 4321
...and building "Project_A"
"Project_A.txt" <== current default behaviour
"Project_A_V22_4321.txt" <==What I'm looking for
It would be nice if I could set an IDE variable using these #defines somehow.
This posts answers how to create custom IDE variables, which I didn't see the last time I started looking into this IAR project variable like $PROJ_DIR$
I know I could just write another .bat script to modify the file name, but this seems cleaner to me. And a little more obvious if I were new to the project.
Any thoughts?