1 /*
2 	If CMake is used, includes the cmake-generated cmake_config.h.
3 	Otherwise use default values
4 */
5 
6 #pragma once
7 
8 #define STRINGIFY(x) #x
9 #define STR(x) STRINGIFY(x)
10 
11 
12 #if defined USE_CMAKE_CONFIG_H
13 	#include "cmake_config.h"
14 #elif defined (__ANDROID__)
15 	#define PROJECT_NAME "minetest"
16 	#define PROJECT_NAME_C "Minetest"
17 	#define STATIC_SHAREDIR ""
18 	#define VERSION_STRING STR(VERSION_MAJOR) "." STR(VERSION_MINOR) "." STR(VERSION_PATCH) STR(VERSION_EXTRA)
19 #ifdef NDEBUG
20 		#define BUILD_TYPE "Release"
21 	#else
22 		#define BUILD_TYPE "Debug"
23 	#endif
24 #else
25 	#ifdef NDEBUG
26 		#define BUILD_TYPE "Release"
27 	#else
28 		#define BUILD_TYPE "Debug"
29 	#endif
30 #endif
31