eb1d1a9aa507fd202d5ac7b28d198bbf4be30b04
[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         #ifdef USE_GETTEXT
27                 #define USE_GETTEXT_BOOLSTRING "ON"
28         #else
29                 #define USE_GETTEXT_BOOLSTRING "OFF"
30         #endif
31         #define BUILD_INFO "NON-CMAKE RUN_IN_PLACE="RUN_IN_PLACE_BOOLSTRING" USE_GETTEXT="USE_GETTEXT_BOOLSTRING" BUILD_TYPE="BUILD_TYPE
32 #endif
33
34 #endif
35