summaryrefslogtreecommitdiff
path: root/src/config.h
blob: b07aa5d22be23fc30f88b093765dee48a8f53fb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/*
	If CMake is used, includes the cmake-generated cmake_config.h.
	Otherwise use default values
*/

#ifndef CONFIG_H
#define CONFIG_H

#define PROJECT_NAME "Minetest"
#define RUN_IN_PLACE 0
#define STATIC_SHAREDIR ""

#define USE_GETTEXT 0

#ifndef USE_SOUND
	#define USE_SOUND 0
#endif

#ifndef USE_CURL
	#define USE_CURL 0
#endif

#ifndef USE_FREETYPE
	#define USE_FREETYPE 0
#endif

#ifndef USE_LEVELDB
	#define USE_LEVELDB 0
#endif

#ifndef USE_LUAJIT
	#define USE_LUAJIT 0
#endif

#ifndef USE_REDIS
	#define USE_REDIS 0
#endif

#define HAVE_ENDIAN_H 0

#ifdef USE_CMAKE_CONFIG_H
	#include "cmake_config.h"
	#undef PROJECT_NAME
	#define PROJECT_NAME CMAKE_PROJECT_NAME
	#undef RUN_IN_PLACE
	#define RUN_IN_PLACE CMAKE_RUN_IN_PLACE
	#undef USE_GETTEXT
	#define USE_GETTEXT CMAKE_USE_GETTEXT
	#undef USE_SOUND
	#define USE_SOUND CMAKE_USE_SOUND
	#undef USE_CURL
	#define USE_CURL CMAKE_USE_CURL
	#undef USE_FREETYPE
	#define USE_FREETYPE CMAKE_USE_FREETYPE
	#undef STATIC_SHAREDIR
	#define STATIC_SHAREDIR CMAKE_STATIC_SHAREDIR
	#undef USE_LEVELDB
	#define USE_LEVELDB CMAKE_USE_LEVELDB
	#undef USE_LUAJIT
	#define USE_LUAJIT CMAKE_USE_LUAJIT
	#undef USE_REDIS
	#define USE_REDIS CMAKE_USE_REDIS
	#undef VERSION_MAJOR
	#define VERSION_MAJOR CMAKE_VERSION_MAJOR
	#undef VERSION_MINOR
	#define VERSION_MINOR CMAKE_VERSION_MINOR
	#undef VERSION_PATCH
	#define VERSION_PATCH CMAKE_VERSION_PATCH
	#undef VERSION_PATCH_ORIG
	#define VERSION_PATCH_ORIG CMAKE_VERSION_PATCH_ORIG
	#undef VERSION_STRING
	#define VERSION_STRING CMAKE_VERSION_STRING
	#undef PRODUCT_VERSION_STRING
	#define PRODUCT_VERSION_STRING CMAKE_PRODUCT_VERSION_STRING
	#undef VERSION_EXTRA_STRING
	#define VERSION_EXTRA_STRING CMAKE_VERSION_EXTRA_STRING
	#undef HAVE_ENDIAN_H
	#define HAVE_ENDIAN_H CMAKE_HAVE_ENDIAN_H
#endif

#ifdef __ANDROID__
	#include "android_version.h"
	#define VERSION_STRING CMAKE_VERSION_STRING
#endif

#endif