mirror of
http://galexander.org/git/simplesshd.git
synced 2024-10-31 20:40:22 +00:00
126c9275c5
default_options.h.
21 lines
579 B
Bash
Executable File
21 lines
579 B
Bash
Executable File
#!/bin/sh
|
|
|
|
instlib() {
|
|
for i in `ls libs`
|
|
do
|
|
mkdir -p app/src/main/lib/$i || return 1
|
|
mv libs/$i/"$1" app/src/main/lib/$i/"$2" || return 1
|
|
done
|
|
}
|
|
|
|
dropbear/ifndef_wrapper.sh < dropbear/default_options.h > dropbear/default_options_guard.h &&
|
|
~/Android/Sdk/ndk-bundle/ndk-build -j8 &&
|
|
mkdir -p app/src/main/lib/armeabi-v7a &&
|
|
instlib scp libscp.so &&
|
|
instlib sftp-server libsftp-server.so &&
|
|
instlib rsync librsync.so &&
|
|
instlib buffersu libbuffersu.so &&
|
|
instlib libsimplesshd-jni.so "" &&
|
|
./gradlew assembleRelease &&
|
|
andinst app/build/outputs/apk/release/app-release.apk
|