1 Star 0 Fork 35

gjj/XuperChain

forked from 百度开源/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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/gujinjiang/xuperchain.git
git@gitee.com:gujinjiang/xuperchain.git
gujinjiang
xuperchain
XuperChain
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385