summaryrefslogtreecommitdiff
path: root/src/config.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-01-18 15:05:29 +0200
committerPerttu Ahola <celeron55@gmail.com>2011-01-18 15:05:29 +0200
commit3ef2629e847e1e7e239068bbf17bebd6d4ebfc95 (patch)
treed540c1068747ce73862237d80d6d04b15fa58eac /src/config.h
parent515a480d0e82fe77f1aae8115e81d720d7d1775b (diff)
downloadminetest-3ef2629e847e1e7e239068bbf17bebd6d4ebfc95.tar.gz
minetest-3ef2629e847e1e7e239068bbf17bebd6d4ebfc95.tar.bz2
minetest-3ef2629e847e1e7e239068bbf17bebd6d4ebfc95.zip
made old build system to work too. the cmake one doesn't make working binaries for some computers.
--HG-- rename : src/config.h.in => src/cmake_config.h.in
Diffstat (limited to 'src/config.h')
-rw-r--r--src/config.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/config.h b/src/config.h
new file mode 100644
index 000000000..b24cf6a69
--- /dev/null
+++ b/src/config.h
@@ -0,0 +1,28 @@
+/*
+ If CMake is used, includes the cmake-generated cmake_config.h.
+ Otherwise use default values
+*/
+
+#ifndef CONFIG_H
+#define CONFIG_H
+
+#ifdef USE_CMAKE_CONFIG_H
+ #include "cmake_config.h"
+#else
+ //#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
+ #define BUILD_INFO "NON-CMAKE RUN_IN_PLACE="RUN_IN_PLACE_BOOLSTRING" BUILD_TYPE="BUILD_TYPE
+#endif
+
+#endif
+