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
|
|
|
|
2024-06-19 15:23:30 +02:00
|
|
|
ENV OSX_SDK=14.5
|
2024-01-30 19:56:32 +01:00
|
|
|
|
2022-08-26 15:39:52 +02:00
|
|
|
RUN dnf -y install --setopt=install_weak_deps=False \
|
Update to Fedora 39, update all toolchains
- Base image: Fedora 39
- SCons: 4.5.2
- Linux: GCC 10.2.0 built against glibc 2.19, binutils 2.35.1
- Windows: MinGW 11.0.0, GCC 13.2.1, binutils 2.40
- Web: Emscripten 3.1.39
- Android: Android NDK 23.2.8568313, build-tools 33.0.2, platform android-33, CMake 3.22.1, JDK 17
CMake 3.22.1, JDK 17
- 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
Switches macOS/iOS builds to use Apple Clang, to maximize compatibility with
upstream Xcode.
Also add gettext which is needed by Godot build scripts to compile PO files
to MO.
2023-09-04 10:10:35 +02:00
|
|
|
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 && \
|
2019-01-07 21:51:22 +01:00
|
|
|
cd /root/osxcross && \
|
2024-01-30 19:56:32 +01:00
|
|
|
git checkout ff8d100f3f026b4ffbe4ce96d8aac4ce06f1278b && \
|
|
|
|
curl -LO https://github.com/tpoechtrager/osxcross/pull/415.patch && \
|
|
|
|
git apply 415.patch && \
|
|
|
|
ln -s /root/files/MacOSX${OSX_SDK}.sdk.tar.xz /root/osxcross/tarballs && \
|
2022-05-20 22:02:04 +02:00
|
|
|
export UNATTENDED=1 && \
|
2024-01-30 19:56:32 +01:00
|
|
|
export SDK_VERSION=${OSX_SDK} && \
|
Update to Fedora 39, update all toolchains
- Base image: Fedora 39
- SCons: 4.5.2
- Linux: GCC 10.2.0 built against glibc 2.19, binutils 2.35.1
- Windows: MinGW 11.0.0, GCC 13.2.1, binutils 2.40
- Web: Emscripten 3.1.39
- Android: Android NDK 23.2.8568313, build-tools 33.0.2, platform android-33, CMake 3.22.1, JDK 17
CMake 3.22.1, JDK 17
- 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
Switches macOS/iOS builds to use Apple Clang, to maximize compatibility with
upstream Xcode.
Also add gettext which is needed by Godot build scripts to compile PO files
to MO.
2023-09-04 10:10:35 +02:00
|
|
|
# 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=16.0.0 ENABLE_CLANG_INSTALL=1 INSTALLPREFIX=/usr ./build_apple_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
|