Skip to content

Simple version header generator for C/C++ projects

License

Notifications You must be signed in to change notification settings

mgorzkowski/VersionHeaderGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

It's a simple version header generator for C/C++ projects.

Why?

Because sometimes you need to know which version of the code you are working with.

How to use?

  1. Edit your_config_file.xml,
  2. Run: ./VersionHeaderGenerator.py your_config_file.xml,
  3. The generated file is placed in a proper place (look to the config file to check the place).

Buildin variables*:

  1. NAME,
  2. GIT_REVISION_HASH,
  3. GIT_SHORT_REVISION_HASH,
  4. GIT_BRANCH,
  5. GENERATION_TIME,
  6. GENERATION_DATE,
  7. COMPILATION_TIME,
  8. COMPILATION_DATE,
  9. GUARD_DEF.

Your own variables*:

Insert proper entry in your your_config_file.xml. E.g: <your_important_variable>(0xDEADBEEF)</your_important_variable>

You can try using attached example:

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.

About

Simple version header generator for C/C++ projects

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published