From 7f9c3b9dec435f8c33ffbad944aacea8532fd205 Mon Sep 17 00:00:00 2001 From: Matthew Date: Fri, 21 Nov 2025 18:34:26 +1100 Subject: [PATCH] update build script --- build.sh | 11 +++++++++++ external/cgltf/cgltf.c | 2 ++ 2 files changed, 13 insertions(+) create mode 100644 external/cgltf/cgltf.c diff --git a/build.sh b/build.sh index 9481fcd..0bf4911 100755 --- a/build.sh +++ b/build.sh @@ -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 diff --git a/external/cgltf/cgltf.c b/external/cgltf/cgltf.c new file mode 100644 index 0000000..ad581e3 --- /dev/null +++ b/external/cgltf/cgltf.c @@ -0,0 +1,2 @@ +#define CGLTF_IMPLEMENTATION +#include "cgltf.h"