-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompile_engine.bat
31 lines (25 loc) · 2.35 KB
/
compile_engine.bat
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
for /f "tokens=2 delims==" %%a in ('wmic OS Get localdatetime /value') do set "dt=%%a"
set "YY=%dt:~2,2%" & set "YYYY=%dt:~0,4%" & set "MM=%dt:~4,2%" & set "DD=%dt:~6,2%"
set "HH=%dt:~8,2%" & set "Min=%dt:~10,2%" & set "Sec=%dt:~12,2%"
set "datestamp=%YYYY%%MM%%DD%" & set "timestamp=%HH%%Min%%Sec%"
set "fullstamp=%YYYY%-%MM%-%DD%_%HH%-%Min%-%Sec%"
set "PATH=C:\Windows\System32;D:\Program Files\Python312\Scripts;D:\Program Files\Python312;D:\mingw32\bin"
echo WINDOWS > ../build_logs/from_godot_cpp/windows/build_log_%fullstamp%.txt
echo. >> ../build_logs/from_godot_cpp/windows/build_log_%fullstamp%.txt
echo ---- >> ../build_logs/from_godot_cpp/windows/build_log_%fullstamp%.txt
echo. >> ../build_logs/from_godot_cpp/windows/build_log_%fullstamp%.txt
echo BUILD debug_win32 >> ../build_logs/from_godot_cpp/windows/build_log_%fullstamp%.txt
scons platform=windows target=template_debug use_mingw=yes arch=x86_32 -j12 custom_api_file=gdextension\extension_api.json >> ../build_logs/from_godot_cpp/windows/build_log_%fullstamp%.txt
echo. >> ../build_logs/from_godot_cpp/windows/build_log_%fullstamp%.txt
echo BUILD release_win32 >> ../build_logs/from_godot_cpp/windows/build_log_%fullstamp%.txt
scons platform=windows target=template_release use_mingw=yes arch=x86_32 -j12 custom_api_file=gdextension\extension_api.json >> ../build_logs/from_godot_cpp/windows/build_log_%fullstamp%.txt
echo. >> ../build_logs/from_godot_cpp/windows/build_log_%fullstamp%.txt
set "PATH=C:\Windows\System32;D:\Program Files\Python312\Scripts;D:\Program Files\Python312;D:\mingw64\bin"
echo ---- >> ../build_logs/from_godot_cpp/windows/build_log_%fullstamp%.txt
echo. >> ../build_logs/from_godot_cpp/windows/build_log_%fullstamp%.txt
echo BUILD debug_win64 >> ../build_logs/from_godot_cpp/windows/build_log_%fullstamp%.txt
scons platform=windows target=template_debug use_mingw=yes -j12 custom_api_file=gdextension\extension_api.json >> ../build_logs/from_godot_cpp/windows/build_log_%fullstamp%.txt
echo. >> ../build_logs/from_godot_cpp/windows/build_log_%fullstamp%.txt
echo BUILD release_win64 >> ../build_logs/from_godot_cpp/windows/build_log_%fullstamp%.txt
scons platform=windows target=template_release use_mingw=yes -j12 custom_api_file=gdextension\extension_api.json >> ../build_logs/from_godot_cpp/windows/build_log_%fullstamp%.txt
echo COMPLETE >> ../build_logs/from_godot_cpp/windows/build_log_%fullstamp%.txt