mirror of
https://github.com/nicbarker/clay.git
synced 2025-01-23 18:06:04 +00:00
19 lines
1.4 KiB
Bash
Executable File
19 lines
1.4 KiB
Bash
Executable File
mkdir -p build/clay \
|
|
&& clang \
|
|
-Wall \
|
|
-Werror \
|
|
-Os \
|
|
-DCLAY_WASM \
|
|
-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 |