forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 3
/
rebuild_windows.sh
executable file
·34 lines (25 loc) · 1.1 KB
/
rebuild_windows.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/sh
# For windows
export MINGW_PREFIX="$HOME/llvm-mingw-20241030-ucrt-ubuntu-20.04-x86_64"
# For incremental
export SCONS_CACHE="./scons_cache/godot_4_scons_cache_windows";
mkdir -p $SCONS_CACHE
mkdir -p "./logs"
${MINGW_PREFIX}/bin/x86_64-w64-mingw32-gcc --version
echo
echo " ==============================================="
echo " | BUILDING WINDOWS x86-64 64 bit |"
echo " ==============================================="
echo
# Editor (tools)
scons -j2 platform=windows use_llvm=yes precision=double arch=x86_64 2>&1 | tee ./logs/godot_4_scons_windows_64_tools_build.txt;
# Template(s)
scons -j2 platform=windows use_llvm=yes precision=double target=template_debug arch=x86_64 2>&1 | tee ./logs/godot_4_scons_windows_64_template_build.txt;
# Removing debug symbols
#strip ./bin/godot.windows.opt.tools.64.exe
#strip ./bin/godot.windows.opt.debug.64.exe
echo
echo " ==============================================="
echo " | DONE BUILDING WINDOWS x86-64 64 bit |"
echo " ==============================================="
echo