Because sometimes you need to know which version of the code you are working with.
- Edit your_config_file.xml,
- Run:
./VersionHeaderGenerator.py your_config_file.xml
, - The generated file is placed in a proper place (look to the config file to check the place).
NAME
,GIT_REVISION_HASH
,GIT_SHORT_REVISION_HASH
,GIT_BRANCH
,GENERATION_TIME
,GENERATION_DATE
,COMPILATION_TIME
,COMPILATION_DATE
,GUARD_DEF
.
Insert proper entry in your your_config_file.xml.
E.g:
<your_important_variable>(0xDEADBEEF)</your_important_variable>
Run it:
cd example ; make
*) Of course, they aren't variables from the point of view C/C++ language and its compilation. They are variables from point of view of project management.