Newer
Older
.PHONY: update master release update_master update_release build clean binary tests wasm_tests go_tests
go mod vendor -e
update:
-GOFLAGS="" go get all
build:
GOFLAGS="" go get gitlab.com/xx_network/primitives@release
GOFLAGS="" go get gitlab.com/elixxir/primitives@release
GOFLAGS="" go get gitlab.com/xx_network/crypto@release
GOFLAGS="" go get gitlab.com/elixxir/crypto@release
GOFLAGS="" go get gitlab.com/xx_network/primitives@master
GOFLAGS="" go get gitlab.com/xx_network/crypto@master
GOFLAGS="" go get gitlab.com/elixxir/crypto@master
GOFLAGS="" go get -d gitlab.com/elixxir/client/v4@master

Jono Wenger
committed
GOOS=js GOARCH=wasm go build -ldflags '-w -s' -trimpath -o xxdk.wasm main.go
worker_binaries:
GOOS=js GOARCH=wasm go build -ldflags '-w -s' -trimpath -o xxdk-channelsIndexedDkWorker.wasm ./indexedDb/impl/channels/...
GOOS=js GOARCH=wasm go build -ldflags '-w -s' -trimpath -o xxdk-dmIndexedDkWorker.wasm ./indexedDb/impl/dm/...
GOOS=js GOARCH=wasm go build -ldflags '-w -s' -trimpath -o xxdk-stateIndexedDkWorker.wasm ./indexedDb/impl/state/...
GOOS=js GOARCH=wasm go build -ldflags '-w -s' -trimpath -o xxdk-logFileWorker.wasm ./logging/workerThread/...
binaries: binary worker_binaries
wasmException = "vendor/gitlab.com/elixxir/wasm-utils/exception"

Jono Wenger
committed
wasm_tests:
cp $(wasmException)/throws.go $(wasmException)/throws.go.bak
cp $(wasmException)/throws.dev $(wasmException)/throws.go

Richard T. Carback III
committed
GOOS=js GOARCH=wasm go test -v ./...
mv $(wasmException)/throws.go.bak $(wasmException)/throws.go

Jono Wenger
committed
go_tests:
go test ./... -v

Jono Wenger
committed
tests: wasm_tests go_tests