]> git.lizzy.rs Git - dragonfireclient.git/blob - src/config.h
Merge pull request #59 from PrairieAstronomer/readme_irrlicht_change
[dragonfireclient.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 #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 #else
15         #if defined (__ANDROID__)
16                 #define PROJECT_NAME "minetest"
17                 #define PROJECT_NAME_C "Minetest"
18                 #define STATIC_SHAREDIR ""
19                 #define VERSION_STRING STR(VERSION_MAJOR) "." STR(VERSION_MINOR) "." STR(VERSION_PATCH) STR(VERSION_EXTRA)
20         #endif
21         #ifdef NDEBUG
22                 #define BUILD_TYPE "Release"
23         #else
24                 #define BUILD_TYPE "Debug"
25         #endif
26 #endif