From 5a47b12b9ee119bab1209a84ab7d511ee0ab553c Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Wed, 10 Feb 2021 16:33:30 +0200 Subject: [PATCH 8/8] installer_cross: Enable nls when possible Qt-client still does not build with nls enabled in crosser environment, so leave it disabled when ever Qt-client is being built. See osdn #41546 Signed-off-by: Marko Lindqvist --- windows/installer_cross/winbuild.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/windows/installer_cross/winbuild.sh b/windows/installer_cross/winbuild.sh index 20fd33d120..324144f895 100755 --- a/windows/installer_cross/winbuild.sh +++ b/windows/installer_cross/winbuild.sh @@ -80,7 +80,8 @@ elif test "x$2" != "x" ; then gtk3) FCMP="gtk3" ;; sdl2) FCMP="gtk3" ;; gtk3.22) FCMP="gtk3" ;; - qt) FCMP="qt" ;; + qt) FCMP="qt" + NLS="--disable-nls" ;; *) echo "Unknown gui \"$2\"!" >&2 exit 1 ;; esac @@ -124,6 +125,7 @@ if test "x$SINGLE_GUI" != "xtrue" ; then then CLIENTS="$CLIENTS,qt" FCMP="$FCMP,qt" + NLS="--disable-nls" fi fi @@ -152,7 +154,7 @@ else GITREVP="" fi -if ! ../../../configure MOCCMD=${DLLSPATH}/bin/moc FREECIV_LABEL_FORCE="-crs" CPPFLAGS="-I${DLLSPATH}/include -D_WIN32_WINNT=${MIN_WINVER}" CFLAGS="-Wno-error" PKG_CONFIG_LIBDIR="${DLLSPATH}/lib/pkgconfig" --enable-sys-tolua-cmd --with-magickwand="${DLLSPATH}/bin" --prefix="/" $GITREVP --enable-client=$CLIENTS --enable-fcmp=$FCMP --enable-debug --disable-nls --host=$TARGET --build=$(../../../bootstrap/config.guess) --with-libiconv-prefix=${DLLSPATH} --with-sqlite3-prefix=${DLLSPATH} --with-followtag="crosser" --enable-crosser ${AIS} --disable-freeciv-manual --enable-sdl-mixer=sdl2 --with-qt5-includes=${DLLSPATH}/include --with-qt5-libs=${DLLSPATH}/lib --with-tinycthread --enable-server=$SERVER --enable-ruledit=$RULEDIT $EXTRA_CONFIG +if ! ../../../configure MOCCMD=${DLLSPATH}/bin/moc FREECIV_LABEL_FORCE="-crs" CPPFLAGS="-I${DLLSPATH}/include -D_WIN32_WINNT=${MIN_WINVER}" CFLAGS="-Wno-error" PKG_CONFIG_LIBDIR="${DLLSPATH}/lib/pkgconfig" --enable-sys-tolua-cmd --with-magickwand="${DLLSPATH}/bin" --prefix="/" $GITREVP --enable-client=$CLIENTS --enable-fcmp=$FCMP --enable-debug ${NLS} --host=$TARGET --build=$(../../../bootstrap/config.guess) --with-libiconv-prefix=${DLLSPATH} --with-sqlite3-prefix=${DLLSPATH} --with-followtag="crosser" --enable-crosser ${AIS} --disable-freeciv-manual --enable-sdl-mixer=sdl2 --with-qt5-includes=${DLLSPATH}/include --with-qt5-libs=${DLLSPATH}/lib --with-tinycthread --enable-server=$SERVER --enable-ruledit=$RULEDIT $EXTRA_CONFIG then echo "Configure failed" >&2 exit 1 -- 2.30.0