config.h 953 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /*
  2. If CMake is used, includes the cmake-generated cmake_config.h.
  3. Otherwise use default values
  4. */
  5. #pragma once
  6. #define STRINGIFY(x) #x
  7. #define STR(x) STRINGIFY(x)
  8. #if defined USE_CMAKE_CONFIG_H
  9. #include "cmake_config.h"
  10. #elif defined (__ANDROID__) || defined (ANDROID)
  11. #define PROJECT_NAME "minetest"
  12. #define PROJECT_NAME_C "Minetest"
  13. #define STATIC_SHAREDIR ""
  14. #include "android_version.h"
  15. #ifdef NDEBUG
  16. #define BUILD_TYPE "Release"
  17. #else
  18. #define BUILD_TYPE "Debug"
  19. #endif
  20. #else
  21. #ifdef NDEBUG
  22. #define BUILD_TYPE "Release"
  23. #else
  24. #define BUILD_TYPE "Debug"
  25. #endif
  26. #endif
  27. #define BUILD_INFO \
  28. "BUILD_TYPE=" BUILD_TYPE "\n" \
  29. "RUN_IN_PLACE=" STR(RUN_IN_PLACE) "\n" \
  30. "USE_GETTEXT=" STR(USE_GETTEXT) "\n" \
  31. "USE_SOUND=" STR(USE_SOUND) "\n" \
  32. "USE_CURL=" STR(USE_CURL) "\n" \
  33. "USE_FREETYPE=" STR(USE_FREETYPE) "\n" \
  34. "USE_LUAJIT=" STR(USE_LUAJIT) "\n" \
  35. "STATIC_SHAREDIR=" STR(STATIC_SHAREDIR);