]> git.lizzy.rs Git - dragonfireclient.git/blobdiff - src/config.h
Write common mapgen params to map_meta.txt on world initialization
[dragonfireclient.git] / src / config.h
index 55bbb5beecd2420a3280202050af36778a1e9ffa..b07aa5d22be23fc30f88b093765dee48a8f53fb5 100644 (file)
@@ -8,13 +8,35 @@
 
 #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
+
+#define HAVE_ENDIAN_H 0
 
 #ifdef USE_CMAKE_CONFIG_H
        #include "cmake_config.h"
@@ -36,6 +58,8 @@
        #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 PRODUCT_VERSION_STRING CMAKE_PRODUCT_VERSION_STRING
        #undef VERSION_EXTRA_STRING
        #define VERSION_EXTRA_STRING CMAKE_VERSION_EXTRA_STRING
+       #undef HAVE_ENDIAN_H
+       #define HAVE_ENDIAN_H CMAKE_HAVE_ENDIAN_H
+#endif
+
+#ifdef __ANDROID__
+       #include "android_version.h"
+       #define VERSION_STRING CMAKE_VERSION_STRING
 #endif
 
 #endif