android: Use custom-built OpenSSL for GH action
This commit is contained in:
+15
-10
@@ -110,13 +110,19 @@ build_openssl()
|
|||||||
|
|
||||||
echo "$ build_openssl()"
|
echo "$ build_openssl()"
|
||||||
|
|
||||||
curl -L $SSL_SRC | tar xz -C $DEPS_BUILD_DIR &&
|
curl -L $SSL_SRC | tar xz -C $DEPS_BUILD_DIR || exit $?
|
||||||
cd $SSL_DIR &&
|
|
||||||
./config --prefix=$SSL_INS --openssldir=$SSL_INS --libdir=lib $SSL_OPT &&
|
if [ "$TEST" = "android" ]; then
|
||||||
make -j4 >/dev/null &&
|
OPENSSL_SRC=${SSL_DIR} \
|
||||||
sudo make install_sw >/dev/null &&
|
NO_DOCKER=1 src/frontends/android/openssl/build.sh || exit $?
|
||||||
sudo ldconfig || exit $?
|
else
|
||||||
cd -
|
cd $SSL_DIR &&
|
||||||
|
./config --prefix=$SSL_INS --openssldir=$SSL_INS --libdir=lib $SSL_OPT &&
|
||||||
|
make -j4 >/dev/null &&
|
||||||
|
sudo make install_sw >/dev/null &&
|
||||||
|
sudo ldconfig || exit $?
|
||||||
|
cd -
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
use_custom_openssl()
|
use_custom_openssl()
|
||||||
@@ -308,9 +314,8 @@ win*)
|
|||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
android)
|
android)
|
||||||
if test "$1" = "deps"; then
|
if test "$1" = "build-deps"; then
|
||||||
git clone https://github.com/strongswan/boringssl.git -b ndk-static \
|
build_openssl
|
||||||
src/frontends/android/app/src/main/jni/openssl
|
|
||||||
fi
|
fi
|
||||||
TARGET=distdir
|
TARGET=distdir
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user