Show git hash in version string at top left corner of window
[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 USE_GETTEXT 0
12 #define USE_SOUND 0
13 #define USE_CURL 0
14 #define USE_FREETYPE 0
15 #define STATIC_SHAREDIR ""
16 #define USE_LEVELDB 0
17
18 #ifdef USE_CMAKE_CONFIG_H
19         #include "cmake_config.h"
20         #undef PROJECT_NAME
21         #define PROJECT_NAME CMAKE_PROJECT_NAME
22         #undef RUN_IN_PLACE
23         #define RUN_IN_PLACE CMAKE_RUN_IN_PLACE
24         #undef USE_GETTEXT
25         #define USE_GETTEXT CMAKE_USE_GETTEXT
26         #undef USE_SOUND
27         #define USE_SOUND CMAKE_USE_SOUND
28         #undef USE_CURL
29         #define USE_CURL CMAKE_USE_CURL
30         #undef USE_FREETYPE
31         #define USE_FREETYPE CMAKE_USE_FREETYPE
32         #undef STATIC_SHAREDIR
33         #define STATIC_SHAREDIR CMAKE_STATIC_SHAREDIR
34         #undef USE_LEVELDB
35         #define USE_LEVELDB CMAKE_USE_LEVELDB
36 #endif
37
38 #endif
39