2011-01-18 14:05:29 +01:00
|
|
|
/*
|
|
|
|
If CMake is used, includes the cmake-generated cmake_config.h.
|
|
|
|
Otherwise use default values
|
|
|
|
*/
|
|
|
|
|
2017-08-17 22:19:39 +02:00
|
|
|
#pragma once
|
2011-01-18 14:05:29 +01:00
|
|
|
|
2017-09-26 20:30:42 +02:00
|
|
|
#define STRINGIFY(x) #x
|
|
|
|
#define STR(x) STRINGIFY(x)
|
|
|
|
|
|
|
|
|
2015-03-28 11:25:34 +01:00
|
|
|
#if defined USE_CMAKE_CONFIG_H
|
2015-02-28 00:05:29 +01:00
|
|
|
#include "cmake_config.h"
|
2020-04-15 16:27:40 +02:00
|
|
|
#elif defined (__ANDROID__)
|
2015-04-27 16:17:10 +02:00
|
|
|
#define PROJECT_NAME "minetest"
|
|
|
|
#define PROJECT_NAME_C "Minetest"
|
2015-02-28 00:05:29 +01:00
|
|
|
#define STATIC_SHAREDIR ""
|
2020-04-15 16:27:40 +02:00
|
|
|
#define VERSION_STRING STR(VERSION_MAJOR) "." STR(VERSION_MINOR) "." STR(VERSION_PATCH) STR(VERSION_EXTRA)
|
|
|
|
#ifdef NDEBUG
|
2015-03-28 11:25:34 +01:00
|
|
|
#define BUILD_TYPE "Release"
|
|
|
|
#else
|
|
|
|
#define BUILD_TYPE "Debug"
|
|
|
|
#endif
|
|
|
|
#else
|
2015-02-28 00:05:29 +01:00
|
|
|
#ifdef NDEBUG
|
|
|
|
#define BUILD_TYPE "Release"
|
|
|
|
#else
|
|
|
|
#define BUILD_TYPE "Debug"
|
|
|
|
#endif
|
2014-10-01 22:18:29 +02:00
|
|
|
#endif
|