version.cpp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. Minetest
  3. Copyright (C) 2013 celeron55, Perttu Ahola <celeron55@gmail.com>
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU Lesser General Public License as published by
  6. the Free Software Foundation; either version 2.1 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public License along
  13. with this program; if not, write to the Free Software Foundation, Inc.,
  14. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  15. */
  16. #include "version.h"
  17. #include "config.h"
  18. #if defined(__ANDROID__)
  19. #include "android_version.h"
  20. #include "android_version_githash.h"
  21. #elif defined(USE_CMAKE_CONFIG_H)
  22. #include "cmake_config_githash.h"
  23. #endif
  24. #ifndef VERSION_GITHASH
  25. #define VERSION_GITHASH VERSION_STRING
  26. #endif
  27. const char *g_version_string = VERSION_STRING;
  28. const char *g_version_hash = VERSION_GITHASH;
  29. const char *g_build_info = BUILD_INFO;