b07aa5d22be23fc30f88b093765dee48a8f53fb5
[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 PROJECT_NAME "Minetest"
10 #define RUN_IN_PLACE 0
11 #define STATIC_SHAREDIR ""
12
13 #define USE_GETTEXT 0
14
15 #ifndef USE_SOUND
16         #define USE_SOUND 0
17 #endif
18
19 #ifndef USE_CURL
20         #define USE_CURL 0
21 #endif
22
23 #ifndef USE_FREETYPE
24         #define USE_FREETYPE 0
25 #endif
26
27 #ifndef USE_LEVELDB
28         #define USE_LEVELDB 0
29 #endif
30
31 #ifndef USE_LUAJIT
32         #define USE_LUAJIT 0
33 #endif
34
35 #ifndef USE_REDIS
36         #define USE_REDIS 0
37 #endif
38
39 #define HAVE_ENDIAN_H 0
40
41 #ifdef USE_CMAKE_CONFIG_H
42         #include "cmake_config.h"
43         #undef PROJECT_NAME
44         #define PROJECT_NAME CMAKE_PROJECT_NAME
45         #undef RUN_IN_PLACE
46         #define RUN_IN_PLACE CMAKE_RUN_IN_PLACE
47         #undef USE_GETTEXT
48         #define USE_GETTEXT CMAKE_USE_GETTEXT
49         #undef USE_SOUND
50         #define USE_SOUND CMAKE_USE_SOUND
51         #undef USE_CURL
52         #define USE_CURL CMAKE_USE_CURL
53         #undef USE_FREETYPE
54         #define USE_FREETYPE CMAKE_USE_FREETYPE
55         #undef STATIC_SHAREDIR
56         #define STATIC_SHAREDIR CMAKE_STATIC_SHAREDIR
57         #undef USE_LEVELDB
58         #define USE_LEVELDB CMAKE_USE_LEVELDB
59         #undef USE_LUAJIT
60         #define USE_LUAJIT CMAKE_USE_LUAJIT
61         #undef USE_REDIS
62         #define USE_REDIS CMAKE_USE_REDIS
63         #undef VERSION_MAJOR
64         #define VERSION_MAJOR CMAKE_VERSION_MAJOR
65         #undef VERSION_MINOR
66         #define VERSION_MINOR CMAKE_VERSION_MINOR
67         #undef VERSION_PATCH
68         #define VERSION_PATCH CMAKE_VERSION_PATCH
69         #undef VERSION_PATCH_ORIG
70         #define VERSION_PATCH_ORIG CMAKE_VERSION_PATCH_ORIG
71         #undef VERSION_STRING
72         #define VERSION_STRING CMAKE_VERSION_STRING
73         #undef PRODUCT_VERSION_STRING
74         #define PRODUCT_VERSION_STRING CMAKE_PRODUCT_VERSION_STRING
75         #undef VERSION_EXTRA_STRING
76         #define VERSION_EXTRA_STRING CMAKE_VERSION_EXTRA_STRING
77         #undef HAVE_ENDIAN_H
78         #define HAVE_ENDIAN_H CMAKE_HAVE_ENDIAN_H
79 #endif
80
81 #ifdef __ANDROID__
82         #include "android_version.h"
83         #define VERSION_STRING CMAKE_VERSION_STRING
84 #endif
85
86 #endif
87