mirror of
https://github.com/Relintai/broken_seals_2d.git
synced 2024-11-11 20:35:10 +01:00
Build scripts form the main repo.
This commit is contained in:
parent
2c5ed15882
commit
2d9fe1b259
18
Build_Android_Templates.bat
Normal file
18
Build_Android_Templates.bat
Normal file
@ -0,0 +1,18 @@
|
||||
rem This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
cd ./engine
|
||||
|
||||
call scons -j6 platform=android target=release_debug android_arch=armv7 entities_2d=no
|
||||
call scons -j6 platform=android target=release_debug android_arch=arm64v8 entities_2d=no
|
||||
call scons -j6 platform=android target=release_debug android_arch=x86 entities_2d=no
|
||||
|
||||
cd ./platform/android/java
|
||||
|
||||
rem call .\gradlew.bat build
|
||||
call .\gradlew.bat generateGodotTemplates
|
||||
|
||||
|
||||
cd ..
|
||||
cd ..
|
||||
cd ..
|
||||
cd ..
|
16
Build_Android_Templates_Release.bat
Normal file
16
Build_Android_Templates_Release.bat
Normal file
@ -0,0 +1,16 @@
|
||||
rem This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
cd ./engine
|
||||
|
||||
call scons -j6 platform=android target=release android_arch=armv7 entities_2d=no
|
||||
call scons -j6 platform=android target=release android_arch=arm64v8 entities_2d=no
|
||||
call scons -j6 platform=android target=release android_arch=x86 entities_2d=no
|
||||
|
||||
cd ./platform/android/java
|
||||
|
||||
call .\gradlew.bat build
|
||||
|
||||
cd ..
|
||||
cd ..
|
||||
cd ..
|
||||
cd ..
|
7
Build_JavaScript.bat
Normal file
7
Build_JavaScript.bat
Normal file
@ -0,0 +1,7 @@
|
||||
rem This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
cd ./engine
|
||||
|
||||
call scons -j2 platform=javascript tools=no target=release_debug entities_2d=no
|
||||
|
||||
cd ..
|
16
Build_WIndows_Templates_rel.bat
Normal file
16
Build_WIndows_Templates_rel.bat
Normal file
@ -0,0 +1,16 @@
|
||||
rem This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
rem call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
|
||||
|
||||
cd ./Engine
|
||||
|
||||
rem scons -j6 platform=windows
|
||||
|
||||
if not defined DevEnvDir (
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
|
||||
)
|
||||
|
||||
call scons -j6 platform=windows target=release tools=no entities_2d=no
|
||||
|
||||
|
||||
cd ..
|
35
Build_Windows-Minimal.bat
Normal file
35
Build_Windows-Minimal.bat
Normal file
@ -0,0 +1,35 @@
|
||||
rem This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
rem call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
|
||||
|
||||
cd ./engine
|
||||
|
||||
rem scons -j6 platform=windows
|
||||
|
||||
if not defined DevEnvDir (
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
|
||||
)
|
||||
|
||||
call scons -j6 platform=windows target=release_debug entities_2d=no javascript_eval=false module_arkit_enabled=no module_assimp_enabled=no module_csg_enabled=no module_gdnative_enabled=no module_opus_enabled=no module_webp_enabled=no module_webm_enabled=no module_visual_script_enabled=no module_xatlas_unwrap_enabled=no module_theora_enabled=no module_vhacd_enabled=no module_tinyexr_enabled=no module_squish_enabled=no module_gridmap_enabled=no
|
||||
|
||||
cd ..
|
||||
|
||||
rem use_lto=yes
|
||||
rem module_regex_enabled=no
|
||||
|
||||
rem javascript_eval=false
|
||||
|
||||
|
||||
rem module_hdr_enabled=no
|
||||
rem module_jpg_enabled=no
|
||||
rem module_jsonrpc_enabled=no
|
||||
rem module_pvr_enabled=no
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
rem module_cvtt_enabled?
|
||||
rem module_dds_enabled?
|
16
Build_Windows.bat
Normal file
16
Build_Windows.bat
Normal file
@ -0,0 +1,16 @@
|
||||
rem This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
rem call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
|
||||
|
||||
cd ./engine
|
||||
|
||||
rem scons -j6 platform=windows
|
||||
|
||||
if not defined DevEnvDir (
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
|
||||
)
|
||||
|
||||
call scons -j6 platform=windows target=release_debug entities_2d=no
|
||||
|
||||
cd ..
|
||||
|
16
Build_Windows2.bat
Normal file
16
Build_Windows2.bat
Normal file
@ -0,0 +1,16 @@
|
||||
rem This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
rem call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
|
||||
|
||||
cd ./engine
|
||||
|
||||
rem scons -j6 platform=windows
|
||||
|
||||
if not defined DevEnvDir (
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
|
||||
)
|
||||
|
||||
call scons -j3 platform=windows target=release_debug entities_2d=no
|
||||
|
||||
cd ..
|
||||
|
16
Build_Windows_Debug.bat
Normal file
16
Build_Windows_Debug.bat
Normal file
@ -0,0 +1,16 @@
|
||||
rem This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
rem call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
|
||||
|
||||
cd ./engine
|
||||
|
||||
rem scons -j6 platform=windows
|
||||
|
||||
if not defined DevEnvDir (
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
|
||||
)
|
||||
|
||||
call scons -j6 platform=windows target=debug entities_2d=no
|
||||
|
||||
cd ..
|
||||
|
12
Build_Windows_MinGW.bat
Normal file
12
Build_Windows_MinGW.bat
Normal file
@ -0,0 +1,12 @@
|
||||
rem This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
rem call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
|
||||
|
||||
cd ./engine
|
||||
|
||||
rem scons -j6 platform=windows
|
||||
|
||||
call scons -j6 platform=windows target=release_debug entities_2d=no use_mingw=yes
|
||||
|
||||
cd ..
|
||||
|
17
Build_Windows_Templates.bat
Normal file
17
Build_Windows_Templates.bat
Normal file
@ -0,0 +1,17 @@
|
||||
rem This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
rem call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
|
||||
|
||||
cd ./Engine
|
||||
|
||||
rem scons -j6 platform=windows
|
||||
|
||||
if not defined DevEnvDir (
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
|
||||
)
|
||||
|
||||
call scons -j6 platform=windows target=release_debug tools=no entities_2d=no
|
||||
|
||||
|
||||
cd ..
|
||||
|
9
Visual_Studio_Project.bat
Normal file
9
Visual_Studio_Project.bat
Normal file
@ -0,0 +1,9 @@
|
||||
rem This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
rem call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd6
|
||||
|
||||
cd ./engine
|
||||
|
||||
rem scons -j6 platform=windows
|
||||
|
||||
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64 && scons -j6 p=windows target=release_debug vsproj=yes voxel_mem_tools=no entities_2d=no entity_mem_tools=no
|
10
build_all.bat
Normal file
10
build_all.bat
Normal file
@ -0,0 +1,10 @@
|
||||
rem This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
start "Android templates" /wait cmd /c call "Build_Android_Templates.bat" ^> 01.txt
|
||||
start "Android templates release" /wait cmd /c call "Build_Android_Templates_Release.bat" ^> 02.txt
|
||||
start "JS" /wait cmd /c call "Build_JavaScript.bat" ^> 03.txt
|
||||
start "JS Release" /wait cmd /c call "build_javascript_release.bat" ^> 04.txt
|
||||
start "Windows" /wait cmd /c call "Build_Windows.bat" ^> 05.txt
|
||||
start "Window Templates" /wait cmd /c call "Build_Windows_Templates.bat" ^> 06.txt
|
||||
start "Window Templates Release" /wait cmd /c call "Build_WIndows_Templates_rel.bat" ^> 07.txt
|
||||
|
22
build_android_templates.sh
Executable file
22
build_android_templates.sh
Executable file
@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
export ANDROID_NDK_ROOT=~/SDKs/Android/NDK/android-ndk-r20b
|
||||
export ANDROID_NDK_HOME=~/SDKs/Android/NDK/android-ndk-r20b
|
||||
export ANDROID_HOME=~/SDKs/Android/SDK
|
||||
|
||||
cd ./engine
|
||||
|
||||
scons -j6 platform=android target=release_debug android_arch=armv7 entities_2d=no
|
||||
scons -j6 platform=android target=release_debug android_arch=arm64v8 entities_2d=no
|
||||
scons -j6 platform=android target=release_debug android_arch=x86 entities_2d=no
|
||||
|
||||
cd ./platform/android/java
|
||||
|
||||
./gradlew generateGodotTemplates
|
||||
|
||||
cd ..
|
||||
cd ..
|
||||
cd ..
|
||||
cd ..
|
16
build_android_templates.sh~
Executable file
16
build_android_templates.sh~
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd ./engine
|
||||
|
||||
scons -j6 platform=android target=release_debug android_arch=armv7 entities_2d=no
|
||||
scons -j6 platform=android target=release_debug android_arch=arm64v8 entities_2d=no
|
||||
scons -j6 platform=android target=release_debug android_arch=x86 entities_2d=no
|
||||
|
||||
cd ./platform/android/java
|
||||
|
||||
./gradlew generateGodotTemplates
|
||||
|
||||
cd ..
|
||||
cd ..
|
||||
cd ..
|
||||
cd ..
|
22
build_android_templates_release.sh
Executable file
22
build_android_templates_release.sh
Executable file
@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
export ANDROID_NDK_ROOT=~/SDKs/Android/NDK/android-ndk-r20b
|
||||
export ANDROID_NDK_HOME=~/SDKs/Android/NDK/android-ndk-r20b
|
||||
export ANDROID_HOME=~/SDKs/Android/SDK
|
||||
|
||||
cd ./engine
|
||||
|
||||
scons -j6 platform=android target=release android_arch=armv7 entities_2d=no
|
||||
scons -j6 platform=android target=release android_arch=arm64v8 entities_2d=no
|
||||
scons -j6 platform=android target=release android_arch=x86 entities_2d=no
|
||||
|
||||
cd ./platform/android/java
|
||||
|
||||
./gradlew generateGodotTemplates
|
||||
|
||||
cd ..
|
||||
cd ..
|
||||
cd ..
|
||||
cd ..
|
20
build_ios.sh
Executable file
20
build_ios.sh
Executable file
@ -0,0 +1,20 @@
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
export SCONS_CACHE=~/.scons_cache
|
||||
export SCONS_CACHE_LIMIT=5000
|
||||
|
||||
cd ./engine
|
||||
|
||||
scons -j6 p=iphone tools=no target=release_debug arch=arm entities_2d=no module_arkit_enabled=no game_center=no
|
||||
scons -j6 p=iphone tools=no target=release_debug arch=arm64 entities_2d=no module_arkit_enabled=no game_center=no
|
||||
lipo -create bin/libgodot.iphone.opt.debug.arm.a bin/libgodot.iphone.opt.debug.arm64.a -output bin/libgodot.iphone.debug.fat.a
|
||||
rm bin/ios_xcode/libgodot.iphone.debug.fat.a
|
||||
cp bin/libgodot.iphone.debug.fat.a bin/ios_xcode/libgodot.iphone.debug.fat.a
|
||||
|
||||
rm bin/iphone.zip
|
||||
cd bin/ios_xcode
|
||||
zip -r -X ../iphone.zip .
|
||||
|
||||
cd ..
|
||||
cd ..
|
||||
cd ..
|
22
build_ios_release.sh
Executable file
22
build_ios_release.sh
Executable file
@ -0,0 +1,22 @@
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
export SCONS_CACHE=~/.scons_cache
|
||||
export SCONS_CACHE_LIMIT=5000
|
||||
|
||||
cd ./engine
|
||||
|
||||
scons -j6 p=iphone tools=no target=release arch=arm entities_2d=no module_arkit_enabled=no game_center=no
|
||||
scons -j6 p=iphone tools=no target=release arch=arm64 entities_2d=no module_arkit_enabled=no game_center=no
|
||||
lipo -create bin/libgodot.iphone.opt.arm.a bin/libgodot.iphone.opt.arm64.a -output bin/libgodot.iphone.release.fat.a
|
||||
rm bin/ios_xcode/libgodot.iphone.release.fat.a
|
||||
cp bin/libgodot.iphone.release.fat.a bin/ios_xcode/libgodot.iphone.release.fat.a
|
||||
|
||||
rm bin/iphone.zip
|
||||
cd bin/ios_xcode
|
||||
zip -r -X ../iphone.zip .
|
||||
|
||||
cd ..
|
||||
cd ..
|
||||
|
||||
|
||||
cd ..
|
7
build_javascript_release.bat
Normal file
7
build_javascript_release.bat
Normal file
@ -0,0 +1,7 @@
|
||||
rem This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
cd ./engine
|
||||
|
||||
call scons -j6 platform=javascript tools=no target=release entities_2d=no
|
||||
|
||||
cd ..
|
11
build_linux.sh
Executable file
11
build_linux.sh
Executable file
@ -0,0 +1,11 @@
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
export SCONS_CACHE=~/.scons_cache
|
||||
export SCONS_CACHE_LIMIT=5000
|
||||
|
||||
cd engine
|
||||
scons -j2 platform=x11 target=release_debug entities_2d=no
|
||||
|
||||
# use_llvm=yes
|
||||
|
||||
|
11
build_linux_j2.sh
Normal file
11
build_linux_j2.sh
Normal file
@ -0,0 +1,11 @@
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
export SCONS_CACHE=~/.scons_cache
|
||||
export SCONS_CACHE_LIMIT=5000
|
||||
|
||||
cd engine
|
||||
scons -j2 platform=x11 target=release_debug entities_2d=no
|
||||
|
||||
# use_llvm=yes
|
||||
|
||||
|
11
build_linux_templates_release.sh
Executable file
11
build_linux_templates_release.sh
Executable file
@ -0,0 +1,11 @@
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
export SCONS_CACHE=~/.scons_cache
|
||||
export SCONS_CACHE_LIMIT=5000
|
||||
|
||||
cd engine
|
||||
scons -j2 platform=x11 target=release_debug entities_2d=no tools=no
|
||||
|
||||
# use_llvm=yes
|
||||
|
||||
|
16
build_osx.sh
Executable file
16
build_osx.sh
Executable file
@ -0,0 +1,16 @@
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
export SCONS_CACHE=~/.scons_cache
|
||||
export SCONS_CACHE_LIMIT=5000
|
||||
|
||||
cd ./engine
|
||||
|
||||
scons -j6 platform=osx target=release_debug entities_2d=no
|
||||
|
||||
rm -Rf bin/Godot.app
|
||||
cp -r misc/dist/osx_tools.app ./bin/Godot.app
|
||||
mkdir -p ./bin/Godot.app/Contents/MacOS
|
||||
cp bin/godot.osx.opt.tools.64 bin/Godot.app/Contents/MacOS/Godot
|
||||
chmod +x bin/Godot.app/Contents/MacOS/Godot
|
||||
|
||||
cd ..
|
15
build_uwp.bat
Normal file
15
build_uwp.bat
Normal file
@ -0,0 +1,15 @@
|
||||
rem This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
cd ./engine
|
||||
|
||||
if not defined DevEnvDir (
|
||||
rem call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x86
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64
|
||||
)
|
||||
|
||||
call scons -j6 platform=uwp target=release entities_2d=no
|
||||
rem call scons -j6 platform=uwp target=release_debug entities_2d=no
|
||||
rem call scons -j6 platform=uwp target=release entities_2d=no
|
||||
|
||||
cd ..
|
||||
|
7
editor.bat
Normal file
7
editor.bat
Normal file
@ -0,0 +1,7 @@
|
||||
rem This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
copy "engine\bin\godot.windows.opt.tools.64.exe" "engine\bin\run_godot.windows.opt.tools.64.exe" /y
|
||||
copy "engine\bin\godot.windows.opt.tools.64.pdb" "engine\bin\run_godot.windows.opt.tools.64.pdb" /y
|
||||
copy "engine\bin\godot.windows.opt.tools.64.exp" "engine\bin\run_godot.windows.opt.tools.64.exp" /y
|
||||
|
||||
cmd /c engine\bin\run_godot.windows.opt.tools.64.exe
|
7
editor.sh
Executable file
7
editor.sh
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
cp -u ./engine/bin/godot.x11.opt.tools.64 ./engine/bin/run.godot.x11.opt.tools.64
|
||||
|
||||
./engine/bin/run.godot.x11.opt.tools.64 -v
|
Loading…
Reference in New Issue
Block a user