chore: update Makefile to add missing headers to resgen files

This commit is contained in:
Nick Fisher
2024-08-27 21:51:29 +08:00
parent 704b7f6734
commit 2331f2c31a

View File

@@ -26,6 +26,11 @@ materials: FORCE
$(FILAMENT_PATH)/resgen -c -p image -x thermion_dart/native/include/material/ materials/image.filamat
$(FILAMENT_PATH)/matc -a opengl -a metal -o materials/gizmo.filamat materials/gizmo.mat
$(FILAMENT_PATH)/resgen -c -p gizmo -x thermion_dart/native/include/material/ materials/gizmo.filamat
echo '#include "gizmo.h"' | cat - thermion_dart/native/include/material/gizmo.c > thermion_dart/native/include/material/gizmo.c.new
echo '#include "image.h"' | cat - thermion_dart/native/include/material/image.c > thermion_dart/native/include/material/image.c.new
mv thermion_dart/native/include/material/image.c.new thermion_dart/native/include/material/image.c
mv thermion_dart/native/include/material/gizmo.c.new thermion_dart/native/include/material/gizmo.c
#rm materials/*.filamat
FORCE: ;