From 848d60caee5242f6aae1ec76eb220376133b34a8 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 21 Feb 2011 04:45:47 +0000 Subject: 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. --- source/blender/blenkernel/BKE_blender.h | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'source') 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 */ -- cgit v1.2.3