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