mirror of
https://github.com/godotengine/build-containers.git
synced 2026-01-05 22:10:22 +03:00
Syncs with the config of the current `main` branch (as used for 4.2+) as far as possible (backports the last couple of years of PRs, minus the removal of some platforms and of the Mono builds). Notably backports #128 and #131, giving us these toolchains: - Base image: Fedora 39 - Mono version: 6.12.0.198 - SCons: 4.5.2 - Linux: GCC 13.2.0 built against glibc 2.28, binutils 2.40, from our own [Linux SDK](https://github.com/godotengine/buildroot) - Windows: MinGW 11.0.0, GCC 13.2.1, binutils 2.40 - HTML5: Emscripten 3.1.39 (standard builds), Emscripten 1.39.9 (Mono builds) - Android: Android NDK 23.2.8568313, build-tools 33.0.2, platform android-33, CMake 3.22.1, JDK 11 - macOS: Xcode 15.0 with Apple Clang (LLVM 16.0.0), MacOSX SDK 14.0 - iOS: Xcode 15.0 with Apple Clang (LLVM 16.0.0), iPhoneOS SDK 17.0 - UWP: Unchanged, current Dockerfile still unsupported
57 lines
2.7 KiB
Docker
57 lines
2.7 KiB
Docker
ARG img_version
|
|
FROM godot-mono:${img_version}
|
|
|
|
ARG mono_version
|
|
|
|
ENV GODOT_SDK_LINUX_X86_64=/root/x86_64-godot-linux-gnu_sdk-buildroot
|
|
ENV GODOT_SDK_LINUX_X86_32=/root/i686-godot-linux-gnu_sdk-buildroot
|
|
ENV GODOT_SDK_LINUX_ARM64=/root/aarch64-godot-linux-gnu_sdk-buildroot
|
|
ENV GODOT_SDK_LINUX_ARM32=/root/arm-godot-linux-gnueabihf_sdk-buildroot
|
|
ENV BASE_PATH=${PATH}
|
|
|
|
RUN dnf -y install --setopt=install_weak_deps=False \
|
|
libxcrypt-compat yasm && \
|
|
curl -LO https://downloads.tuxfamily.org/godotengine/toolchains/linux/2023-12-11/x86_64-godot-linux-gnu_sdk-buildroot.tar.bz2 && \
|
|
tar xf x86_64-godot-linux-gnu_sdk-buildroot.tar.bz2 && \
|
|
rm -f x86_64-godot-linux-gnu_sdk-buildroot.tar.bz2 && \
|
|
cd x86_64-godot-linux-gnu_sdk-buildroot && \
|
|
./relocate-sdk.sh && \
|
|
rm -f bin/{aclocal*,auto*,libtool*,m4} && \
|
|
cd /root && \
|
|
curl -LO https://downloads.tuxfamily.org/godotengine/toolchains/linux/2023-12-11/i686-godot-linux-gnu_sdk-buildroot.tar.bz2 && \
|
|
tar xf i686-godot-linux-gnu_sdk-buildroot.tar.bz2 && \
|
|
rm -f i686-godot-linux-gnu_sdk-buildroot.tar.bz2 && \
|
|
cd i686-godot-linux-gnu_sdk-buildroot && \
|
|
./relocate-sdk.sh && \
|
|
rm -f bin/{aclocal*,auto*,libtool*,m4} && \
|
|
cd /root && \
|
|
curl -LO https://downloads.tuxfamily.org/godotengine/toolchains/linux/2023-12-11/aarch64-godot-linux-gnu_sdk-buildroot.tar.bz2 && \
|
|
tar xf aarch64-godot-linux-gnu_sdk-buildroot.tar.bz2 && \
|
|
rm -f aarch64-godot-linux-gnu_sdk-buildroot.tar.bz2 && \
|
|
cd aarch64-godot-linux-gnu_sdk-buildroot && \
|
|
./relocate-sdk.sh && \
|
|
rm -f bin/{aclocal*,auto*,libtool*,m4} && \
|
|
cd /root && \
|
|
curl -LO https://downloads.tuxfamily.org/godotengine/toolchains/linux/2023-12-11/arm-godot-linux-gnueabihf_sdk-buildroot.tar.bz2 && \
|
|
tar xf arm-godot-linux-gnueabihf_sdk-buildroot.tar.bz2 && \
|
|
rm -f arm-godot-linux-gnueabihf_sdk-buildroot.tar.bz2 && \
|
|
cd arm-godot-linux-gnueabihf_sdk-buildroot && \
|
|
./relocate-sdk.sh && \
|
|
rm -f bin/{aclocal*,auto*,libtool*,m4} && \
|
|
cp -a /root/files/${mono_version} /root && \
|
|
export MONO_SOURCE_ROOT=/root/${mono_version} && \
|
|
cd /root/${mono_version}/godot-mono-builds && \
|
|
export PATH=${GODOT_SDK_LINUX_X86_64}/bin:${BASE_PATH} && \
|
|
python3 linux.py configure -j --target=x86_64 && \
|
|
python3 linux.py make -j --target=x86_64 && \
|
|
export PATH=${GODOT_SDK_LINUX_X86_32}/bin:${BASE_PATH} && \
|
|
python3 linux.py configure -j --target=x86 && \
|
|
python3 linux.py make -j --target=x86 && \
|
|
export PATH=${GODOT_SDK_LINUX_X86_64}/bin:${BASE_PATH} && \
|
|
python3 bcl.py make -j --product=desktop && \
|
|
python3 linux.py copy-bcl --target=x86_64 --target=x86 && \
|
|
cd /root && \
|
|
rm -rf /root/${mono_version}
|
|
|
|
CMD /bin/bash
|