21 Star 56 Fork 36

百度开源 / XuperUnion

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 733 Bytes
一键复制 编辑 原始数据 按行查看 历史
fanbingxin 提交于 2020-07-13 16:12 . xvm: remove wasm spec test (#871)
ifeq ($(OS),Windows_NT)
PLATFORM="Windows"
else
ifeq ($(shell uname),Darwin)
PLATFORM="MacOS"
else
PLATFORM="Linux"
endif
endif
all: build
export GO111MODULE=on
export GOFLAGS=-mod=vendor
XCHAIN_ROOT := ${PWD}/core
export XCHAIN_ROOT
PATH := ${PWD}/core/xvm/compile/wabt/build:$(PATH)
build:
PLATFORM=$(PLATFORM) ./core/scripts/build.sh
test:
go test -coverprofile=coverage.txt -covermode=atomic ./...
# test wasm sdk
GOOS=js GOARCH=wasm go build github.com/xuperchain/xuperchain/core/contractsdk/go/driver
contractsdk:
make -C core/contractsdk/cpp build
make -C core/contractsdk/cpp test
clean:
rm -rf output
rm -f xchain-cli
rm -f xchain
rm -f dump_chain
rm -f event_client
.PHONY: all test clean
Go
1
https://gitee.com/baidu/XuperUnion.git
git@gitee.com:baidu/XuperUnion.git
baidu
XuperUnion
XuperUnion
master

搜索帮助