@@ -14,9 +14,6 @@ mkdir godot
1414cd godot
1515tar xf /root/godot.tar.gz --strip-components=1
1616
17- # pkg-config wrongly points to lib instead of lib64 for arch-dependent header.
18- sed -i ${GODOT_SDK_LINUX_X86_64} /x86_64-godot-linux-gnu/sysroot/usr/lib/pkgconfig/dbus-1.pc -e " s@/lib@/lib64@g"
19-
2017# Classical
2118
2219if [ " ${CLASSICAL} " == " 1" ]; then
@@ -35,7 +32,7 @@ if [ "${CLASSICAL}" == "1" ]; then
3532 cp -rvp bin/* /root/out/x86_64/templates
3633 rm -rf bin
3734
38- export PATH=" ${GODOT_SDK_LINUX_X86 } /bin:${BASE_PATH} "
35+ export PATH=" ${GODOT_SDK_LINUX_X86_32 } /bin:${BASE_PATH} "
3936
4037 $SCONS platform=linuxbsd arch=x86_32 $OPTIONS target=editor
4138 mkdir -p /root/out/x86_32/tools
@@ -47,6 +44,32 @@ if [ "${CLASSICAL}" == "1" ]; then
4744 mkdir -p /root/out/x86_32/templates
4845 cp -rvp bin/* /root/out/x86_32/templates
4946 rm -rf bin
47+
48+ export PATH=" ${GODOT_SDK_LINUX_ARM64} /bin:${BASE_PATH} "
49+
50+ $SCONS platform=linuxbsd arch=arm64 $OPTIONS target=editor
51+ mkdir -p /root/out/arm64/tools
52+ cp -rvp bin/* /root/out/arm64/tools
53+ rm -rf bin
54+
55+ $SCONS platform=linuxbsd arch=arm64 $OPTIONS target=template_debug
56+ $SCONS platform=linuxbsd arch=arm64 $OPTIONS target=template_release
57+ mkdir -p /root/out/arm64/templates
58+ cp -rvp bin/* /root/out/arm64/templates
59+ rm -rf bin
60+
61+ export PATH=" ${GODOT_SDK_LINUX_ARM32} /bin:${BASE_PATH} "
62+
63+ $SCONS platform=linuxbsd arch=arm32 $OPTIONS target=editor
64+ mkdir -p /root/out/arm32/tools
65+ cp -rvp bin/* /root/out/arm32/tools
66+ rm -rf bin
67+
68+ $SCONS platform=linuxbsd arch=arm32 $OPTIONS target=template_debug
69+ $SCONS platform=linuxbsd arch=arm32 $OPTIONS target=template_release
70+ mkdir -p /root/out/arm32/templates
71+ cp -rvp bin/* /root/out/arm32/templates
72+ rm -rf bin
5073fi
5174
5275# Mono
@@ -71,7 +94,7 @@ if [ "${MONO}" == "1" ]; then
7194 cp -rvp bin/* /root/out/x86_64/templates-mono
7295 rm -rf bin
7396
74- export PATH=" ${GODOT_SDK_LINUX_X86 } /bin:${BASE_PATH} "
97+ export PATH=" ${GODOT_SDK_LINUX_X86_32 } /bin:${BASE_PATH} "
7598
7699 $SCONS platform=linuxbsd arch=x86_32 $OPTIONS $OPTIONS_MONO target=editor
77100 ./modules/mono/build_scripts/build_assemblies.py --godot-output-dir=./bin --godot-platform=linuxbsd
@@ -84,6 +107,34 @@ if [ "${MONO}" == "1" ]; then
84107 mkdir -p /root/out/x86_32/templates-mono
85108 cp -rvp bin/* /root/out/x86_32/templates-mono
86109 rm -rf bin
110+
111+ export PATH=" ${GODOT_SDK_LINUX_ARM64} /bin:${BASE_PATH} "
112+
113+ $SCONS platform=linuxbsd arch=arm64 $OPTIONS $OPTIONS_MONO target=editor
114+ ./modules/mono/build_scripts/build_assemblies.py --godot-output-dir=./bin --godot-platform=linuxbsd
115+ mkdir -p /root/out/arm64/tools-mono
116+ cp -rvp bin/* /root/out/arm64/tools-mono
117+ rm -rf bin
118+
119+ $SCONS platform=linuxbsd arch=arm64 $OPTIONS $OPTIONS_MONO target=template_debug
120+ $SCONS platform=linuxbsd arch=arm64 $OPTIONS $OPTIONS_MONO target=template_release
121+ mkdir -p /root/out/arm64/templates-mono
122+ cp -rvp bin/* /root/out/arm64/templates-mono
123+ rm -rf bin
124+
125+ export PATH=" ${GODOT_SDK_LINUX_ARM32} /bin:${BASE_PATH} "
126+
127+ $SCONS platform=linuxbsd arch=arm32 $OPTIONS $OPTIONS_MONO target=editor
128+ ./modules/mono/build_scripts/build_assemblies.py --godot-output-dir=./bin --godot-platform=linuxbsd
129+ mkdir -p /root/out/arm32/tools-mono
130+ cp -rvp bin/* /root/out/arm32/tools-mono
131+ rm -rf bin
132+
133+ $SCONS platform=linuxbsd arch=arm32 $OPTIONS $OPTIONS_MONO target=template_debug
134+ $SCONS platform=linuxbsd arch=arm32 $OPTIONS $OPTIONS_MONO target=template_release
135+ mkdir -p /root/out/arm32/templates-mono
136+ cp -rvp bin/* /root/out/arm32/templates-mono
137+ rm -rf bin
87138fi
88139
89140echo " Linux build successful"
0 commit comments