Compile to Emscripten HTML file

This commit is contained in:
Rafael Caricio 2020-09-22 09:46:47 +02:00
parent 1688c098ee
commit 496cad8aec
Signed by: rafaelcaricio
GPG Key ID: 3C86DBCE8E93C947
2 changed files with 7 additions and 0 deletions

6
.cargo/config Normal file
View File

@ -0,0 +1,6 @@
[target.wasm32-unknown-emscripten]
rustflags = [
"-C", "link-arg=-s",
"-C", "link-arg=USE_SDL=2",
"-C", "link-arg=-olvgl_example.html",
]

1
.gitignore vendored
View File

@ -1 +1,2 @@
/target
lvgl_example.*