mirror of
https://github.com/godotengine/build-containers.git
synced 2025-12-31 21:48:41 +03:00
- Fedora 43 - SCons 4.10.1 - MinGW 13.0.0 with GCC 15.2.1 and binutils 2.45 - Emscripten 4.0.20 - Xcode 26.1.1
41 lines
1.6 KiB
Docker
41 lines
1.6 KiB
Docker
ARG img_version
|
|
FROM godot-osx:${img_version}
|
|
|
|
RUN dnf -y install --setopt=install_weak_deps=False \
|
|
automake autoconf gcc gcc-c++ gcc-objc gcc-objc++ cmake libicu-devel libtool libxml2-devel openssl-devel perl python yasm
|
|
|
|
RUN git clone --depth 1 --no-checkout https://github.com/tpoechtrager/cctools-port.git && \
|
|
cd /root/cctools-port && \
|
|
git fetch --depth 1 origin 1cce4a06877992f708b2e0e2ab217a0cfb923a4f && \
|
|
git checkout 1cce4a06877992f708b2e0e2ab217a0cfb923a4f
|
|
|
|
COPY files/appleembedded/build.sh /root/cctools-port/usage_examples/ios_toolchain/build.sh
|
|
COPY files/appleembedded/wrapper.c /root/cctools-port/usage_examples/ios_toolchain/wrapper.c
|
|
|
|
RUN chmod +x /root/cctools-port/usage_examples/ios_toolchain/build.sh
|
|
|
|
RUN cd /root/cctools-port && \
|
|
usage_examples/ios_toolchain/build.sh arm64 && \
|
|
mkdir -p /root/ioscross/arm64 && \
|
|
mv usage_examples/ios_toolchain/target/* /root/ioscross/arm64 && \
|
|
mkdir /root/ioscross/arm64/usr && \
|
|
ln -s /root/ioscross/arm64/bin /root/ioscross/arm64/usr/bin
|
|
|
|
RUN cd /root/cctools-port && \
|
|
usage_examples/ios_toolchain/build.sh x86_64 && \
|
|
mkdir -p /root/ioscross/x86_64 && \
|
|
mv usage_examples/ios_toolchain/target/* /root/ioscross/x86_64 && \
|
|
mkdir /root/ioscross/x86_64/usr && \
|
|
ln -s /root/ioscross/x86_64/bin /root/ioscross/x86_64/usr/bin
|
|
|
|
RUN PATH=/root/ioscross/arm64/bin:$PATH /root/files/appleembedded/check-arm.sh
|
|
|
|
ENV OSXCROSS_IOS=not_nothing
|
|
ENV OSXCROSS_TVOS=not_nothing
|
|
ENV OSXCROSS_VISIONOS=not_nothing
|
|
ENV OSXCROSS_APPLEEMBEDDED=not_nothing
|
|
|
|
ENV PATH="/root/ioscross/arm64/bin:/root/ioscross/x86_64/bin:${PATH}"
|
|
|
|
CMD /bin/bash
|