This repository has been archived by the owner on Sep 3, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
build_godot_cpp.bat
50 lines (37 loc) · 1.98 KB
/
build_godot_cpp.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
cd godot-cpp
::set api=custom_api_file="../api.json"
set api=
git apply --ignore-space-change --ignore-whitespace ../patches/godot_cpp_trim_unused_classes.patch
title win x64 release
scons platform=windows target=release bits=64 %api% generate_bindings=yes
if errorlevel 1 ( echo Failed to generate godot-cpp source code. Code: %errorlevel% && exit /b %errorlevel% )
title win x64 debug
scons platform=windows target=debug bits=64 %api%
if errorlevel 1 ( echo Failed to compile debug Windows godot-cpp for x64. Code: %errorlevel% && exit /b %errorlevel% )
title win x86
scons platform=windows target=release bits=32 %api%
if errorlevel 1 ( echo Failed to compile Windows godot-cpp for x64. Code: %errorlevel% && exit /b %errorlevel% )
title android arm64v8 debug
scons platform=android target=debug android_arch=arm64v8 %api%
if errorlevel 1 ( echo Failed to compile debug Android godot-cpp for arm64v8. Code: %errorlevel% && exit /b %errorlevel% )
title android arm64v8
scons platform=android target=release android_arch=arm64v8 %api%
if errorlevel 1 ( echo Failed to compile Android godot-cpp for arm64v8. Code: %errorlevel% && exit /b %errorlevel% )
title android armv7
scons platform=android target=release android_arch=armv7 %api%
if errorlevel 1 ( echo Failed to compile Android godot-cpp for armv7. Code: %errorlevel% && exit /b %errorlevel% )
title android x86
scons platform=android target=release android_arch=x86 %api%
if errorlevel 1 ( echo Failed to compile Android godot-cpp for x86. Code: %errorlevel% && exit /b %errorlevel% )
title android x86_64
scons platform=android target=release android_arch=x86_64 %api%
if errorlevel 1 ( echo Failed to compile Android godot-cpp for x86_64. Code: %errorlevel% && exit /b %errorlevel% )
cd ..
where /Q wsl
IF ERRORLEVEL 1 (
@echo wsl not found
) ELSE (
del /Q "godot-cpp\.sconsign.dblite"
wsl -d Ubuntu-18.04 bash build_godot_cpp_linux.sh
if errorlevel 1 ( echo Failed to compile Linux godot-cpp for x64. Code: %errorlevel% && exit /b %errorlevel% )
)