mirror of
https://github.com/godotengine/build-containers.git
synced 2025-12-31 21:48:41 +03:00
- 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.
36 lines
1.4 KiB
Docker
36 lines
1.4 KiB
Docker
ARG img_version
|
|
FROM godot-fedora:${img_version}
|
|
|
|
RUN dnf -y install --setopt=install_weak_deps=False \
|
|
clang xar xar-devel xz-devel cpio && \
|
|
git clone --progress https://github.com/nrosenstein-stuff/pbzx && \
|
|
cd pbzx && \
|
|
git checkout bf536e167f2e514866f91d7baa0df1dff5a13711 && \
|
|
clang -O3 -llzma -lxar -I /usr/local/include pbzx.c -o pbzx
|
|
|
|
ENV XCODE_SDKV=
|
|
ENV OSX_SDKV=
|
|
ENV IOS_SDKV=
|
|
|
|
CMD mkdir -p /root/xcode && \
|
|
cd /root/xcode && \
|
|
xar -xf /root/files/Xcode_${XCODE_SDKV}.xip && \
|
|
/root/pbzx/pbzx -n Content | cpio -i && \
|
|
export OSX_SDK=MacOSX${OSX_SDKV}.sdk && \
|
|
cp -r Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk /tmp/${OSX_SDK} && \
|
|
cd /tmp && \
|
|
tar -cJf /root/files/${OSX_SDK}.tar.xz ${OSX_SDK} && \
|
|
rm -rf ${OSX_SDK} && \
|
|
cd /root/xcode && \
|
|
export IOS_SDK=iPhoneOS${IOS_SDKV}.sdk && \
|
|
export IOS_SIMULATOR_SDK=iPhoneSimulator${IOS_SDKV}.sdk && \
|
|
cp -r Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk /tmp/${IOS_SDK} && \
|
|
cd /tmp && \
|
|
tar -cJf /root/files/${IOS_SDK}.tar.xz ${IOS_SDK} && \
|
|
rm -rf ${IOS_SDK} && \
|
|
cd /root/xcode && \
|
|
cp -r Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk /tmp/${IOS_SIMULATOR_SDK} && \
|
|
cd /tmp && \
|
|
tar -cJf /root/files/${IOS_SIMULATOR_SDK}.tar.xz ${IOS_SIMULATOR_SDK} && \
|
|
rm -rf ${IOS_SIMULATOR_SDK}
|