2011-01-18 14:05:29 +01:00
|
|
|
/*
|
|
|
|
If CMake is used, includes the cmake-generated cmake_config.h.
|
|
|
|
Otherwise use default values
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CONFIG_H
|
|
|
|
#define CONFIG_H
|
|
|
|
|
2015-02-28 00:05:29 +01:00
|
|
|
#define STRINGIFY(x) #x
|
|
|
|
#define STR(x) STRINGIFY(x)
|
2014-04-21 14:10:59 +02:00
|
|
|
|
|
|
|
|
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"
|
2016-05-03 03:21:56 +02:00
|
|
|
#elif defined (__ANDROID__)
|
2015-12-11 10:18:54 +01:00
|
|
|
#define PROJECT_NAME "MultiCraft"
|
|
|
|
#define PROJECT_NAME_C "MultiCraft"
|
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
|
2016-11-05 23:14:16 +01:00
|
|
|
#elif defined (__IOS__)
|
|
|
|
#define PROJECT_NAME "MultiCraft"
|
|
|
|
#define PROJECT_NAME_C "MultiCraft"
|
|
|
|
#define STATIC_SHAREDIR ""
|
|
|
|
#define VERSION_MAJOR 1
|
|
|
|
#define VERSION_MINOR 1
|
2018-05-27 13:31:00 +02:00
|
|
|
#define VERSION_PATCH 10
|
|
|
|
#define VERSION_STRING "1.1.10"
|
2016-11-05 23:14:16 +01:00
|
|
|
#ifdef NDEBUG
|
|
|
|
#define BUILD_TYPE "Release"
|
|
|
|
#else
|
|
|
|
#define BUILD_TYPE "Debug"
|
|
|
|
#endif
|
2015-03-28 11:25:34 +01:00
|
|
|
#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
|
|
|
|
|
2015-02-28 00:05:29 +01:00
|
|
|
#define BUILD_INFO "BUILD_TYPE=" BUILD_TYPE \
|
|
|
|
" RUN_IN_PLACE=" STR(RUN_IN_PLACE) \
|
|
|
|
" USE_GETTEXT=" STR(USE_GETTEXT) \
|
|
|
|
" USE_SOUND=" STR(USE_SOUND) \
|
|
|
|
" USE_CURL=" STR(USE_CURL) \
|
|
|
|
" USE_FREETYPE=" STR(USE_FREETYPE) \
|
|
|
|
" USE_LUAJIT=" STR(USE_LUAJIT) \
|
|
|
|
" STATIC_SHAREDIR=" STR(STATIC_SHAREDIR)
|
|
|
|
|
2011-01-18 14:05:29 +01:00
|
|
|
#endif
|