update build script
This commit is contained in:
parent
ffa56f6947
commit
7f9c3b9dec
11
build.sh
11
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
|
||||
|
||||
2
external/cgltf/cgltf.c
vendored
Normal file
2
external/cgltf/cgltf.c
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
#define CGLTF_IMPLEMENTATION
|
||||
#include "cgltf.h"
|
||||
Loading…
x
Reference in New Issue
Block a user