X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Fconfig.h;h=510c5ef1e3a93394dec5e90bcaff0acccb933b94;hb=9e4e7072da8f565eef37da7558053a436b9cbba3;hp=1c0aac4f2d5f4652843fb563ec4a0cb54dc2d5db;hpb=49cec3f78240ed6310a9b5dd05ce09a79ed5a12e;p=oweals%2Fminetest.git diff --git a/src/config.h b/src/config.h index 1c0aac4f2..510c5ef1e 100644 --- a/src/config.h +++ b/src/config.h @@ -8,13 +8,33 @@ #define PROJECT_NAME "Minetest" #define RUN_IN_PLACE 0 -#define USE_GETTEXT 0 -#define USE_SOUND 0 -#define USE_CURL 0 -#define USE_FREETYPE 0 #define STATIC_SHAREDIR "" -#define USE_LEVELDB 0 -#define USE_LUAJIT 0 + +#define USE_GETTEXT 0 + +#ifndef USE_SOUND + #define USE_SOUND 0 +#endif + +#ifndef USE_CURL + #define USE_CURL 0 +#endif + +#ifndef USE_FREETYPE + #define USE_FREETYPE 0 +#endif + +#ifndef USE_LEVELDB + #define USE_LEVELDB 0 +#endif + +#ifndef USE_LUAJIT + #define USE_LUAJIT 0 +#endif + +#ifndef USE_REDIS + #define USE_REDIS 0 +#endif #ifdef USE_CMAKE_CONFIG_H #include "cmake_config.h" @@ -36,6 +56,22 @@ #define USE_LEVELDB CMAKE_USE_LEVELDB #undef USE_LUAJIT #define USE_LUAJIT CMAKE_USE_LUAJIT + #undef USE_REDIS + #define USE_REDIS CMAKE_USE_REDIS + #undef VERSION_MAJOR + #define VERSION_MAJOR CMAKE_VERSION_MAJOR + #undef VERSION_MINOR + #define VERSION_MINOR CMAKE_VERSION_MINOR + #undef VERSION_PATCH + #define VERSION_PATCH CMAKE_VERSION_PATCH + #undef VERSION_PATCH_ORIG + #define VERSION_PATCH_ORIG CMAKE_VERSION_PATCH_ORIG + #undef VERSION_STRING + #define VERSION_STRING CMAKE_VERSION_STRING + #undef PRODUCT_VERSION_STRING + #define PRODUCT_VERSION_STRING CMAKE_PRODUCT_VERSION_STRING + #undef VERSION_EXTRA_STRING + #define VERSION_EXTRA_STRING CMAKE_VERSION_EXTRA_STRING #endif #endif