Place project name and gettext use in config
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sat, 23 Jul 2011 13:47:09 +0000 (15:47 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 24 Jul 2011 07:18:29 +0000 (09:18 +0200)
src/cmake_config.h.in
src/config.h

index 5e375191fb6af08cdaa0c2a86a5248c6aa02752f..6a8f93bac244a8f1c5aef650ba0b9d8fae663ad3 100644 (file)
@@ -3,6 +3,7 @@
 #ifndef CMAKE_CONFIG_H
 #define CMAKE_CONFIG_H
 
+#define PROJECT_NAME "@PROJECT_NAME@"
 #define INSTALL_PREFIX "@CMAKE_INSTALL_PREFIX@"
 #define VERSION_STRING "@VERSION_STRING@"
 #ifdef NDEBUG
@@ -10,7 +11,7 @@
 #else
        #define BUILD_TYPE "Debug"
 #endif
-#define BUILD_INFO "VER="VERSION_STRING" RUN_IN_PLACE=@RUN_IN_PLACE@ INSTALL_PREFIX=@CMAKE_INSTALL_PREFIX@ BUILD_TYPE="BUILD_TYPE
+#define BUILD_INFO "VER="VERSION_STRING" RUN_IN_PLACE=@RUN_IN_PLACE@ USE_GETTEXT=@USE_GETTEXT@ INSTALL_PREFIX=@CMAKE_INSTALL_PREFIX@ BUILD_TYPE="BUILD_TYPE
 
 #endif
 
index b24cf6a69d675d8936a934b0b6315be85ed32d7b..eb1d1a9aa507fd202d5ac7b28d198bbf4be30b04 100644 (file)
@@ -9,6 +9,8 @@
 #ifdef USE_CMAKE_CONFIG_H
        #include "cmake_config.h"
 #else
+       #define PROJECT_NAME "minetest"
+
        //#define INSTALL_PREFIX ""
        #define VERSION_STRING "unknown"
        #ifdef NDEBUG
        #else
                #define RUN_IN_PLACE_BOOLSTRING "0"
        #endif
-       #define BUILD_INFO "NON-CMAKE RUN_IN_PLACE="RUN_IN_PLACE_BOOLSTRING" BUILD_TYPE="BUILD_TYPE
+       #ifdef USE_GETTEXT
+               #define USE_GETTEXT_BOOLSTRING "ON"
+       #else
+               #define USE_GETTEXT_BOOLSTRING "OFF"
+       #endif
+       #define BUILD_INFO "NON-CMAKE RUN_IN_PLACE="RUN_IN_PLACE_BOOLSTRING" USE_GETTEXT="USE_GETTEXT_BOOLSTRING" BUILD_TYPE="BUILD_TYPE
 #endif
 
 #endif