Fix Makefile to build WASM examples.

- Add --preload-file flag before specifying the resource dir
- Add empty resource dir to `shapes/` (otherwise wasm-ld will fail)
- Add wasm outputs to .gitigore
This commit is contained in:
Ryan Roden-Corrent 2021-08-07 11:45:39 -04:00
commit 4877aa9723
No known key found for this signature in database
GPG key ID: 435D8B10692555C9

6
.gitignore vendored
View file

@ -58,6 +58,12 @@ packages/
*.bc
*.so
# Ignore wasm data in examples/
examples/**/*.wasm
examples/**/*.data
examples/**/*.js
examples/**/*.html
# Ignore files build by xcode
*.mode*v*
*.pbxuser