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"
|
2015-03-28 11:25:34 +01:00
|
|
|
#elif defined (__ANDROID__) || 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 ""
|
2015-03-28 11:25:34 +01:00
|
|
|
#include "android_version.h"
|
|
|
|
#ifdef NDEBUG
|
|
|
|
#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
|
2017-09-26 20:30:42 +02:00
|
|
|
|
|
|
|
#define BUILD_INFO \
|
|
|
|
"BUILD_TYPE=" BUILD_TYPE "\n" \
|
|
|
|
"RUN_IN_PLACE=" STR(RUN_IN_PLACE) "\n" \
|
|
|
|
"USE_GETTEXT=" STR(USE_GETTEXT) "\n" \
|
|
|
|
"USE_SOUND=" STR(USE_SOUND) "\n" \
|
|
|
|
"USE_CURL=" STR(USE_CURL) "\n" \
|
|
|
|
"USE_FREETYPE=" STR(USE_FREETYPE) "\n" \
|
|
|
|
"USE_LUAJIT=" STR(USE_LUAJIT) "\n" \
|
|
|
|
"STATIC_SHAREDIR=" STR(STATIC_SHAREDIR);
|