1
0
mirror of https://github.com/taigrr/wasm-experiments synced 2025-01-18 04:03:21 -08:00

Add vecty example

This commit is contained in:
Johan Brandhorst
2019-07-01 20:11:14 +01:00
parent 497bc79f39
commit f488b6c469
5 changed files with 137 additions and 0 deletions

View File

@@ -68,6 +68,12 @@ vugu: clean
cp ./vugu/index.html ./html/
cp $$(go env GOROOT)/misc/wasm/wasm_exec.js ./html/wasm_exec.js
.PHONY: vecty
vecty: clean
GOOS=js GOARCH=wasm go build -o ./html/test.wasm ./vecty/main.go
cp ./vecty/index.html ./html/index.html
cp $$(go env GOROOT)/misc/wasm/wasm_exec.js ./html/wasm_exec.js
test: clean
GOOS=js GOARCH=wasm go test -c -o ./html/test.wasm ./test/