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.
This commit is contained in:
est31
2015-07-31 16:38:36 +02:00
parent 7919318be7
commit c39a85a88d
3 changed files with 38 additions and 24 deletions

1
.gitignore vendored
View File

@@ -39,6 +39,7 @@ doc/doxygen_*
CMakeFiles/*
src/CMakeFiles/*
src/Makefile
src/android_config_githash.h
src/android_version.h
src/cmake_config.h
src/cmake_config_githash.h