forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 3
/
rebuild_linux_x86_64_buildroot.sh
executable file
·43 lines (34 loc) · 1.46 KB
/
rebuild_linux_x86_64_buildroot.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
35
36
37
38
39
40
41
42
43
#!/bin/sh
# For incremental
export SCONS_CACHE="./scons_cache/godot_4_scons_cache_linux_x86_64";
mkdir -p $SCONS_CACHE
mkdir -p "./logs"
# Reference buildroot and see if scons is used from there
BUILDROOT_PATH="/home/roalyr/Buildroot/x86_64-godot-linux-gnu_sdk-buildroot/bin"
PATH=$BUILDROOT_PATH:$PATH
WHICHSCONS=$(which scons)
if [ "${BUILDROOT_PATH}/scons" = $WHICHSCONS ]
then
echo
echo " ==============================================="
echo " | USING BUILDROOT LINUX x86-64 bit |"
echo " ==============================================="
echo
else
echo
echo " ==============================================="
echo " | NO BUILDROOT FOUND |"
echo " ==============================================="
echo
exit 1
fi
# Editor (tools)
scons -j2 platform=linuxbsd precision=double arch=x86_64 2>&1 | tee ./logs/godot_4_scons_linuxbsd_86_64_tools_build.txt;
# Template(s)
scons -j2 platform=linuxbsd precision=double target=template_debug arch=x86_64 2>&1 | tee ./logs/godot_4_scons_linuxbsd_86_64_template_build.txt;
#scons -j2 platform=linuxbsd precision=double target=template_release arch=x86_64 2>&1 | tee ./logs/godot_4_scons_linuxbsd_86_64_template_release_build.txt;
echo
echo " ==============================================="
echo " | DONE BUILDING LINUX x86-64 bit |"
echo " ==============================================="
echo