summaryrefslogtreecommitdiff
path: root/src/config.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-03-23 14:01:14 +0200
committerPerttu Ahola <celeron55@gmail.com>2012-03-24 04:24:25 +0200
commit0ac2ce7dea133fd0b71a12ca3c2f3ce463d48440 (patch)
treec356b92dee53a90615ed403bd1c702c887b98b6f /src/config.h
parentc301e3c82af4ad384f4baaa8244b3a5f26da5213 (diff)
downloadminetest-0ac2ce7dea133fd0b71a12ca3c2f3ce463d48440.tar.gz
minetest-0ac2ce7dea133fd0b71a12ca3c2f3ce463d48440.tar.bz2
minetest-0ac2ce7dea133fd0b71a12ca3c2f3ce463d48440.zip
Update/fix/improve config.h and cmake_config.h.in
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h42
1 files changed, 20 insertions, 22 deletions
diff --git a/src/config.h b/src/config.h
index 54b89a060..a4a1d351a 100644
--- a/src/config.h
+++ b/src/config.h
@@ -6,30 +6,28 @@
#ifndef CONFIG_H
#define CONFIG_H
+#define PROJECT_NAME "Minetest"
+#define VERSION_STRING "unknown"
+#define BUILD_TYPE "unknown"
+#define USE_GETTEXT 0
+#define USE_AUDIO 0
+#define BUILD_INFO "non-cmake"
+
#ifdef USE_CMAKE_CONFIG_H
#include "cmake_config.h"
-#else
- #define PROJECT_NAME "minetest"
-
- //#define INSTALL_PREFIX ""
- #define VERSION_STRING "unknown"
- #ifdef NDEBUG
- #define BUILD_TYPE "Release"
- #else
- #define BUILD_TYPE "Debug"
- #endif
- #ifdef RUN_IN_PLACE
- #define RUN_IN_PLACE_BOOLSTRING "1"
- #else
- #define RUN_IN_PLACE_BOOLSTRING "0"
- #endif
- #if USE_GETTEXT
- #define USE_GETTEXT_BOOLSTRING "1"
- #else
- #define USE_GETTEXT_BOOLSTRING "0"
- #endif
-
- #define BUILD_INFO "NON-CMAKE RUN_IN_PLACE="RUN_IN_PLACE_BOOLSTRING" USE_GETTEXT="USE_GETTEXT_BOOLSTRING" BUILD_TYPE="BUILD_TYPE
+ #undef PROJECT_NAME
+ #define PROJECT_NAME CMAKE_PROJECT_NAME
+ #undef VERSION_STRING
+ #define VERSION_STRING CMAKE_VERSION_STRING
+ #undef BUILD_INFO
+ #define BUILD_INFO CMAKE_BUILD_INFO
+ #undef USE_GETTEXT
+ #define USE_GETTEXT CMAKE_USE_GETTEXT
+ #undef USE_AUDIO
+ #define USE_AUDIO CMAKE_USE_AUDIO
+ #undef BUILD_INFO
+ #define BUILD_INFO CMAKE_BUILD_INFO
#endif
+
#endif