2019-12-02 13:30:41 +01:00
|
|
|
ARG img_version
|
2022-08-26 15:39:52 +02:00
|
|
|
FROM godot-fedora:${img_version}
|
2019-12-02 13:30:41 +01:00
|
|
|
|
2022-08-26 15:39:52 +02:00
|
|
|
RUN dnf -y install --setopt=install_weak_deps=False \
|
|
|
|
automake autoconf bzip2-devel cmake gcc gcc-c++ libicu-devel libtool libxml2-devel openssl-devel yasm && \
|
2020-03-19 18:13:06 +01:00
|
|
|
git clone --progress https://github.com/tpoechtrager/osxcross.git && \
|
2019-01-07 21:51:22 +01:00
|
|
|
cd /root/osxcross && \
|
2022-06-22 14:26:01 +02:00
|
|
|
git checkout 17bb5e2d0a46533c1dd525cf4e9a80d88bd9f00e && \
|
2022-05-13 15:08:50 +02:00
|
|
|
ln -s /root/files/MacOSX12.3.sdk.tar.xz /root/osxcross/tarballs && \
|
2022-05-20 22:02:04 +02:00
|
|
|
export UNATTENDED=1 && \
|
|
|
|
# Custom build to ensure we have Clang version matching Xcode SDK.
|
|
|
|
CLANG_VERSION=13.0.1 ENABLE_CLANG_INSTALL=1 INSTALLPREFIX=/usr ./build_clang.sh && \
|
|
|
|
./build.sh && \
|
|
|
|
./build_compiler_rt.sh && \
|
|
|
|
rm -rf /root/osxcross/build
|
2019-11-19 11:16:52 +01:00
|
|
|
|
|
|
|
ENV OSXCROSS_ROOT=/root/osxcross
|
|
|
|
ENV PATH="/root/osxcross/target/bin:${PATH}"
|
2019-08-31 13:05:27 +02:00
|
|
|
|
2019-11-15 11:22:07 +01:00
|
|
|
CMD /bin/bash
|