ac7684e204410693369642cc811607bf7aebc071
[oweals/minetest.git] / src / config.h
1 /*
2         If CMake is used, includes the cmake-generated cmake_config.h.
3         Otherwise use default values
4 */
5
6 #ifndef CONFIG_H
7 #define CONFIG_H
8
9 #define STRINGIFY(x) #x
10 #define STR(x) STRINGIFY(x)
11
12
13 #ifdef USE_CMAKE_CONFIG_H
14         #include "cmake_config.h"
15 #else
16         #define PROJECT_NAME "Minetest"
17         #define RUN_IN_PLACE 0
18         #define USE_CURL 0
19         #define USE_FREETYPE 0
20         #define USE_GETTEXT 0
21         #define USE_LEVELDB 0
22         #define USE_LUAJIT 0
23         #define USE_REDIS 0
24         #define USE_SOUND 0
25         #define HAVE_ENDIAN_H 0
26         #define STATIC_SHAREDIR ""
27         #ifdef NDEBUG
28                 #define BUILD_TYPE "Release"
29         #else
30                 #define BUILD_TYPE "Debug"
31         #endif
32 #endif
33
34 #ifdef __ANDROID__
35         #include "android_version.h"
36 #endif
37
38 #define BUILD_INFO "BUILD_TYPE=" BUILD_TYPE \
39                 " RUN_IN_PLACE=" STR(RUN_IN_PLACE) \
40                 " USE_GETTEXT=" STR(USE_GETTEXT) \
41                 " USE_SOUND=" STR(USE_SOUND) \
42                 " USE_CURL=" STR(USE_CURL) \
43                 " USE_FREETYPE=" STR(USE_FREETYPE) \
44                 " USE_LUAJIT=" STR(USE_LUAJIT) \
45                 " STATIC_SHAREDIR=" STR(STATIC_SHAREDIR)
46
47 #endif
48