forked from seeleteam/go-seele
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuildall.bat
73 lines (63 loc) · 1.04 KB
/
buildall.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
@echo off
goto comment
Build the command lines and tests in Windows.
Must install gcc tool before building.
:comment
set para=%*
if not defined para (
set para=all
)
for %%i in (%para%) do (
call :%%i
)
pause
goto:eof
:all
call :discovery
call :node
call :client
call :light
call :tool
call :vm
goto:eof
:discovery
echo on
go build -o ./build/discovery.exe ./cmd/discovery
@echo "Done discovery building"
@echo off
goto:eof
:node
echo on
go build -o ./build/node.exe ./cmd/node
@echo "Done node building"
@echo off
goto:eof
:client
echo on
go build -o ./build/client.exe ./cmd/client
@echo "Done full node client building"
@echo off
goto:eof
:light
echo on
go build -o ./build/light.exe ./cmd/client/light
@echo "Done light node client building"
@echo off
goto:eof
:tool
echo on
go build -o ./build/tool.exe ./cmd/tool
@echo "Done tool building"
@echo off
goto:eof
:vm
echo on
go build -o ./build/vm.exe ./cmd/vm
@echo "Done vm building"
@echo off
goto:eof
:clean
del build\* /q /f /s
@echo "Done clean the build dir"
@echo off
goto:eof