Files
godot-flecs-character-module/Makefile
2023-09-13 03:04:01 +03:00

32 lines
1.3 KiB
Makefile

BLENDER = ../../blender-3.3.1-linux-x64/blender
SERVER = src/godot/bin/godot_server.x11.opt.tools.64
.PHONY: all godot-editor-main export export-models export-clothes export-clean export-linux-demo export-windows-demo export-binaries patch
all: godot-editor-main godot-main
godot-main: patch
cd src/godot; \
scons platform=x11 target=release tools=no custom_modules=../modules -j16; \
scons platform=x11 target=release_debug tools=no custom_modules=../modules -j16;
cd src/godot; \
scons platform=x11 target=release tools=no custom_modules=../modules -j16; \
scons platform=server target=release_debug tools=yes custom_modules=../modules -j16
godot-editor-main: patch
cd src/godot; \
scons platform=x11 target=release_debug tools=yes custom_modules=../modules -j16;
patch: ./src/godot/scene/animation/skeleton_ik.cpp
cd ./src/godot && git reset --hard HEAD && for p in ../patches/*.patch; do git apply $$p; done
sed -e 's/ERR_FAIL_COND_V(-1 == p_task->root_bone, false);//g' -i ./src/godot/scene/animation/skeleton_ik.cpp
export: export-models export-clothes
rm -Rf godot/.import
export-clean:
rm -f assets/blender/scripts/tmp-*.blend
export-models: export-clean
$(BLENDER) -b -Y -P assets/blender/scripts/export_models.py
export-clothes: export-clean
$(BLENDER) -b -Y -P assets/blender/scripts/export_clothes.py