aboutsummaryrefslogtreecommitdiff
path: root/base/internal_version.h.in
diff options
context:
space:
mode:
authorLittleboy2011-04-24 12:34:57 -0400
committerLittleboy2011-04-24 16:59:46 -0400
commit11b907ebf45f5a0707c2748b8f7413b2910976a8 (patch)
treea85b869ce6eb2495001f75a0c6cd198d0e2ed842 /base/internal_version.h.in
parent4f708b021269c67da42177df8170a86d073c6e49 (diff)
downloadscummvm-rg350-11b907ebf45f5a0707c2748b8f7413b2910976a8.tar.gz
scummvm-rg350-11b907ebf45f5a0707c2748b8f7413b2910976a8.tar.bz2
scummvm-rg350-11b907ebf45f5a0707c2748b8f7413b2910976a8.zip
CREATE_PROJECT: Update revision number support (fixes bug #3280881)
Replace existing environment variable based revision number support by a file-based method - Generate a special header file in the build output folder with the current revision number - Include the new header file from internal_version.h when a specific define is set - Update create_project to define SCUMMVM_INTERNAL_REVISION as needed and add the build output folder to the include path - Remove support for git-svn clones in the revision script (not useful anymore after the switch to git)
Diffstat (limited to 'base/internal_version.h.in')
-rw-r--r--base/internal_version.h.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/base/internal_version.h.in b/base/internal_version.h.in
index 5eb3c904ee..e2b46f54ce 100644
--- a/base/internal_version.h.in
+++ b/base/internal_version.h.in
@@ -2,6 +2,12 @@
#error This file may only be included by base/version.cpp
#endif
+// Reads revision number from file
+// (this is used when building with Visual Studio)
+#ifdef SCUMMVM_INTERNAL_REVISION
+#include "internal_revision.h"
+#endif
+
#ifdef RELEASE_BUILD
#undef SCUMMVM_REVISION
#endif