Add STATIC_LOCALEDIR to BUILD_INFO and move it to version.cpp
authorsfan5 <sfan5@live.de>
Sat, 25 Apr 2020 13:24:42 +0000 (15:24 +0200)
committersfan5 <sfan5@live.de>
Mon, 27 Apr 2020 15:50:05 +0000 (17:50 +0200)
src/config.h
src/version.cpp

index 9d58a8cc1740675c3bf39e99edd7c74adb9b8fdd..5e116464213765b6546e7be4e691f1066ae077e8 100644 (file)
                #define BUILD_TYPE "Debug"
        #endif
 #endif
-
-#define BUILD_INFO \
-       "BUILD_TYPE=" BUILD_TYPE "\n"          \
-       "RUN_IN_PLACE=" STR(RUN_IN_PLACE) "\n" \
-       "USE_GETTEXT=" STR(USE_GETTEXT) "\n"   \
-       "USE_SOUND=" STR(USE_SOUND) "\n"       \
-       "USE_CURL=" STR(USE_CURL) "\n"         \
-       "USE_FREETYPE=" STR(USE_FREETYPE) "\n" \
-       "USE_LUAJIT=" STR(USE_LUAJIT) "\n"     \
-       "STATIC_SHAREDIR=" STR(STATIC_SHAREDIR);
index ae5ca34125ffe49d2d9894018d390df2482d43f5..241228a6acdd9ab3c3363f5802861d286da2829d 100644 (file)
@@ -30,4 +30,16 @@ with this program; if not, write to the Free Software Foundation, Inc.,
 
 const char *g_version_string = VERSION_STRING;
 const char *g_version_hash = VERSION_GITHASH;
-const char *g_build_info = BUILD_INFO;
+const char *g_build_info =
+       "BUILD_TYPE=" BUILD_TYPE "\n"
+       "RUN_IN_PLACE=" STR(RUN_IN_PLACE) "\n"
+       "USE_GETTEXT=" STR(USE_GETTEXT) "\n"
+       "USE_SOUND=" STR(USE_SOUND) "\n"
+       "USE_CURL=" STR(USE_CURL) "\n"
+       "USE_FREETYPE=" STR(USE_FREETYPE) "\n"
+       "USE_LUAJIT=" STR(USE_LUAJIT) "\n"
+       "STATIC_SHAREDIR=" STR(STATIC_SHAREDIR)
+#if USE_GETTEXT && defined(STATIC_LOCALEDIR)
+       "\n" "STATIC_LOCALEDIR=" STR(STATIC_LOCALEDIR)
+#endif
+;