X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Fconfig.h;h=a4c6c9f10e4d510c0fc28b7a77ef283e95db1e33;hb=8f996e4a7cf7b1fa1ca683cbc37327a790e09ddc;hp=df7429be0cb83c242a41efd6472096ad3f610ab7;hpb=558d715bf62b000c9b10b44a0e3591ed4e669fa5;p=minetest.git diff --git a/src/config.h b/src/config.h index df7429be0..a4c6c9f10 100644 --- a/src/config.h +++ b/src/config.h @@ -3,8 +3,7 @@ Otherwise use default values */ -#ifndef CONFIG_H -#define CONFIG_H +#pragma once #define STRINGIFY(x) #x #define STR(x) STRINGIFY(x) @@ -12,30 +11,17 @@ #if defined USE_CMAKE_CONFIG_H #include "cmake_config.h" -#elif defined (__ANDROID__) || defined (ANDROID) - #define PROJECT_NAME "Minetest" - #define STATIC_SHAREDIR "" - #include "android_version.h" - #ifdef NDEBUG - #define BUILD_TYPE "Release" - #else - #define BUILD_TYPE "Debug" - #endif #else + #if defined (__ANDROID__) + #define PROJECT_NAME "minetest" + #define PROJECT_NAME_C "Minetest" + #define STATIC_SHAREDIR "" + #define ENABLE_UPDATE_CHECKER 0 + #define VERSION_STRING STR(VERSION_MAJOR) "." STR(VERSION_MINOR) "." STR(VERSION_PATCH) STR(VERSION_EXTRA) + #endif #ifdef NDEBUG #define BUILD_TYPE "Release" #else #define BUILD_TYPE "Debug" #endif #endif - -#define BUILD_INFO "BUILD_TYPE=" BUILD_TYPE \ - " RUN_IN_PLACE=" STR(RUN_IN_PLACE) \ - " USE_GETTEXT=" STR(USE_GETTEXT) \ - " USE_SOUND=" STR(USE_SOUND) \ - " USE_CURL=" STR(USE_CURL) \ - " USE_FREETYPE=" STR(USE_FREETYPE) \ - " USE_LUAJIT=" STR(USE_LUAJIT) \ - " STATIC_SHAREDIR=" STR(STATIC_SHAREDIR) - -#endif