@@ -14,9 +14,6 @@ mkdir godot
14
14
cd godot
15
15
tar xf /root/godot.tar.gz --strip-components=1
16
16
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
-
20
17
# Classical
21
18
22
19
if [ " ${CLASSICAL} " == " 1" ]; then
@@ -35,7 +32,7 @@ if [ "${CLASSICAL}" == "1" ]; then
35
32
cp -rvp bin/* /root/out/x86_64/templates
36
33
rm -rf bin
37
34
38
- export PATH=" ${GODOT_SDK_LINUX_X86 } /bin:${BASE_PATH} "
35
+ export PATH=" ${GODOT_SDK_LINUX_X86_32 } /bin:${BASE_PATH} "
39
36
40
37
$SCONS platform=linuxbsd arch=x86_32 $OPTIONS target=editor
41
38
mkdir -p /root/out/x86_32/tools
@@ -47,6 +44,32 @@ if [ "${CLASSICAL}" == "1" ]; then
47
44
mkdir -p /root/out/x86_32/templates
48
45
cp -rvp bin/* /root/out/x86_32/templates
49
46
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
50
73
fi
51
74
52
75
# Mono
@@ -71,7 +94,7 @@ if [ "${MONO}" == "1" ]; then
71
94
cp -rvp bin/* /root/out/x86_64/templates-mono
72
95
rm -rf bin
73
96
74
- export PATH=" ${GODOT_SDK_LINUX_X86 } /bin:${BASE_PATH} "
97
+ export PATH=" ${GODOT_SDK_LINUX_X86_32 } /bin:${BASE_PATH} "
75
98
76
99
$SCONS platform=linuxbsd arch=x86_32 $OPTIONS $OPTIONS_MONO target=editor
77
100
./modules/mono/build_scripts/build_assemblies.py --godot-output-dir=./bin --godot-platform=linuxbsd
@@ -84,6 +107,34 @@ if [ "${MONO}" == "1" ]; then
84
107
mkdir -p /root/out/x86_32/templates-mono
85
108
cp -rvp bin/* /root/out/x86_32/templates-mono
86
109
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
87
138
fi
88
139
89
140
echo " Linux build successful"
0 commit comments