Fix damage flash when damage disabled
[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 #if defined USE_CMAKE_CONFIG_H
14         #include "cmake_config.h"
15 #elif defined (__ANDROID__) || defined (ANDROID)
16         #define PROJECT_NAME "minetest"
17         #define PROJECT_NAME_C "Minetest"
18         #define STATIC_SHAREDIR ""
19         #include "android_version.h"
20         #ifdef NDEBUG
21                 #define BUILD_TYPE "Release"
22         #else
23                 #define BUILD_TYPE "Debug"
24         #endif
25 #else
26         #ifdef NDEBUG
27                 #define BUILD_TYPE "Release"
28         #else
29                 #define BUILD_TYPE "Debug"
30         #endif
31 #endif
32
33 #define BUILD_INFO "BUILD_TYPE=" BUILD_TYPE \
34                 " RUN_IN_PLACE=" STR(RUN_IN_PLACE) \
35                 " USE_GETTEXT=" STR(USE_GETTEXT) \
36                 " USE_SOUND=" STR(USE_SOUND) \
37                 " USE_CURL=" STR(USE_CURL) \
38                 " USE_FREETYPE=" STR(USE_FREETYPE) \
39                 " USE_LUAJIT=" STR(USE_LUAJIT) \
40                 " STATIC_SHAREDIR=" STR(STATIC_SHAREDIR)
41
42 #endif