win-pvdrivers

view common/include/gplpv_version.h @ 1081:04fc4aca982c

Update version numbering to <major>.<minor>.<hg revision>[.<build number>]
author James Harper <james.harper@bendigoit.com.au>
date Mon Dec 09 13:35:19 2013 +1100 (2013-12-09)
parents bcf3995665d3
children
line source
1 #ifndef GPLPV_VERSION_H
2 #define GPLPV_VERSION_H
4 #define EXPAND(x) STRINGIFY(x)
5 #define STRINGIFY(x) #x
7 #ifdef VERSION_MAJOR
8 #ifdef BUILD_NUMBER
9 #define VER_FILEVERSION VERSION_MAJOR,VERSION_MINOR,REVISION,BUILD_NUMBER
10 #define VER_FILEVERSION_STR "GPLPV " EXPAND(VERSION_MAJOR) "." EXPAND(VERSION_MINOR) "." EXPAND(REVISION) "." EXPAND(BUILD_NUMBER)
11 #else
12 #define VER_FILEVERSION VERSION_MAJOR,VERSION_MINOR,REVISION,0
13 #define VER_FILEVERSION_STR "GPLPV " EXPAND(VERSION_MAJOR) "." EXPAND(VERSION_MINOR) "." EXPAND(REVISION)
14 #endif
15 #else
16 #define VER_FILEVERSION 0,0,0,0
17 #define VER_FILEVERSION_STR "GPLPV Unversioned"
18 #endif
20 #endif