diff options
author | cyBerta <cyberta@riseup.net> | 2021-11-28 18:21:54 +0100 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2021-11-28 18:21:54 +0100 |
commit | abcee0fbe2384302efc523fe65a6b6d0dee17e36 (patch) | |
tree | b25424107b4fec410c7bae8a8cc68904c9af3b57 | |
parent | 27aefab48e1423c763ed477c720cae7c11ca0f22 (diff) |
skip compiling tor
-rwxr-xr-x | scripts/build_deps.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/build_deps.sh b/scripts/build_deps.sh index fe7d1708..fbac5995 100755 --- a/scripts/build_deps.sh +++ b/scripts/build_deps.sh @@ -15,6 +15,7 @@ DIR_GOLIBS=./bitmaskcore/lib/ DIR_TORLIBS=./tor-android/external/lib EXPECTED_NDK_VERSION="21.4.7075529" EXPECTED_ANDROID_NDK_RELEASE_VERSION="r21e" +BUILD_TOR=false # init # look for empty dir @@ -36,8 +37,9 @@ echo "ndk version: $NDK_VERSION" echo "ANDROID_NDK_HOME: $ANDROID_NDK_HOME" # build tor libs -if [[ $(ls -A ${DIR_TORLIBS}) ]] -then +if [[ ${BUILD_TOR} == false ]]; then + echo "skipping Tor" +elif [[ $(ls -A ${DIR_TORLIBS}) ]]; then echo "Dirty build: Reusing tor libraries" else echo "Clean build: compiling tor libraries" |