mirror of
https://github.com/Ed94/VEFontCache-Odin.git
synced 2025-08-05 14:42:42 -07:00
Manually adding thirdparty libs
This commit is contained in:
20
thirdparty/sokol/build_clibs_wasm.sh
vendored
Normal file
20
thirdparty/sokol/build_clibs_wasm.sh
vendored
Normal 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
|
Reference in New Issue
Block a user