wasm: support vendor:stb/truetype and vendor:fontstash

This commit is contained in:
Laytan Laats
2024-07-02 16:03:42 +02:00
parent 4e18e1b191
commit 10c68a8951
8 changed files with 168 additions and 18 deletions
+4
View File
@@ -6,6 +6,10 @@ else
all: unix
endif
wasm:
mkdir -p ../lib
clang -c -Os --target=wasm32 -nostdlib stb_truetype_wasm.c -o ../lib/stb_truetype_wasm.o
unix:
mkdir -p ../lib
$(CC) -c -O2 -Os -fPIC stb_image.c stb_image_write.c stb_image_resize.c stb_truetype.c stb_rect_pack.c stb_vorbis.c