Otherwise use default values
*/
-#ifndef CONFIG_H
-#define CONFIG_H
+#pragma once
-#ifdef USE_CMAKE_CONFIG_H
+#if defined USE_CMAKE_CONFIG_H
#include "cmake_config.h"
-#else
+#elif defined (__ANDROID__) || defined (ANDROID)
#define PROJECT_NAME "minetest"
-
- //#define INSTALL_PREFIX ""
- #define VERSION_STRING "unknown"
+ #define PROJECT_NAME_C "Minetest"
+ #define STATIC_SHAREDIR ""
+ #include "android_version.h"
#ifdef NDEBUG
#define BUILD_TYPE "Release"
#else
#define BUILD_TYPE "Debug"
#endif
- #ifdef RUN_IN_PLACE
- #define RUN_IN_PLACE_BOOLSTRING "1"
- #else
- #define RUN_IN_PLACE_BOOLSTRING "0"
- #endif
- #ifdef USE_GETTEXT
- #define USE_GETTEXT_BOOLSTRING "ON"
+#else
+ #ifdef NDEBUG
+ #define BUILD_TYPE "Release"
#else
- #define USE_GETTEXT_BOOLSTRING "OFF"
+ #define BUILD_TYPE "Debug"
#endif
- #define BUILD_INFO "NON-CMAKE RUN_IN_PLACE="RUN_IN_PLACE_BOOLSTRING" USE_GETTEXT="USE_GETTEXT_BOOLSTRING" BUILD_TYPE="BUILD_TYPE
#endif
-
-#endif
-