diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-02-21 07:45:47 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-02-21 07:45:47 +0300 |
commit | 848d60caee5242f6aae1ec76eb220376133b34a8 (patch) | |
tree | aaaeef19e5bed56eff8c434ccd00a46922c6f261 /source/blender/blenkernel/BKE_blender.h | |
parent | 1e4c17a82fea339e42e9a88323735b9fe029820d (diff) |
Move blender version info into BKE_blender.h so we only have the info in one place and so package building scripts can extract it in a more usable way.
this also means we can have a version string like '2.56a-beta' without using buildinfo.
release/VERSION was only used by scons, NSIS installer.
Possibly helps to fix bug [#26062] too.
Diffstat (limited to 'source/blender/blenkernel/BKE_blender.h')
-rw-r--r-- | source/blender/blenkernel/BKE_blender.h | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/source/blender/blenkernel/BKE_blender.h b/source/blender/blenkernel/BKE_blender.h index aa04e20beb6..7c6d7d81f2b 100644 --- a/source/blender/blenkernel/BKE_blender.h +++ b/source/blender/blenkernel/BKE_blender.h @@ -40,6 +40,21 @@ extern "C" { #endif +/* these lines are grep'd, watch out for our not-so-awesome regex + * and keep comment above the defines. + * Use STRINGIFY() rather then defining with quotes */ +#define BLENDER_VERSION 256 +#define BLENDER_SUBVERSION 1 + +#define BLENDER_MINVERSION 250 +#define BLENDER_MINSUBVERSION 0 + +/* used by packaging tools */ + /* can be left blank, otherwise a,b,c... etc with no quotes */ +#define BLENDER_VERSION_CHAR a + /* alpha/beta/rc/releases */ +#define BLENDER_VERSION_CYCLE beta + struct ListBase; struct MemFile; struct bContext; @@ -47,12 +62,6 @@ struct ReportList; struct Scene; struct Main; -#define BLENDER_VERSION 256 -#define BLENDER_SUBVERSION 1 - -#define BLENDER_MINVERSION 250 -#define BLENDER_MINSUBVERSION 0 - int BKE_read_file(struct bContext *C, const char *filepath, struct ReportList *reports); #define BKE_READ_FILE_FAIL 0 /* no load */ |