1 #define PRODUCTVER_MAJOR 0
2 #define PRODUCTVER_MINOR 22
3 #define PRODUCTVER_MICRO 0
4 #define PRODUCTVER_REV $WCREV$
5 #define PRODUCTVER_REVRANGE $WCRANGE$
7 #define FILEVER_MAJOR PRODUCTVER_MAJOR
8 #define FILEVER_MINOR PRODUCTVER_MINOR
9 #define FILEVER_REV PRODUCTVER_REV
10 #define FILEVER_MICRO PRODUCTVER_MICRO
11 #define FILEVER_REVRANGE PRODUCTVER_REVRANGE
13 #define FILEVER_REVDATE "$WCDATE$"
14 #define FILEVER_REVMODIFIED $WCMODS?" (locally modified)":""$
16 #include <boost/preprocessor/stringize.hpp>
18 // FILEVER will be e.g. "1,9,1,116"
19 // PRODUCTVER will be e.g. "0,9,1,116"
20 // STRFILEVER will be e.g. "1.9.1, Build 116"
21 // STRPRODUCTVER will be e.g. "0.9.1"
25 #define MAKE_VERSION(x, y, z, b) x,y,z,b
26 // undefine VERSION passed on command line
28 #define VERSION MAKE_VERSION(FILEVER_MAJOR,FILEVER_MINOR,FILEVER_MICRO,FILEVER_REV)
29 #define VERSION_STRING BOOST_PP_STRINGIZE(PRODUCTVER_MAJOR) "." BOOST_PP_STRINGIZE(PRODUCTVER_MINOR) "." BOOST_PP_STRINGIZE(PRODUCTVER_MICRO)
31 #define FILEVER VERSION
32 #define PRODUCTVER VERSION
33 #define STRFILEVER VERSION_STRING ", Build " BOOST_PP_STRINGIZE(FILEVER_REVRANGE) FILEVER_REVMODIFIED "\0"
34 #define STRPRODUCTVER VERSION_STRING "\0"