diff --git a/Blocks3D.vcproj b/Blocks3D.vcproj index a114f7b..d556d08 100644 --- a/Blocks3D.vcproj +++ b/Blocks3D.vcproj @@ -739,6 +739,10 @@ RelativePath=".\src\include\ToolEnum.h" > + + diff --git a/Dialogs.rc b/Dialogs.rc index 11bf464..bd9e8d6 100644 --- a/Dialogs.rc +++ b/Dialogs.rc @@ -6,17 +6,7 @@ #include #include #include "src/include/resource.h" - -#define APP_GENER 0 -#define APP_MAJOR 0 -#define APP_MINOR 106 -#define APP_PATCH 4 -#define APP_VER_STRING APP_GENER.APP_MAJOR.APP_MINOR.APP_PATCH - -#define VER_PREFIX( N ) v##N -#define HSTR( N ) #N -#define STR( N ) HSTR( N ) -#define VER_STR( N ) STR( VER_PREFIX( N ) ) +#include "src/include/versioning.h" diff --git a/src/include/versioning.h b/src/include/versioning.h new file mode 100644 index 0000000..19e8d1c --- /dev/null +++ b/src/include/versioning.h @@ -0,0 +1,23 @@ +#ifndef APP_GENER + +#define SNAPSHOT_VERSION + +#define APP_GENER 0 +#define APP_MAJOR 0 +#define APP_MINOR 107 +#define APP_PATCH 0 +#define APP_VER_STRING APP_GENER.APP_MAJOR.APP_MINOR.APP_PATCH + + +#ifdef SNAPSHOT_VERSION +#define VER_PREFIX( N ) v##N-SNAPSHOT +#else +#define VER_PREFIX( N ) v##N +#endif + + +#define HSTR( N ) #N +#define STR( N ) HSTR( N ) +#define VER_STR( N ) STR( VER_PREFIX( N ) ) + +#endif