19 Star 105 Fork 34

百度开源 / XuperChain

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 879 Bytes
一键复制 编辑 原始数据 按行查看 历史
ifeq ($(OS),Windows_NT)
PLATFORM="Windows"
else
ifeq ($(shell uname),Darwin)
PLATFORM="MacOS"
else
PLATFORM="Linux"
endif
endif
all: build
export GO111MODULE=on
XCHAIN_ROOT := ${PWD}/core
export XCHAIN_ROOT
PATH := ${PWD}/core/xvm/compile/wabt/build:$(PATH)
build: build-release
build-release:
PLATFORM=$(PLATFORM) ./core/scripts/build.sh
build-debug:
PLATFORM=$(PLATFORM) XCHAIN_BUILD_DEBUG=1 ./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 core/plugins
rm -rf output
rm -f xchain-cli
rm -f xchain
rm -f dump_chain
rm -f event_client
rm -rf ./core/xvm/compile/wabt/build/
.PHONY: all test clean
Go
1
https://gitee.com/baidu/xuperchain.git
git@gitee.com:baidu/xuperchain.git
baidu
xuperchain
XuperChain
master

搜索帮助