From 228389a28084de6160da5448768d8bee109a0c2d Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 20 Nov 2019 13:38:23 +0100 Subject: [PATCH] Added my buildscripts. --- Build_Android_Templates.bat | 18 ++++ Build_Android_Templates_Release.bat | 16 +++ Build_JavaScript.bat | 7 ++ Build_WIndows_Templates_rel.bat | 16 +++ Build_Windows-Minimal.bat | 35 +++++++ Build_Windows.bat | 16 +++ Build_Windows2.bat | 16 +++ Build_Windows_Debug.bat | 16 +++ Build_Windows_MinGW.bat | 12 +++ Build_Windows_Templates.bat | 17 +++ EngineSetup.bat | 157 ++++++++++++++++++++++++++++ Visual_Studio_Project.bat | 9 ++ build_all.bat | 10 ++ build_android_templates.sh | 22 ++++ build_android_templates.sh~ | 16 +++ build_ios.sh | 20 ++++ build_ios_release.sh | 22 ++++ build_javascript_release.bat | 7 ++ build_linux.sh | 11 ++ build_linux_j2.sh | 11 ++ build_linux_templates_release.sh | 11 ++ build_osx.sh | 16 +++ build_uwp.bat | 15 +++ editor.bat | 7 ++ editor.sh | 7 ++ engine_setup.sh | 121 +++++++++++++++++++++ vscode-cpp/launch.json | 52 +++++++++ vscode-cpp/tasks.json | 19 ++++ 28 files changed, 702 insertions(+) create mode 100644 Build_Android_Templates.bat create mode 100644 Build_Android_Templates_Release.bat create mode 100644 Build_JavaScript.bat create mode 100644 Build_WIndows_Templates_rel.bat create mode 100644 Build_Windows-Minimal.bat create mode 100644 Build_Windows.bat create mode 100644 Build_Windows2.bat create mode 100644 Build_Windows_Debug.bat create mode 100644 Build_Windows_MinGW.bat create mode 100644 Build_Windows_Templates.bat create mode 100644 EngineSetup.bat create mode 100644 Visual_Studio_Project.bat create mode 100644 build_all.bat create mode 100755 build_android_templates.sh create mode 100755 build_android_templates.sh~ create mode 100755 build_ios.sh create mode 100755 build_ios_release.sh create mode 100644 build_javascript_release.bat create mode 100755 build_linux.sh create mode 100644 build_linux_j2.sh create mode 100755 build_linux_templates_release.sh create mode 100755 build_osx.sh create mode 100644 build_uwp.bat create mode 100644 editor.bat create mode 100755 editor.sh create mode 100755 engine_setup.sh create mode 100644 vscode-cpp/launch.json create mode 100644 vscode-cpp/tasks.json diff --git a/Build_Android_Templates.bat b/Build_Android_Templates.bat new file mode 100644 index 00000000..a78b4de1 --- /dev/null +++ b/Build_Android_Templates.bat @@ -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 .. \ No newline at end of file diff --git a/Build_Android_Templates_Release.bat b/Build_Android_Templates_Release.bat new file mode 100644 index 00000000..2b9cd957 --- /dev/null +++ b/Build_Android_Templates_Release.bat @@ -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 .. \ No newline at end of file diff --git a/Build_JavaScript.bat b/Build_JavaScript.bat new file mode 100644 index 00000000..d034c39b --- /dev/null +++ b/Build_JavaScript.bat @@ -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 .. diff --git a/Build_WIndows_Templates_rel.bat b/Build_WIndows_Templates_rel.bat new file mode 100644 index 00000000..051f1cac --- /dev/null +++ b/Build_WIndows_Templates_rel.bat @@ -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 .. diff --git a/Build_Windows-Minimal.bat b/Build_Windows-Minimal.bat new file mode 100644 index 00000000..9fe06d2a --- /dev/null +++ b/Build_Windows-Minimal.bat @@ -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? diff --git a/Build_Windows.bat b/Build_Windows.bat new file mode 100644 index 00000000..517ca28e --- /dev/null +++ b/Build_Windows.bat @@ -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 .. + diff --git a/Build_Windows2.bat b/Build_Windows2.bat new file mode 100644 index 00000000..84d166f6 --- /dev/null +++ b/Build_Windows2.bat @@ -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 .. + diff --git a/Build_Windows_Debug.bat b/Build_Windows_Debug.bat new file mode 100644 index 00000000..76e25def --- /dev/null +++ b/Build_Windows_Debug.bat @@ -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 .. + diff --git a/Build_Windows_MinGW.bat b/Build_Windows_MinGW.bat new file mode 100644 index 00000000..d4343b42 --- /dev/null +++ b/Build_Windows_MinGW.bat @@ -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 .. + diff --git a/Build_Windows_Templates.bat b/Build_Windows_Templates.bat new file mode 100644 index 00000000..d57a9787 --- /dev/null +++ b/Build_Windows_Templates.bat @@ -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 .. + diff --git a/EngineSetup.bat b/EngineSetup.bat new file mode 100644 index 00000000..e603ffe4 --- /dev/null +++ b/EngineSetup.bat @@ -0,0 +1,157 @@ +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/. + +@echo off + +IF NOT EXIST ./engine ( + git clone https://github.com/godotengine/godot.git ./engine +) ELSE ( + cd engine + + rmdir /s /q modules + + git reset --hard + git pull origin master + git checkout master + git reset --hard + + cd .. +) + +IF EXIST ./modules GOTO DONE + mkdir modules +:DONE + +cd modules + +IF NOT EXIST ./fastnoise ( + git clone https://github.com/Relintai/godot_fastnoise.git fastnoise +) ELSE ( + cd fastnoise + + git reset --hard + git pull origin master + git checkout master + git reset --hard + + cd .. +) + +xcopy "fastnoise" "../engine/modules/fastnoise" /e /i /h /y + +GOTO VIOFF +IF NOT EXIST ./voxel_importer ( + git clone https://github.com/Relintai/voxel_importer.git voxel_importer +) ELSE ( + cd voxel_importer + + git reset --hard + git pull origin master + git checkout master + git reset --hard + + cd .. +) + +xcopy "voxel_importer" "../engine/modules/voxel_importer" /e /i /h /y +:VIOFF + +IF NOT EXIST ./ui_extensions ( + git clone https://github.com/Relintai/ui_extensions.git ui_extensions +) ELSE ( + cd ui_extensions + + git reset --hard + git pull origin master + git checkout master + git reset --hard + + cd .. +) + +xcopy "ui_extensions" "../engine/modules/ui_extensions" /e /i /h /y + +GOTO IMOFF +IF NOT EXIST ./input_manager ( + git clone https://github.com/Relintai/input_manager.git input_manager +) ELSE ( + cd input_manager + + git reset --hard + git pull origin master + git checkout master + git reset --hard + + cd .. +) + +xcopy "input_manager" "../engine/modules/input_manager" /e /i /h /y +:IMOFF + +IF NOT EXIST ./entity_spell_system ( + git clone https://github.com/Relintai/entity_spell_system.git entity_spell_system +) ELSE ( + cd entity_spell_system + + git reset --hard + git pull origin master + git checkout master + git reset --hard + + cd .. +) + +xcopy "entity_spell_system" "../engine/modules/entity_spell_system" /e /i /h /y + + +IF NOT EXIST ./voxelman ( + git clone https://github.com/Relintai/voxelman.git voxelman +) ELSE ( + cd voxelman + + git reset --hard + git pull origin master + git checkout master + git reset --hard + + cd .. +) + +xcopy "voxelman" "../engine/modules/voxelman" /e /i /h /y + + +IF NOT EXIST ./world_generator ( + git clone https://github.com/Relintai/world_generator.git world_generator +) ELSE ( + cd world_generator + + git reset --hard + git pull origin master + git checkout master + git reset --hard + + cd .. +) + +xcopy "world_generator" "../engine/modules/world_generator" /e /i /h /y + + + +IF NOT EXIST ./texture_packer ( + git clone https://github.com/Relintai/texture_packer.git texture_packer +) ELSE ( + cd texture_packer + + git reset --hard + git pull origin master + git checkout master + git reset --hard + + cd .. +) + +xcopy "texture_packer" "../engine/modules/texture_packer" /e /i /h /y + + +cd .. + +pause diff --git a/Visual_Studio_Project.bat b/Visual_Studio_Project.bat new file mode 100644 index 00000000..f04207d5 --- /dev/null +++ b/Visual_Studio_Project.bat @@ -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 diff --git a/build_all.bat b/build_all.bat new file mode 100644 index 00000000..d15bc150 --- /dev/null +++ b/build_all.bat @@ -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 + diff --git a/build_android_templates.sh b/build_android_templates.sh new file mode 100755 index 00000000..5551653c --- /dev/null +++ b/build_android_templates.sh @@ -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 .. diff --git a/build_android_templates.sh~ b/build_android_templates.sh~ new file mode 100755 index 00000000..08fc2db0 --- /dev/null +++ b/build_android_templates.sh~ @@ -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 .. diff --git a/build_ios.sh b/build_ios.sh new file mode 100755 index 00000000..5ed515bb --- /dev/null +++ b/build_ios.sh @@ -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 .. diff --git a/build_ios_release.sh b/build_ios_release.sh new file mode 100755 index 00000000..744a9389 --- /dev/null +++ b/build_ios_release.sh @@ -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 .. diff --git a/build_javascript_release.bat b/build_javascript_release.bat new file mode 100644 index 00000000..0c6422e9 --- /dev/null +++ b/build_javascript_release.bat @@ -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 .. \ No newline at end of file diff --git a/build_linux.sh b/build_linux.sh new file mode 100755 index 00000000..ea305db2 --- /dev/null +++ b/build_linux.sh @@ -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 + + diff --git a/build_linux_j2.sh b/build_linux_j2.sh new file mode 100644 index 00000000..ea305db2 --- /dev/null +++ b/build_linux_j2.sh @@ -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 + + diff --git a/build_linux_templates_release.sh b/build_linux_templates_release.sh new file mode 100755 index 00000000..9479e8a3 --- /dev/null +++ b/build_linux_templates_release.sh @@ -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 entities_2d=no tools=no + +# use_llvm=yes + + diff --git a/build_osx.sh b/build_osx.sh new file mode 100755 index 00000000..1333b9ab --- /dev/null +++ b/build_osx.sh @@ -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 .. diff --git a/build_uwp.bat b/build_uwp.bat new file mode 100644 index 00000000..022799ba --- /dev/null +++ b/build_uwp.bat @@ -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 .. + diff --git a/editor.bat b/editor.bat new file mode 100644 index 00000000..bf1a07a5 --- /dev/null +++ b/editor.bat @@ -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 \ No newline at end of file diff --git a/editor.sh b/editor.sh new file mode 100755 index 00000000..9d6b4dd9 --- /dev/null +++ b/editor.sh @@ -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 diff --git a/engine_setup.sh b/engine_setup.sh new file mode 100755 index 00000000..349de10a --- /dev/null +++ b/engine_setup.sh @@ -0,0 +1,121 @@ +#!/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/. + +if [ ! -d engine ]; then + git clone https://github.com/godotengine/godot.git ./engine +else + cd engine + + rm -Rf modules + + git reset --hard + git pull origin master + git checkout master + git reset --hard + + cd .. +fi + +if [ ! -d modules ]; then + mkdir modules +fi + +cd modules + +if [ ! -d fastnoise ]; then + git clone https://github.com/Relintai/godot_fastnoise.git ./fastnoise + cp -R ./fastnoise ../engine/modules/fastnoise +else + cd fastnoise + + git reset --hard + git pull origin master + git checkout master + git reset --hard + + cd .. + + cp -R ./fastnoise ../engine/modules/fastnoise +fi + +if [ ! -d ui_extensions ]; then + git clone git@github.com:Relintai/ui_extensions.git ui_extensions + cp -R ../ui_extensions ../engine/modules/ui_extensions +else + cd ui_extensions + + git reset --hard + git pull origin master + git checkout master + git reset --hard + + cd .. + + cp -R ./ui_extensions ../engine/modules/ui_extensions +fi + +if [ ! -d entity_spell_system ]; then + git clone git@github.com:Relintai/entity_spell_system.git entity_spell_system + cp -R ./entity_spell_system ../engine/modules/entity_spell_system +else + cd entity_spell_system + + git reset --hard + git pull origin master + git checkout master + git reset --hard + + cd .. + + cp -R ./entity_spell_system ../engine/modules/entity_spell_system +fi + +if [ ! -d voxelman ]; then + git clone git@github.com:Relintai/voxelman.git voxelman + cp -R ./voxelman ../engine/modules/voxelman +else + cd voxelman + + git reset --hard + git pull origin master + git checkout master + git reset --hard + + cd .. + + cp -R ./voxelman ../engine/modules/voxelman +fi + +if [ ! -d world_generator ]; then + git clone git@github.com:Relintai/world_generator.git world_generator + cp -R ./world_generator ../engine/modules/world_generator +else + cd world_generator + + git reset --hard + git pull origin master + git checkout master + git reset --hard + + cd .. + + cp -R ./world_generator ../engine/modules/world_generator +fi + +if [ ! -d texture_packer ]; then + git clone git@github.com:Relintai/texture_packer.git texture_packer + cp -R ./texture_packer ../engine/modules/texture_packer +else + cd texture_packer + + git reset --hard + git pull origin master + git checkout master + git reset --hard + + cd .. + + cp -R ./texture_packer ../engine/modules/texture_packer +fi + diff --git a/vscode-cpp/launch.json b/vscode-cpp/launch.json new file mode 100644 index 00000000..f401543e --- /dev/null +++ b/vscode-cpp/launch.json @@ -0,0 +1,52 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "build and debug", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/bin/godot.x11.opt.tools.64", + //"args": ["-e"], + "args": ["--path", "/home/relintai/Projects/broken_seals_3d/game/"], + "stopAtEntry": false, + "cwd": "${workspaceFolder}", + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ], + "preLaunchTask": "build", + //"miDebuggerPath": "/usr/bin/gdb" + }, + { + "name": "debug", + "type": "cppdbg", + "request": "launch", + "program": "${workspaceFolder}/bin/godot.x11.opt.tools.64", + //"args": ["-e"], + "args": ["--path", "/home/relintai/Projects/broken_seals_3d/game/"], + "stopAtEntry": false, + "cwd": "${workspaceFolder}", + "environment": [], + "externalConsole": false, + "MIMode": "gdb", + "setupCommands": [ + { + "description": "Enable pretty-printing for gdb", + "text": "-enable-pretty-printing", + "ignoreFailures": true + } + ], + //"preLaunchTask": "build", + //"miDebuggerPath": "/usr/bin/gdb" + } + ] +} \ No newline at end of file diff --git a/vscode-cpp/tasks.json b/vscode-cpp/tasks.json new file mode 100644 index 00000000..02f0215c --- /dev/null +++ b/vscode-cpp/tasks.json @@ -0,0 +1,19 @@ +{ + // See https://go.microsoft.com/fwlink/?LinkId=733558 + // for the documentation about the tasks.json format + "version": "2.0.0", + "tasks": [ + { + "label": "build", + "type": "shell", + "command": "scons", + "group": "build", + "args": [ + "platform=x11", + "target=release_debug", + "-j2" + ], + "problemMatcher": "$msCompile" + } + ] +} \ No newline at end of file