-
Notifications
You must be signed in to change notification settings - Fork 13
/
build_libssh2.sh
executable file
·38 lines (31 loc) · 1.19 KB
/
build_libssh2.sh
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
#!/bin/bash -e
cd libssh2
echo -e "\n\n----- Build libssh2 (`git describe --tags`) -----"
./buildconf
INSTALL_DIR="$1"
export LDFLAGS="$LDFLAGS -latomic"
echo -e "\n++ Build libssh2 armeabi-v7a ++"
../androidbuildlib out_path=../libs \
minsdkversion=21 \
target_abis="armeabi-v7a" \
configure_params="--disable-shared --enable-static --with-libssl-prefix=$INSTALL_DIR/armeabi-v7a" \
silent="$SILENT" custom_silent="--silent"
echo -e "\n++ Build libssh2 x86 ++"
../androidbuildlib out_path=../libs \
minsdkversion=21 \
target_abis="x86" \
configure_params="--disable-shared --enable-static --with-libssl-prefix=$INSTALL_DIR/x86" \
silent="$SILENT" custom_silent="--silent"
echo -e "\n++ Build libssh2 arm64-v8a ++"
../androidbuildlib out_path=../libs \
minsdkversion=21 \
target_abis="arm64-v8a" \
configure_params="--disable-shared --enable-static --with-libssl-prefix=$INSTALL_DIR/arm64-v8a" \
silent="$SILENT" custom_silent="--silent"
echo -e "\n++ Build libssh2 x86_64 ++"
../androidbuildlib out_path=../libs \
minsdkversion=21 \
target_abis="x86_64" \
configure_params="--disable-shared --enable-static --with-libssl-prefix=$INSTALL_DIR/x86_64" \
silent="$SILENT" custom_silent="--silent"
cd ..