update build script

This commit is contained in:
Matthew 2025-11-21 18:34:26 +11:00
parent ffa56f6947
commit 7f9c3b9dec
2 changed files with 13 additions and 0 deletions

View File

@ -59,3 +59,14 @@ if ! [ -f "${build}/libcglm.a" ]; then
rm $obj
fi
# CGLTF
src="${script_dir}/external/cgltf/cgtlf.c"
flags="-std=c99 -Wno-everything -Iexternal/cgltf -c -static"
obj="${build}/clgtf.o"
lib="${build}/libclgtf.a"
if ! [ -f "${build}/libcgltf.a" ]; then
$c_compiler $flags $src $out $obj
ar rcs $lib $obj
rm $obj
fi

2
external/cgltf/cgltf.c vendored Normal file
View File

@ -0,0 +1,2 @@
#define CGLTF_IMPLEMENTATION
#include "cgltf.h"