From 72cb40ffad0df24b1f3f3012d466bdea43d98ba3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Tue, 14 Feb 2023 11:20:33 +0100 Subject: [PATCH] Install gettext in all editor build containers This enables compiling the PO files to smaller binary MO files, reducing the size of the editor binary which embeds them. gettext will be added to the base container but I haven't done it yet, so for now adding it manually here. --- build-android/build.sh | 2 ++ build-ios/build.sh | 2 ++ build-linux/build.sh | 2 ++ build-macos/build.sh | 2 ++ build-mono-glue/build.sh | 1 + build-web/build.sh | 2 ++ build-windows/build.sh | 2 ++ 7 files changed, 13 insertions(+) diff --git a/build-android/build.sh b/build-android/build.sh index 1b2abcb..2db0110 100755 --- a/build-android/build.sh +++ b/build-android/build.sh @@ -16,6 +16,8 @@ tar xf /root/godot.tar.gz --strip-components=1 # Classical +dnf -y install gettext + if [ "${CLASSICAL}" == "1" ]; then echo "Starting classical build for Android..." diff --git a/build-ios/build.sh b/build-ios/build.sh index 127ca6b..9073e97 100755 --- a/build-ios/build.sh +++ b/build-ios/build.sh @@ -21,6 +21,8 @@ tar xf /root/godot.tar.gz --strip-components=1 # Classical +dnf -y install gettext + if [ "${CLASSICAL}" == "1" ]; then echo "Starting classical build for iOS..." diff --git a/build-linux/build.sh b/build-linux/build.sh index a52cd19..7796417 100755 --- a/build-linux/build.sh +++ b/build-linux/build.sh @@ -17,6 +17,8 @@ tar xf /root/godot.tar.gz --strip-components=1 # pkg-config wrongly points to lib instead of lib64 for arch-dependent header. sed -i ${GODOT_SDK_LINUX_X86_64}/x86_64-godot-linux-gnu/sysroot/usr/lib/pkgconfig/dbus-1.pc -e "s@/lib@/lib64@g" +dnf -y install gettext + # Classical if [ "${CLASSICAL}" == "1" ]; then diff --git a/build-macos/build.sh b/build-macos/build.sh index 40b6ed1..afd6313 100755 --- a/build-macos/build.sh +++ b/build-macos/build.sh @@ -17,6 +17,8 @@ tar xf /root/godot.tar.gz --strip-components=1 # Classical +dnf -y install gettext + if [ "${CLASSICAL}" == "1" ]; then echo "Starting classical build for macOS..." diff --git a/build-mono-glue/build.sh b/build-mono-glue/build.sh index f8b1b9a..9376c3b 100755 --- a/build-mono-glue/build.sh +++ b/build-mono-glue/build.sh @@ -20,6 +20,7 @@ sed -i ${GODOT_SDK_LINUX_X86_64}/x86_64-godot-linux-gnu/sysroot/usr/lib/pkgconfi # Temporarily until we make --headless mode actually skip X11. dnf install -y libX11 libXcursor libXrandr libXinerama libXi mesa-libGL +dnf -y install gettext # Mono diff --git a/build-web/build.sh b/build-web/build.sh index 073433a..8af477b 100755 --- a/build-web/build.sh +++ b/build-web/build.sh @@ -29,6 +29,8 @@ tar xf /root/godot.tar.gz --strip-components=1 # Classical +dnf -y install gettext + if [ "${CLASSICAL}" == "1" ]; then echo "Starting classical build for Web..." diff --git a/build-windows/build.sh b/build-windows/build.sh index c5a3177..6a16937 100755 --- a/build-windows/build.sh +++ b/build-windows/build.sh @@ -16,6 +16,8 @@ tar xf /root/godot.tar.gz --strip-components=1 # Classical +dnf -y install gettext + if [ "${CLASSICAL}" == "1" ]; then echo "Starting classical build for Windows..."