Skip to content

Commit 02e092c

Browse files
authored
Merge pull request #84 from godotengine/angle-libs
Download static ANGLE libs to link them in Windows and macOS builds
2 parents 3793875 + 4863750 commit 02e092c

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

build-macos/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
# Config
66

77
export SCONS="scons -j${NUM_CORES} verbose=yes warnings=no progress=no"
8-
export OPTIONS="osxcross_sdk=darwin22 production=yes use_volk=no vulkan_sdk_path=/root/vulkansdk"
8+
export OPTIONS="osxcross_sdk=darwin22 production=yes use_volk=no vulkan_sdk_path=/root/vulkansdk angle_libs=/root/angle"
99
export OPTIONS_MONO="module_mono_enabled=yes"
1010
export STRIP="x86_64-apple-darwin22-strip -u -r"
1111
export TERM=xterm

build-windows/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
# Config
66

77
export SCONS="scons -j${NUM_CORES} verbose=yes warnings=no progress=no"
8-
export OPTIONS="production=yes"
8+
export OPTIONS="production=yes angle_libs=/root/angle"
99
export OPTIONS_MONO="module_mono_enabled=yes"
1010
export TERM=xterm
1111

build.sh

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,18 @@ if [ ! -d "deps/vulkansdk-macos" ]; then
136136
echo "Missing Vulkan SDK for macOS, we're going to run into issues!"
137137
fi
138138

139+
# Windows and macOS need ANGLE
140+
if [ ! -d "deps/angle" ]; then
141+
echo "Missing ANGLE libraries, downloading them."
142+
mkdir -p deps/angle
143+
pushd deps/angle
144+
curl -L -o windows.zip https://github.com/godotengine/godot-angle-static/releases/download/chromium%2F6029/Windows.6029-1.MinGW_11.x86_64.x86_32.zip
145+
curl -L -o macos.zip https://github.com/godotengine/godot-angle-static/releases/download/chromium%2F6029/macOS.6029.Xcode_15.arm64.x86_64.zip
146+
unzip windows.zip && rm -f windows.zip
147+
unzip macos.zip && rm -f macos.zip
148+
popd
149+
fi
150+
139151
# Keystore for Android editor signing
140152
# Optional - the config.sh will be copied but if it's not filled in,
141153
# it will do an unsigned build.
@@ -187,7 +199,7 @@ mkdir -p ${basedir}/mono-glue
187199
${podman_run} -v ${basedir}/build-mono-glue:/root/build localhost/godot-linux:${img_version} bash build/build.sh 2>&1 | tee ${basedir}/out/logs/mono-glue
188200

189201
mkdir -p ${basedir}/out/windows
190-
${podman_run} -v ${basedir}/build-windows:/root/build -v ${basedir}/out/windows:/root/out localhost/godot-windows:${img_version} bash build/build.sh 2>&1 | tee ${basedir}/out/logs/windows
202+
${podman_run} -v ${basedir}/build-windows:/root/build -v ${basedir}/out/windows:/root/out -v ${basedir}/deps/angle:/root/angle localhost/godot-windows:${img_version} bash build/build.sh 2>&1 | tee ${basedir}/out/logs/windows
191203

192204
mkdir -p ${basedir}/out/linux
193205
${podman_run} -v ${basedir}/build-linux:/root/build -v ${basedir}/out/linux:/root/out localhost/godot-linux:${img_version} bash build/build.sh 2>&1 | tee ${basedir}/out/logs/linux
@@ -196,7 +208,7 @@ mkdir -p ${basedir}/out/web
196208
${podman_run} -v ${basedir}/build-web:/root/build -v ${basedir}/out/web:/root/out localhost/godot-web:${img_version} bash build/build.sh 2>&1 | tee ${basedir}/out/logs/web
197209

198210
mkdir -p ${basedir}/out/macos
199-
${podman_run} -v ${basedir}/build-macos:/root/build -v ${basedir}/out/macos:/root/out -v ${basedir}/deps/vulkansdk-macos:/root/vulkansdk localhost/godot-osx:${img_version} bash build/build.sh 2>&1 | tee ${basedir}/out/logs/macos
211+
${podman_run} -v ${basedir}/build-macos:/root/build -v ${basedir}/out/macos:/root/out -v ${basedir}/deps/vulkansdk-macos:/root/vulkansdk -v ${basedir}/deps/angle:/root/angle localhost/godot-osx:${img_version} bash build/build.sh 2>&1 | tee ${basedir}/out/logs/macos
200212

201213
mkdir -p ${basedir}/out/android
202214
${podman_run} -v ${basedir}/build-android:/root/build -v ${basedir}/out/android:/root/out -v ${basedir}/deps/keystore:/root/keystore localhost/godot-android:${img_version} bash build/build.sh 2>&1 | tee ${basedir}/out/logs/android

0 commit comments

Comments
 (0)