2011-01-18 08:05:29 -05:00
|
|
|
/*
|
|
|
|
If CMake is used, includes the cmake-generated cmake_config.h.
|
|
|
|
Otherwise use default values
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef CONFIG_H
|
|
|
|
#define CONFIG_H
|
|
|
|
|
2012-03-23 08:01:14 -04:00
|
|
|
#define PROJECT_NAME "Minetest"
|
2012-07-23 08:23:33 -04:00
|
|
|
#define RUN_IN_PLACE 0
|
2014-04-21 08:10:59 -04:00
|
|
|
#define STATIC_SHAREDIR ""
|
|
|
|
|
2012-03-23 08:01:14 -04:00
|
|
|
#define USE_GETTEXT 0
|
2014-04-21 08:10:59 -04:00
|
|
|
|
2014-04-06 04:48:04 -04:00
|
|
|
#ifndef USE_SOUND
|
|
|
|
#define USE_SOUND 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef USE_CURL
|
|
|
|
#define USE_CURL 0
|
|
|
|
#endif
|
|
|
|
|
2014-04-21 08:10:59 -04:00
|
|
|
#ifndef USE_FREETYPE
|
|
|
|
#define USE_FREETYPE 0
|
|
|
|
#endif
|
2014-04-06 04:48:04 -04:00
|
|
|
|
|
|
|
#ifndef USE_LEVELDB
|
|
|
|
#define USE_LEVELDB 0
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef USE_LUAJIT
|
|
|
|
#define USE_LUAJIT 0
|
|
|
|
#endif
|
2012-03-23 08:01:14 -04:00
|
|
|
|
2014-04-08 15:39:21 -04:00
|
|
|
#ifndef USE_REDIS
|
|
|
|
#define USE_REDIS 0
|
|
|
|
#endif
|
|
|
|
|
2014-11-16 21:52:24 -05:00
|
|
|
#define HAVE_ENDIAN_H 0
|
|
|
|
|
2011-01-18 08:05:29 -05:00
|
|
|
#ifdef USE_CMAKE_CONFIG_H
|
|
|
|
#include "cmake_config.h"
|
2012-03-23 08:01:14 -04:00
|
|
|
#undef PROJECT_NAME
|
|
|
|
#define PROJECT_NAME CMAKE_PROJECT_NAME
|
2012-07-23 08:23:33 -04:00
|
|
|
#undef RUN_IN_PLACE
|
|
|
|
#define RUN_IN_PLACE CMAKE_RUN_IN_PLACE
|
2012-03-23 08:01:14 -04:00
|
|
|
#undef USE_GETTEXT
|
|
|
|
#define USE_GETTEXT CMAKE_USE_GETTEXT
|
2012-03-24 21:03:51 -04:00
|
|
|
#undef USE_SOUND
|
|
|
|
#define USE_SOUND CMAKE_USE_SOUND
|
2012-12-14 06:30:17 -05:00
|
|
|
#undef USE_CURL
|
|
|
|
#define USE_CURL CMAKE_USE_CURL
|
2013-02-03 07:19:09 -05:00
|
|
|
#undef USE_FREETYPE
|
|
|
|
#define USE_FREETYPE CMAKE_USE_FREETYPE
|
2012-07-23 08:23:33 -04:00
|
|
|
#undef STATIC_SHAREDIR
|
|
|
|
#define STATIC_SHAREDIR CMAKE_STATIC_SHAREDIR
|
2012-10-22 17:18:44 -04:00
|
|
|
#undef USE_LEVELDB
|
|
|
|
#define USE_LEVELDB CMAKE_USE_LEVELDB
|
2013-12-18 16:35:55 -05:00
|
|
|
#undef USE_LUAJIT
|
|
|
|
#define USE_LUAJIT CMAKE_USE_LUAJIT
|
2014-04-08 15:39:21 -04:00
|
|
|
#undef USE_REDIS
|
|
|
|
#define USE_REDIS CMAKE_USE_REDIS
|
2014-03-02 17:49:19 -05:00
|
|
|
#undef VERSION_MAJOR
|
|
|
|
#define VERSION_MAJOR CMAKE_VERSION_MAJOR
|
|
|
|
#undef VERSION_MINOR
|
|
|
|
#define VERSION_MINOR CMAKE_VERSION_MINOR
|
|
|
|
#undef VERSION_PATCH
|
|
|
|
#define VERSION_PATCH CMAKE_VERSION_PATCH
|
|
|
|
#undef VERSION_PATCH_ORIG
|
|
|
|
#define VERSION_PATCH_ORIG CMAKE_VERSION_PATCH_ORIG
|
|
|
|
#undef VERSION_STRING
|
|
|
|
#define VERSION_STRING CMAKE_VERSION_STRING
|
|
|
|
#undef PRODUCT_VERSION_STRING
|
|
|
|
#define PRODUCT_VERSION_STRING CMAKE_PRODUCT_VERSION_STRING
|
|
|
|
#undef VERSION_EXTRA_STRING
|
|
|
|
#define VERSION_EXTRA_STRING CMAKE_VERSION_EXTRA_STRING
|
2014-11-16 21:52:24 -05:00
|
|
|
#undef HAVE_ENDIAN_H
|
|
|
|
#define HAVE_ENDIAN_H CMAKE_HAVE_ENDIAN_H
|
2011-01-18 08:05:29 -05:00
|
|
|
#endif
|
2012-03-23 08:01:14 -04:00
|
|
|
|
2014-10-01 16:18:29 -04:00
|
|
|
#ifdef __ANDROID__
|
|
|
|
#include "android_version.h"
|
|
|
|
#define VERSION_STRING CMAKE_VERSION_STRING
|
|
|
|
#endif
|
|
|
|
|
2011-01-18 08:05:29 -05:00
|
|
|
#endif
|
|
|
|
|