wasm: support more vendor libraries

Adds support for:
- box2d
- cgltf
- stb image
- stb rect pack
This commit is contained in:
Laytan Laats committed 2024-09-09 18:49:13 +02:00
1 parent d783bca297
commit 5ae27c6ebc
45 files changed
+2828 -231

No files matched your search

+4
View File
@@ -6,6 +6,10 @@ else
all: unix
endif
wasm:
mkdir -p ../lib
$(CC) -c -Os --target=wasm32 --sysroot=$(shell odin root)/vendor/libc cgltf.c -o ../lib/cgltf_wasm.o
unix:
mkdir -p ../lib
$(CC) -c -O2 -Os -fPIC cgltf.c