Manually adding thirdparty libs

This commit is contained in:
2025-04-14 14:49:36 -04:00
parent 1bd2dc2333
commit 77f1466ae3
70 changed files with 60610 additions and 4 deletions

20
thirdparty/sokol/build_clibs_wasm.sh vendored Normal file
View File

@@ -0,0 +1,20 @@
#!/bin/bash
set -e
declare -a libs=("log" "gfx" "app" "glue" "time" "audio" "debugtext" "shape" "gl")
for l in "${libs[@]}"
do
echo "${l}/sokol_${l}_wasm_gl_debug.a"
emcc -c -g -DIMPL -DSOKOL_GLES3 c/sokol_$l.c
emar rcs $l/sokol_${l}_wasm_gl_debug.a sokol_$l.o
rm sokol_$l.o
done
for l in "${libs[@]}"
do
echo "${l}/sokol_${l}_wasm_gl_release.a"
emcc -c -O2 -DNDEBUG -DIMPL -DSOKOL_GLES3 c/sokol_$l.c
emar rcs $l/sokol_${l}_wasm_gl_release.a sokol_$l.o
rm sokol_$l.o
done