clay/examples/clay-official-website/build.sh

18 lines
1.3 KiB
Bash
Raw Normal View History

2024-08-23 04:05:23 +00:00
mkdir -p build/clay \
&& clang \
-Os \
-DCLAY_WASM \
2024-09-16 09:34:59 +00:00
-DCLAY_DEBUG \
2024-08-23 04:05:23 +00:00
-mbulk-memory \
--target=wasm32 \
-nostdlib \
-Wl,--strip-all \
-Wl,--export-dynamic \
-Wl,--no-entry \
-Wl,--export=__heap_base \
-Wl,--export=ACTIVE_RENDERER_INDEX \
-Wl,--initial-memory=6553600 \
-o build/clay/index.wasm \
main.c \
&& cp index.html build/clay/index.html && cp -r fonts/ build/clay/fonts \
&& cp index.html build/clay/index.html && cp -r images/ build/clay/images