Skip to content

Commit

Permalink
Clean start
Browse files Browse the repository at this point in the history
  • Loading branch information
github-bot committed Sep 10, 2024
1 parent 2124995 commit a6cad4f
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
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
52 changes: 52 additions & 0 deletions buildScript
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
12 changes: 12 additions & 0 deletions buildScript.bat
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"
)
1 change: 1 addition & 0 deletions modules/voxel
Submodule voxel added at 87975a

0 comments on commit a6cad4f

Please sign in to comment.