go-rln/Makefile
Richard Ramos 7c7e6a9171
feat: cross compilation and API refactor (#1)
* chore: use cross instead of rustup for building rln

* chore: generate protobuffer and contract

* refactor: make API match nwaku

* feat: add WakuRLNRelay type

* test: rln

* chore: add more architectures

* refactor: use time.Duration instead of uint/float
2022-07-04 13:01:54 -04:00

20 lines
545 B
Makefile

.PHONY: rlnlib
SHELL := bash # the shell used internally by Make
GOBIN ?= $(shell which go)
rlnlib-cross:
scripts/build-cross.sh
cd lib/rln && cbindgen --config ../cbindgen.toml --crate rln --output ../../rln/librln.h --lang c
rlnlib:
scripts/build.sh
cd lib/rln && cbindgen --config ../cbindgen.toml --crate rln --output ../../rln/librln.h --lang c
generate:
${GOBIN} generate ./rln/pb/generate.go
${GOBIN} generate ./rln/contracts/generate.go
test:
LD_LIBRARY_PATH="${PWD}/libs/x86_64-unknown-linux-gnu/" go test ./... -count 1 -v