1
0
mirror of http://galexander.org/git/simplesshd.git synced 2024-12-29 09:28:07 +00:00

add sftp-server to build even though it won't build yet...

This commit is contained in:
Greg Alexander 2014-12-21 15:58:16 -05:00
parent 7e0a344210
commit e53d852b98
2 changed files with 24 additions and 3 deletions

6
doit
View File

@ -1 +1,5 @@
ndk-build -j8 && mv libs/armeabi/scp libs/armeabi/libscp.so && ant debug && cat bin/SimpleSSHD-debug.apk | ssh roach 'cat > /sdcard/buh.apk; source .profile; pm install -r /sdcard/buh.apk'
ndk-build -j8 &&
mv libs/armeabi/scp libs/armeabi/libscp.so &&
mv libs/armeabi/sftp-server libs/armeabi/libsftp-server.so &&
ant debug &&
cat bin/SimpleSSHD-debug.apk | ssh roach 'cat > /sdcard/buh.apk; source .profile; pm install -r /sdcard/buh.apk'

View File

@ -490,6 +490,23 @@ LOCAL_C_INCLUDES:= dropbear dropbear/libtomcrypt/src/headers dropbear/libtommath
include $(BUILD_EXECUTABLE)
# build separate sftp executable
include $(CLEAR_VARS)
LOCAL_CFLAGS :=
LOCAL_MODULE := sftp-server
OPENSSH_PATH := ../openssh
LOCAL_SRC_FILES := $(OPENSSH_PATH)/sftp-server-main.c \
$(OPENSSH_PATH)/sftp-server.c \
$(OPENSSH_PATH)/sftp-common.c
LOCAL_C_INCLUDES:= openssh
# LOCAL_LDLIBS :=
include $(BUILD_EXECUTABLE)
# build separate libz static library
include $(CLEAR_VARS)