Compare commits
4 commits
feat/dir-l
...
developmen
| Author | SHA1 | Date | |
|---|---|---|---|
| 6214be9525 | |||
| b0c56c0d30 | |||
| 10ec9bb2bf | |||
| 6f11ca2a48 |
2 changed files with 16 additions and 6 deletions
8
.gitignore
vendored
8
.gitignore
vendored
|
|
@ -12,3 +12,11 @@ build/PROJECT.pck
|
||||||
build/PROJECT.x86_64
|
build/PROJECT.x86_64
|
||||||
build/PROJECT.exe
|
build/PROJECT.exe
|
||||||
build.zip
|
build.zip
|
||||||
|
|
||||||
|
*.o
|
||||||
|
compile_commands.json
|
||||||
|
.tree.hash
|
||||||
|
.cache
|
||||||
|
.kdev4
|
||||||
|
*.kdev4
|
||||||
|
*__pycache__
|
||||||
|
|
|
||||||
14
justfile
14
justfile
|
|
@ -1,10 +1,12 @@
|
||||||
set export
|
set export
|
||||||
|
|
||||||
BUILD_NAME := "change_me"
|
BUILD_NAME := "change_me"
|
||||||
|
tree_hash := `tree ./modules | md5sum`
|
||||||
|
compiledb := if tree_hash == `cat .tree.hash` { "no" } else { "yes" }
|
||||||
|
|
||||||
build: format
|
build: format
|
||||||
# Compiling Editor
|
# Compiling Editor
|
||||||
cd engine/ && scons target=editor symbols=yes optimization=debug dev_build=yes linker=mold use_llvm=yes compiledb=yes custom_modules="../modules"
|
cd engine/ && scons target=editor symbols=yes optimization=debug dev_build=yes linker=mold use_llvm=yes compiledb={{compiledb}} custom_modules="../modules"
|
||||||
|
|
||||||
run: build
|
run: build
|
||||||
# Running Editor
|
# Running Editor
|
||||||
|
|
@ -12,7 +14,7 @@ run: build
|
||||||
|
|
||||||
release-linux: build
|
release-linux: build
|
||||||
# Compiling Linux Release
|
# Compiling Linux Release
|
||||||
cd engine/ && scons platform=linuxbsd target=template_release arch=x86_64 linker=mold use_llvm=yes compiledb=yes custom_modules="../modules"
|
cd engine/ && scons platform=linuxbsd target=template_release arch=x86_64 linker=mold use_llvm=yes custom_modules="../modules"
|
||||||
# Preparing Build Environment
|
# Preparing Build Environment
|
||||||
sed -i "s!templatepath!{{`realpath engine/bin/godot.linuxbsd.template_release.x86_64.llvm`}}!" project/export_presets.cfg
|
sed -i "s!templatepath!{{`realpath engine/bin/godot.linuxbsd.template_release.x86_64.llvm`}}!" project/export_presets.cfg
|
||||||
rm -rf build && mkdir build
|
rm -rf build && mkdir build
|
||||||
|
|
@ -24,20 +26,20 @@ release-linux: build
|
||||||
|
|
||||||
release-windows: build
|
release-windows: build
|
||||||
# Compiling Windows Release
|
# Compiling Windows Release
|
||||||
cd engine/ && scons platform=windows target=template_release arch=x86_64 linker=mold use_llvm=yes compiledb=yes custom_modules="../modules"
|
cd engine/ && scons platform=windows target=template_release arch=x86_64 linker=mold custom_modules="../modules"
|
||||||
# Preparing Build Environment
|
# Preparing Build Environment
|
||||||
sed -i "s!templatepath!{{`realpath engine/bin/godot.windows.template_release.x86_64.llvm`}}!" project/export_presets.cfg
|
sed -i "s!templatepath!{{`realpath engine/bin/godot.windows.template_release.x86_64`}}!" project/export_presets.cfg
|
||||||
rm -rf build && mkdir build
|
rm -rf build && mkdir build
|
||||||
engine/bin/godot.*.editor.dev.*.llvm --headless --export-release "Windows" project/project.godot && zip build.zip build/*
|
engine/bin/godot.*.editor.dev.*.llvm --headless --export-release "Windows" project/project.godot && zip build.zip build/*
|
||||||
# Resetting Build Environment
|
# Resetting Build Environment
|
||||||
touch build/.gitkeep
|
touch build/.gitkeep
|
||||||
sed -i "s!{{`realpath engine/bin/godot.windows.template_release.x86_64.llvm`}}!templatepath!" project/export_presets.cfg
|
sed -i "s!{{`realpath engine/bin/godot.windows.template_release.x86_64`}}!templatepath!" project/export_presets.cfg
|
||||||
# Completed Windows Release Build
|
# Completed Windows Release Build
|
||||||
|
|
||||||
initialize-template projectname:
|
initialize-template projectname:
|
||||||
# Initializing Template {{projectname}}
|
# Initializing Template {{projectname}}
|
||||||
sed -i -e "s/PROJECT/{{projectname}}/g" ./modules/PROJECT/register_types.h ./modules/PROJECT/register_types.cpp ./project/project.godot ./project/export_presets.cfg .gitignore
|
sed -i -e "s/PROJECT/{{projectname}}/g" ./modules/PROJECT/register_types.h ./modules/PROJECT/register_types.cpp ./project/project.godot ./project/export_presets.cfg .gitignore
|
||||||
sed "s/change_me/{{projectname}}/" ./justfile
|
sed -i -e "s/change_me/{{projectname}}/" ./justfile
|
||||||
mv ./modules/PROJECT ./modules/{{projectname}}
|
mv ./modules/PROJECT ./modules/{{projectname}}
|
||||||
# Done Initializing, you will still have to update BUILD_NAME in your justfile
|
# Done Initializing, you will still have to update BUILD_NAME in your justfile
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue