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
commit e6fe8169c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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