diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-24 20:57:35 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-24 20:57:35 +0300 |
commit | b8e3f4ee30ccebce915eac8b8c7ab4b8b343c79e (patch) | |
tree | 5bb29a42e32879c4a40cd52704d9aaf6d3c8fef7 /source/creator/buildinfo.c | |
parent | 197a57db697048d84eff6ba71f9ead16c49ccae2 (diff) |
fix for cmake not having the correct svn revision in buildinfo, now generate a header every build with the time, date, svn revision.
Diffstat (limited to 'source/creator/buildinfo.c')
-rw-r--r-- | source/creator/buildinfo.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/creator/buildinfo.c b/source/creator/buildinfo.c index c3b9ea56c45..65a3c432c86 100644 --- a/source/creator/buildinfo.c +++ b/source/creator/buildinfo.c @@ -27,15 +27,21 @@ * ***** END GPL LICENSE BLOCK ***** */ +#ifdef WITH_BUILDINFO_HEADER +#include "buildinfo.h" +#endif + #ifdef BUILD_DATE /* copied from BLI_utildefines.h */ #define STRINGIFY_ARG(x) #x #define STRINGIFY(x) STRINGIFY_ARG(x) +/* currently only these are defined in the header */ char build_date[]= STRINGIFY(BUILD_DATE); char build_time[]= STRINGIFY(BUILD_TIME); char build_rev[]= STRINGIFY(BUILD_REV); + char build_platform[]= STRINGIFY(BUILD_PLATFORM); char build_type[]= STRINGIFY(BUILD_TYPE); |