Fix Makefile to build WASM examples. (#1906)

* 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

* Delete .gitignore

Co-authored-by: Ray <raysan5@gmail.com>
This commit is contained in:
Ryan Roden-Corrent
2021-08-07 17:30:48 -04:00
committed by GitHub
parent 7ca9131fd4
commit e6fe8169c2
2 changed files with 7 additions and 1 deletions

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