aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-07-31 16:38:36 +0200
committerest31 <MTest31@outlook.com>2015-08-01 20:42:07 +0200
commitc39a85a88d1f905014c1ced6b87638cdb01e6ddf (patch)
treed30e5ffda258321f944d2833de363412900fca46 /src
parent7919318be715e3bf60f01b7c63816a3e5802176d (diff)
downloadminetest-c39a85a88d1f905014c1ced6b87638cdb01e6ddf.tar.gz
minetest-c39a85a88d1f905014c1ced6b87638cdb01e6ddf.tar.bz2
minetest-c39a85a88d1f905014c1ced6b87638cdb01e6ddf.zip
Android: Add githash header to spare rebuilds after new commits
Before, android_version.h got changed at every new commit. Now, we only change it with new minetest releases. Analogous to how cmake does it, we add an android_version_githash.h file that communicates the git hash to C++ code. Also, unify VERS_MAJOR, VERS_MINOR and VERS_PATCH variable calculation inside the whole makefile.
Diffstat (limited to 'src')
-rw-r--r--src/version.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/version.cpp b/src/version.cpp
index ed167cd24..ca206bded 100644
--- a/src/version.cpp
+++ b/src/version.cpp
@@ -22,6 +22,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#if defined(__ANDROID__)
#include "android_version.h"
+ #include "android_version_githash.h"
#elif defined(USE_CMAKE_CONFIG_H)
#include "cmake_config_githash.h"
#endif