Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Commit

Permalink
use git submodule instead of patch
Browse files Browse the repository at this point in the history
  • Loading branch information
segfault-bilibili committed Feb 10, 2022
1 parent 5b6f6b9 commit 922b411
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 218 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "gost"]
path = gost
url = https://github.com/segfault-bilibili/gost.git
9 changes: 3 additions & 6 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ NDK_VERSION_IF_MISSING=r23b
GOST_VERSION=2.11.1
GOLANG_VERSION=1.17.6
cd $( cd "$( dirname "$0" )" && pwd )
git submodule update --init --recursive
if [ ! -e build ]
then
mkdir build
Expand All @@ -18,13 +19,9 @@ fi
export PATH=$PWD/go/bin:$PATH
export GOROOT=$PWD/go
go version
if [ ! -e gost ]
if [ ! -e gost ] && [ -d ../gost ]
then
curl "https://github.com/ginuerzh/gost/archive/v$GOST_VERSION.tar.gz" -L | tar -zx || exit $?
mv gost-$GOST_VERSION gost
cd gost
patch -p1 -r . < ../../gost.patch
cd ..
mv -v ../gost .
fi
IS_NDK_MISSING=true
if find $ANDROID_NDK_ROOT | grep clang$
Expand Down
1 change: 1 addition & 0 deletions gost
Submodule gost added at 520ecf
212 changes: 0 additions & 212 deletions gost.patch

This file was deleted.

0 comments on commit 922b411

Please sign in to comment.