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 \
|
2022-11-03 12:34:10 +01:00
|
|
|
automake autoconf bzip2-devel cmake gcc gcc-c++ libicu-devel libtool libxml2-devel openssl-devel yasm \
|
|
|
|
clang llvm-devel && \
|
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-11-03 12:34:10 +01:00
|
|
|
git checkout 50e86ebca7d14372febd0af8cd098705049161b9 && \
|
|
|
|
ln -s /root/files/MacOSX13.0.sdk.tar.xz /root/osxcross/tarballs && \
|
2022-05-20 22:02:04 +02:00
|
|
|
export UNATTENDED=1 && \
|
2022-11-03 12:34:10 +01:00
|
|
|
# Custom build Clang if the Fedora version doesn't match the Xcode SDK.
|
|
|
|
#CLANG_VERSION=14.0.6 ENABLE_CLANG_INSTALL=1 INSTALLPREFIX=/usr ./build_clang.sh && \
|
2022-05-20 22:02:04 +02:00
|
|
|
./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
|