forked from godotengine/godot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2124995
commit a6cad4f
Showing
4 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
[submodule "modules/voxel"] | ||
path = modules/voxel | ||
url = https://github.com/mschwarz1/godot_voxel.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
set -e | ||
|
||
|
||
precision="double" | ||
if [[ -n "${PRECISION}" ]] ; then | ||
precision="${PRECISION}" | ||
fi | ||
|
||
|
||
working_dir=$(pwd) | ||
|
||
scons platform=windows module_mono_enabled=yes arch=x86_64 precision="${precision}" dev_build=yes use_mingw=yes separate_debug_symbols=yes -j8 | ||
|
||
if [ "$precision" = "double" ]; then | ||
bin/godot.windows.editor.dev.double.x86_64.mono.exe --generate-mono-glue modules/mono/glue --precision="${precision}" | ||
else | ||
bin/godot.windows.editor.dev.x86_64.mono.exe --generate-mono-glue modules/mono/glue --precision="${precision}" | ||
fi | ||
|
||
python ./modules/mono/build_scripts/build_assemblies.py --godot-output-dir ./bin --push-nupkgs-local "../GodotNugetSourceData" --precision="${precision}" | ||
scons module_mono_enabled=yes arch=x86_64 precision="${precision}" dev_build=yes use_mingw=yes separate_debug_symbols=yes -j8 | ||
|
||
# Copy nuget data to common place so it can use build templates | ||
cp -r ../GodotNugetSourceData ${APPDATA}/NuGet/GodotNugetSource | ||
cp -r ../GodotNugetSourceData ${APPDATA}/NuGet/LocalNugetSource | ||
|
||
if [[ -n "${TEMPLATES}" ]] ; then | ||
echo "" | ||
echo "Building templates!!" | ||
echo "" | ||
sleep 1 | ||
scons target=template_release tools=no arch=x86_64 module_mono_enabled=yes precision="${precision}" use_mingw=yes separate_debug_symbols=yes -j8 | ||
scons target=template_debug tools=no arch=x86_64 module_mono_enabled=yes precision="${precision}" use_mingw=yes separate_debug_symbols=yes -j8 | ||
|
||
# Android export templates | ||
scons platform=android target=template_release arch=arm32 tools=no module_mono_enabled=yes precision="${precision}" use_mingw=yes separate_debug_symbols=yes -j8 | ||
scons platform=android target=template_release arch=arm64 tools=no module_mono_enabled=yes precision="${precision}" use_mingw=yes separate_debug_symbols=yes -j8 | ||
cd platform/android/java | ||
# On Windows | ||
./gradlew generateGodotTemplates | ||
cd $working_dir | ||
|
||
scons platform=android target=template_debug arch=arm32 tools=no module_mono_enabled=yes precision="${precision}" use_mingw=yes separate_debug_symbols=yes -j8 | ||
scons platform=android target=template_debug arch=arm64 tools=no module_mono_enabled=yes precision="${precision}" use_mingw=yes separate_debug_symbols=yes -j8 | ||
cd platform/android/java | ||
# On Windows | ||
./gradlew generateGodotTemplates | ||
cd $working_dir | ||
|
||
fi | ||
|
||
# I should also have it refresh the project but that might be more difficult depending on the project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
@echo off | ||
|
||
scons "platform=windows" "module_mono_enabled=yes" "precision=double" "dev_build=yes" "-j8" | ||
bin/godot.windows.editor.dev.double.x86_64.mono.exe "--generate-mono-glue" "modules\mono\glue" "--precision=double" | ||
python "%CD%\modules\mono\build_scripts\build_assemblies.py" "--godot-output-dir" "%CD%\bin" "--push-nupkgs-local" "%CD%\..\GodotNugetSourceData" "--precision=double" | ||
scons "module_mono_enabled=yes" "precision=double" "-j8" | ||
COPY "%CD%\..\GodotNugetSourceData" "%APPDATA%\NuGet\GodotNugetSource" | ||
COPY "%CD%\..\GodotNugetSourceData" "%APPDATA%\NuGet\LocalNugetSource" | ||
IF [[ "-n" "%TEMPLATES%" "]]" ( | ||
scons "target=template_release" "tools=no" "module_mono_enabled=yes" "precision=double" "-j8" | ||
scons "target=template_debug" "tools=no" "module_mono_enabled=yes" "precision=double" "-j8" | ||
) |