diff options
| author | jacob1 <jfu614@gmail.com> | 2013-01-15 16:28:28 (GMT) |
|---|---|---|
| committer | jacob1 <jfu614@gmail.com> | 2013-01-15 16:28:28 (GMT) |
| commit | b3a2ab735b76185715d7efd848659ef87ca70405 (patch) | |
| tree | 4259e06b22789ce574d858eae0590607384e3e80 /src/Version.h | |
| parent | 62195dc2a32962d107736da05295e300eb9f7a8d (diff) | |
| download | powder-b3a2ab735b76185715d7efd848659ef87ca70405.zip powder-b3a2ab735b76185715d7efd848659ef87ca70405.tar.gz | |
move version info to version.h, no longer needs full recompile on version change
Diffstat (limited to 'src/Version.h')
| -rw-r--r-- | src/Version.h | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/src/Version.h b/src/Version.h new file mode 100644 index 0000000..a1b57c4 --- /dev/null +++ b/src/Version.h @@ -0,0 +1,69 @@ +#ifndef VERSION_H +#define VERSION_H + +//VersionInfoStart +#ifndef SAVE_VERSION +#define SAVE_VERSION 85 +#endif + +#ifndef MINOR_VERSION +#define MINOR_VERSION 0 +#endif + +#ifndef BUILD_NUM +#define BUILD_NUM 254 +#endif + +#ifndef SNAPSHOT_ID +#define SNAPSHOT_ID 0 +#endif + +#ifndef STABLE +#ifndef BETA +#define BETA +#define SNAPSHOT +#endif +#endif +//VersionInfoEnd + +//#define IGNORE_UPDATES //uncomment this for mods, to not get any update notifications + +#if defined(SNAPSHOT) +#define IDENT_RELTYPE "S" +#elif defined(BETA) +#define IDENT_RELTYPE "B" +#else +#define IDENT_RELTYPE "R" +#endif + +#if defined(WIN) +#if defined(_64BIT) +#define IDENT_PLATFORM "WIN64" +#else +#define IDENT_PLATFORM "WIN32" +#endif +#elif defined(LIN) +#if defined(_64BIT) +#define IDENT_PLATFORM "LIN64" +#else +#define IDENT_PLATFORM "LIN32" +#endif +#elif defined(MACOSX) +#define IDENT_PLATFORM "MACOSX" +#else +#define IDENT_PLATFORM "UNKNOWN" +#endif + +#if defined(X86_SSE3) +#define IDENT_BUILD "SSE3" +#elif defined(X86_SSE2) +#define IDENT_BUILD "SSE2" +#elif defined(X86_SSE) +#define IDENT_BUILD "SSE" +#else +#define IDENT_BUILD "NO" +#endif + +#define IDENT_VERSION "G" + +#endif |
