wip: add build script for rust module

This commit is contained in:
AzazelN28
2024-10-03 16:05:08 +02:00
parent 0f0b23e38b
commit c7f801dd44

3
frontend/render_v2/rs/build Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/bash
EMCC_CFLAGS="--no-entry -s ERROR_ON_UNDEFINED_SYMBOLS=0 -s MAX_WEBGL_VERSION=2 -s MODULARIZE=1 -s EXPORT_NAME=createRustSkiaModule -s EXPORTED_RUNTIME_METHODS=GL -s ENVIRONMENT=webgl" cargo build --target=wasm32-unknown-emscripten