-
-
Notifications
You must be signed in to change notification settings - Fork 27
/
dev_build_godot_cpp.bat
28 lines (22 loc) · 1.51 KB
/
dev_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
cd godot-cpp
::set api=custom_api_file="../api.json"
set api=
git apply --ignore-space-change --ignore-whitespace ../patches/godot_cpp_exclude_unused_classes.patch
git apply --ignore-space-change --ignore-whitespace ../patches/unity_build.patch
git apply --ignore-space-change --ignore-whitespace ../patches/web_threads.patch
::git apply --ignore-space-change --ignore-whitespace ../patches/debug_string.patch
title win x64 debug dev
scons platform=windows target=editor arch=x86_64 dev_build=yes %api% generate_bindings=yes
if errorlevel 1 ( echo Failed to generate and compile debug godot-cpp source code. Code: %errorlevel% && exit /b %errorlevel% )
title win x64 debug
scons platform=windows target=editor arch=x86_64 debug_symbols=yes %api%
if errorlevel 1 ( echo Failed to generate and compile debug godot-cpp source code. Code: %errorlevel% && exit /b %errorlevel% )
title win x64
scons platform=windows target=template_release arch=x86_64 debug_symbols=no %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=template_debug arch=arm64v8 ANDROID_HOME="" %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=template_release arch=arm64v8 ANDROID_HOME="" %api%
if errorlevel 1 ( echo Failed to compile Android godot-cpp for arm64v8. Code: %errorlevel% && exit /b %errorlevel% )