utility.h: Change Buffer's interface to be more compatible with SharedBuffer's interf...
[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 #ifdef USE_CMAKE_CONFIG_H
10         #include "cmake_config.h"
11 #else
12         #define PROJECT_NAME "minetest"
13
14         //#define INSTALL_PREFIX ""
15         #define VERSION_STRING "unknown"
16         #ifdef NDEBUG
17                 #define BUILD_TYPE "Release"
18         #else
19                 #define BUILD_TYPE "Debug"
20         #endif
21         #ifdef RUN_IN_PLACE
22                 #define RUN_IN_PLACE_BOOLSTRING "1"
23         #else
24                 #define RUN_IN_PLACE_BOOLSTRING "0"
25         #endif
26         #if USE_GETTEXT
27                 #define USE_GETTEXT_BOOLSTRING "1"
28         #else
29                 #define USE_GETTEXT_BOOLSTRING "0"
30         #endif
31
32         #define BUILD_INFO "NON-CMAKE RUN_IN_PLACE="RUN_IN_PLACE_BOOLSTRING" USE_GETTEXT="USE_GETTEXT_BOOLSTRING" BUILD_TYPE="BUILD_TYPE
33 #endif
34 #endif
35