File tree Expand file tree Collapse file tree 1 file changed +8
-24
lines changed Expand file tree Collapse file tree 1 file changed +8
-24
lines changed Original file line number Diff line number Diff line change 12
12
fi
13
13
ARGS=" -v"
14
14
15
- while getopts " uaitc :l:dro:p" option
15
+ while getopts " utc :l:dro:p" option
16
16
do
17
17
case " $option "
18
18
in
19
19
u) UPX=true;;
20
- i) IOS=true;;
21
- a) ANDROID=true;;
22
20
t) TABLES=true;;
23
21
c) GCFLAGS=" $GCFLAGS $OPTARG " ;;
24
22
l) LDFLAGS=" $LDFLAGS $OPTARG " ;;
@@ -33,25 +31,11 @@ if [ -z $TABLES ] && [ -z $DEBUG ]; then
33
31
LDFLAGS=" $LDFLAGS -s -w"
34
32
fi
35
33
36
- if [ $IOS ]; then
37
- echo " Building framework for iOS"
38
- go get golang.org/x/mobile/bind
39
- gomobile bind -target ios -tags mobile -o Mesh.framework -ldflags=" $LDFLAGS $STRIP " -gcflags=" $GCFLAGS " \
40
- github.com/RiV-chain/RiV-mesh-extras/src/mobile \
41
- github.com/RiV-chain/RiV-mesh/src/config
42
- elif [ $ANDROID ]; then
43
- echo " Building aar for Android"
44
- go get golang.org/x/mobile/bind
45
- gomobile bind -target android -tags mobile -o mesh.aar -ldflags=" $LDFLAGS $STRIP " -gcflags=" $GCFLAGS " \
46
- github.com/RiV-chain/RiV-mesh-extras/src/mobile \
47
- github.com/RiV-chain/RiV-mesh/src/config
48
- else
49
- for CMD in ./cmd/mesh ./cmd/meshctl ./contrib/ui/mesh-ui ; do
50
- echo " Building: $CMD "
51
- go build $ARGS -ldflags " $LDFLAGS " -gcflags " $GCFLAGS " $CMD
34
+ for CMD in ./cmd/mesh ./cmd/meshctl ./contrib/ui/mesh-ui ; do
35
+ echo " Building: $CMD "
36
+ go build $ARGS -ldflags " $LDFLAGS " -gcflags " $GCFLAGS " $CMD
52
37
53
- if [ $UPX ]; then
54
- upx --brute $CMD
55
- fi
56
- done
57
- fi
38
+ if [ $UPX ]; then
39
+ upx --brute $CMD
40
+ fi
41
+ done
You can’t perform that action at this time.
0 commit comments