[cmake]: add git and svn version script

Change-Id: Ia1f908986f503191c3e5a6bbe9dc5daa55648b40
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
Herman Chen 2016-08-20 18:44:34 +08:00
parent 9da1bfaa04
commit 72a6e3b06a
3 changed files with 79 additions and 15 deletions

View file

@ -17,10 +17,11 @@
#ifndef __VERSION_H__
#define __VERSION_H__
#define SVN_VERSION "@VERSION_REVISION@"
#define SVN_AUTHOR "@VERSION_LAST_AUTHOR@"
#define SVN_DATE "@VERSION_LAST_DATA@"
#define SVN_ONE_LINE "r@VERSION_REVISION@ author: @VERSION_LAST_AUTHOR@ date: @VERSION_LAST_DATA@"
#define MPP_VERSION "@VERSION_REVISION@"
#define MPP_AUTHOR "@VERSION_LAST_AUTHOR@"
#define MPP_DATE "@VERSION_LAST_DATA@"
#define MPP_ONE_LINE "@VERSION_ONE_LINE@"
#define MPP_VER_NUM "@VERSION_VER_NUM@"
#endif /*__VERSION_H__*/