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.*