mirror of
https://github.com/godotengine/build-containers.git
synced 2025-12-31 21:48:41 +03:00
- Fedora 41 - SCons 4.8.1 - MinGW 12.0.0 with GCC 14.2.1 and binutils 2.42 - Xcode 16.2 (macOS 15.2, iOS 18.2)
29 lines
1.1 KiB
Docker
29 lines
1.1 KiB
Docker
ARG img_version
|
|
FROM godot-fedora:${img_version}
|
|
|
|
ENV OSX_SDK=15.2
|
|
|
|
RUN dnf -y install --setopt=install_weak_deps=False \
|
|
automake autoconf bzip2-devel cmake gcc gcc-c++ libdispatch libicu-devel libtool \
|
|
libxml2-devel openssl-devel uuid-devel yasm && \
|
|
git clone --progress https://github.com/tpoechtrager/osxcross && \
|
|
cd /root/osxcross && \
|
|
git checkout 29fe6dd35522073c9df5800f8cd1feb4b9a993a8 && \
|
|
curl -LO https://github.com/tpoechtrager/osxcross/pull/441.patch && \
|
|
git apply 441.patch && \
|
|
ln -s /root/files/MacOSX${OSX_SDK}.sdk.tar.xz /root/osxcross/tarballs && \
|
|
export UNATTENDED=1 && \
|
|
export SDK_VERSION=${OSX_SDK} && \
|
|
# Custom build Apple Clang to ensure compatibility.
|
|
# Find the equivalent LLVM version for the SDK from:
|
|
# https://en.wikipedia.org/wiki/Xcode#Toolchain_versions
|
|
CLANG_VERSION=17.0.6 ENABLE_CLANG_INSTALL=1 INSTALLPREFIX=/usr ./build_apple_clang.sh && \
|
|
./build.sh && \
|
|
./build_compiler_rt.sh && \
|
|
rm -rf /root/osxcross/build
|
|
|
|
ENV OSXCROSS_ROOT=/root/osxcross
|
|
ENV PATH="/root/osxcross/target/bin:${PATH}"
|
|
|
|
CMD /bin/bash
|