Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

mgorzkowski/VersionHeaderGenerator

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
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

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.