diff --git a/Build_Android_Templates.bat b/Build_Android_Templates.bat new file mode 100644 index 0000000..5d516d8 --- /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=yes +call scons -j6 platform=android target=release_debug android_arch=arm64v8 entities_2d=yes +call scons -j6 platform=android target=release_debug android_arch=x86 entities_2d=yes + +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 0000000..87d1461 --- /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=yes +call scons -j6 platform=android target=release android_arch=arm64v8 entities_2d=yes +call scons -j6 platform=android target=release android_arch=x86 entities_2d=yes + +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 0000000..a156817 --- /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=yes + +cd .. diff --git a/Build_WIndows_Templates_rel.bat b/Build_WIndows_Templates_rel.bat new file mode 100644 index 0000000..1853d7d --- /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=yes + + +cd .. diff --git a/Build_Windows-Minimal.bat b/Build_Windows-Minimal.bat new file mode 100644 index 0000000..06158ff --- /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=yes 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 0000000..60644f5 --- /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=yes + +cd .. + diff --git a/Build_Windows2.bat b/Build_Windows2.bat new file mode 100644 index 0000000..88bb156 --- /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=yes + +cd .. + diff --git a/Build_Windows_Debug.bat b/Build_Windows_Debug.bat new file mode 100644 index 0000000..4eacaaf --- /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=yes + +cd .. + diff --git a/Build_Windows_MinGW.bat b/Build_Windows_MinGW.bat new file mode 100644 index 0000000..ee25c32 --- /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=yes use_mingw=yes + +cd .. + diff --git a/Build_Windows_Templates.bat b/Build_Windows_Templates.bat new file mode 100644 index 0000000..5212423 --- /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=yes + + +cd .. + diff --git a/SConstruct b/SConstruct new file mode 100644 index 0000000..9215189 --- /dev/null +++ b/SConstruct @@ -0,0 +1,234 @@ +#!/usr/bin/env python + +# 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 https://mozilla.org/MPL/2.0/. + +EnsureSConsVersion(0, 98, 1) + +import sys +import os +import subprocess +import json +import shutil + +repository_index = 0 +module_clone_path = '/modules/' +clone_command = 'git clone {0} {1}' + +engine_repository = [ ['https://github.com/godotengine/godot.git', 'https://github.com/godotengine/godot.git'], 'engine', '' ] + +module_repositories = [ + [ ['https://github.com/Relintai/world_generator.git', 'git@github.com:Relintai/world_generator.git'], 'world_generator', '' ], + [ ['https://github.com/Relintai/entity_spell_system.git', 'git@github.com:Relintai/entity_spell_system.git'], 'entity_spell_system', '' ], + [ ['https://github.com/Relintai/ui_extensions.git', 'git@github.com:Relintai/ui_extensions.git'], 'ui_extensions', '' ], + [ ['https://github.com/Relintai/texture_packer.git', 'git@github.com:Relintai/texture_packer.git'], 'texture_packer', '' ], + [ ['https://github.com/Relintai/godot_fastnoise.git', 'git@github.com:Relintai/godot_fastnoise.git'], 'fastnoise', '' ], +] + +addon_repositories = [ + [ ['https://github.com/Relintai/ess_data.git', 'git@github.com:Relintai/ess_data.git' ], 'ess_data', '' ], +] + +third_party_addon_repositories = [ +] + +target_commits = {} + +def load_target_commits_array(): + global target_commits + + if os.path.isfile('./HEADS'): + with open('./HEADS', 'r') as infile: + target_commits = json.load(infile) + else: + target_commits = {} + +def save_target_commits_array(): + with open('./HEADS', 'w') as outfile: + json.dump(target_commits, outfile) + +def update_repository(data, clone_path): + cwd = os.getcwd() + + full_path = cwd + clone_path + data[1] + '/' + + if not os.path.isdir(full_path): + os.chdir(cwd + clone_path) + + subprocess.call(clone_command.format(data[0][repository_index], data[1]), shell=True) + + os.chdir(full_path) + + subprocess.call('git reset --hard', shell=True) + subprocess.call('git pull origin master', shell=True) + subprocess.call('git checkout master', shell=True) + subprocess.call('git reset --hard', shell=True) + + process = subprocess.Popen('git rev-parse HEAD', shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) + output = process.communicate()[0].decode().strip() + target_commits[data[1]] = output + + os.chdir(cwd) + +def setup_repository(data, clone_path): + cwd = os.getcwd() + + full_path = cwd + clone_path + data[1] + '/' + + if not os.path.isdir(full_path): + os.chdir(cwd + clone_path) + + subprocess.call(clone_command.format(data[0][repository_index], data[1]), shell=True) + + os.chdir(full_path) + + subprocess.call('git reset --hard', shell=True) + subprocess.call('git pull origin master', shell=True) + + target = 'master' + + if data[1] in target_commits: + target = target_commits[data[1]] + + subprocess.call('git checkout ' + target, shell=True) + subprocess.call('git reset --hard', shell=True) + + os.chdir(cwd) + +def copy_repository(data, target_folder, clone_path): + copytree(os.path.abspath(clone_path + data[1] + '/' + data[2]), os.path.abspath(target_folder + data[1])) + +def copytree(src, dst): + for item in os.listdir(src): + sp = os.path.join(src, item) + dp = os.path.join(dst, item) + + if os.path.isdir(sp): + if os.path.isdir(dp): + shutil.rmtree(dp) + + shutil.copytree(sp, dp) + else: + if not os.path.isdir(dst): + os.makedirs(dst) + + shutil.copy2(sp, dp) + +def update_engine(): + update_repository(engine_repository, '/') + +def update_modules(): + for rep in module_repositories: + update_repository(rep, module_clone_path) + copy_repository(rep, './engine/modules/', '.' + module_clone_path) + +def update_addons(): + for rep in addon_repositories: + update_repository(rep, module_clone_path) + copy_repository(rep, './game/addons/', '.' + module_clone_path) + +def update_addons_third_party_addons(): + for rep in third_party_addon_repositories: + update_repository(rep, module_clone_path) + copy_repository(rep, './game/addons/', '.' + module_clone_path) + +def update_all(): + update_engine() + update_modules() + update_addons() + update_addons_third_party_addons() + + save_target_commits_array() + + +def setup_engine(): + setup_repository(engine_repository, '/') + +def setup_modules(): + for rep in module_repositories: + setup_repository(rep, module_clone_path) + copy_repository(rep, './engine/modules/', '.' + module_clone_path) + +def setup_addons(): + for rep in addon_repositories: + setup_repository(rep, module_clone_path) + copy_repository(rep, './game/addons/', '.' + module_clone_path) + +def setup_addons_third_party_addons(): + for rep in third_party_addon_repositories: + setup_repository(rep, module_clone_path) + copy_repository(rep, './game/addons/', '.' + module_clone_path) + +def setup_all(): + setup_engine() + setup_modules() + setup_addons() + setup_addons_third_party_addons() + +env = Environment() +opts = Variables(args=ARGUMENTS) + +opts.Add('a', 'What to do', '') +opts.Add(EnumVariable('action', 'What to do', 'setup', ('setup', 'update'))) +opts.Add('t', 'Action target', '') +opts.Add(EnumVariable('target', 'Action target', 'all', ('all', 'engine', 'modules', 'all_addons', 'addons', 'third_party_addons'))) +opts.Add(EnumVariable('repository_type', 'Type of repositories to clone from first', 'http', ('http', 'ssh'))) + +opts.Update(env) +Help(opts.GenerateHelpText(env)) + +load_target_commits_array() + +rt = env['repository_type'] + +if rt == 'ssh': + repository_index = 1 + +action = env['action'] +target = env['target'] + +if env['a']: + action = env['a'] + +if env['t']: + target = env['t'] + +if not os.path.isdir('./modules'): + os.mkdir('./modules') + + +if action == 'setup' or action == 's': + if target == 'all': + setup_all() + elif target == 'engine': + setup_engine() + elif target == 'modules': + setup_modules() + elif target == 'all_addons': + setup_addons() + setup_addons_third_party_addons() + elif target == 'addons': + setup_addons() + elif target == 'third_party_addons': + setup_addons_third_party_addons() +elif action == 'update' or action == 'u': + if target == 'all': + update_all() + elif target == 'engine': + update_engine() + save_target_commits_array() + elif target == 'modules': + update_modules() + save_target_commits_array() + elif target == 'all_addons': + update_addons() + update_addons_third_party_addons() + save_target_commits_array() + elif target == 'addons': + update_addons() + save_target_commits_array() + elif target == 'third_party_addons': + update_addons_third_party_addons() + save_target_commits_array() + diff --git a/Visual_Studio_Project.bat b/Visual_Studio_Project.bat new file mode 100644 index 0000000..6df23c8 --- /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=yes entity_mem_tools=no diff --git a/build_all.bat b/build_all.bat new file mode 100644 index 0000000..d15bc15 --- /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 0000000..4a833e9 --- /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=yes +scons -j6 platform=android target=release_debug android_arch=arm64v8 entities_2d=yes +scons -j6 platform=android target=release_debug android_arch=x86 entities_2d=yes + +cd ./platform/android/java + +./gradlew generateGodotTemplates + +cd .. +cd .. +cd .. +cd .. diff --git a/build_android_templates_release.sh b/build_android_templates_release.sh new file mode 100755 index 0000000..bb2dfeb --- /dev/null +++ b/build_android_templates_release.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 android_arch=armv7 entities_2d=yes +scons -j6 platform=android target=release android_arch=arm64v8 entities_2d=yes +scons -j6 platform=android target=release android_arch=x86 entities_2d=yes + +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 0000000..6fd5adf --- /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=yes module_arkit_enabled=no game_center=no +scons -j6 p=iphone tools=no target=release_debug arch=arm64 entities_2d=yes 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 0000000..f20b1a1 --- /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=yes module_arkit_enabled=no game_center=no +scons -j6 p=iphone tools=no target=release arch=arm64 entities_2d=yes 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 0000000..2d905f7 --- /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=yes + +cd .. \ No newline at end of file diff --git a/build_linux.sh b/build_linux.sh new file mode 100755 index 0000000..0560ac5 --- /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=yes + +# use_llvm=yes + + diff --git a/build_linux_j2.sh b/build_linux_j2.sh new file mode 100644 index 0000000..0560ac5 --- /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=yes + +# use_llvm=yes + + diff --git a/build_linux_templates_release.sh b/build_linux_templates_release.sh new file mode 100755 index 0000000..7a716e6 --- /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_debug entities_2d=yes tools=no + +# use_llvm=yes + + diff --git a/build_osx.sh b/build_osx.sh new file mode 100755 index 0000000..e63a9c4 --- /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=yes + +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 0000000..4b5b7ae --- /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=yes +rem call scons -j6 platform=uwp target=release_debug entities_2d=yes +rem call scons -j6 platform=uwp target=release entities_2d=yes + +cd .. + diff --git a/editor.bat b/editor.bat new file mode 100644 index 0000000..bf1a07a --- /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 0000000..9d6b4dd --- /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