0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-13 16:21:57 -05:00

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