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

@ -485,7 +485,24 @@ LOCAL_SRC_FILES := $(DROPBEAR_PATH)/scp.c \
$(DROPBEAR_PATH)/scpmisc.c \
$(DROPBEAR_PATH)/atomicio.c
LOCAL_C_INCLUDES:= dropbear dropbear/libtomcrypt/src/headers dropbear/libtommath
# LOCAL_LDLIBS :=
# LOCAL_LDLIBS :=
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)
@ -514,6 +531,6 @@ LOCAL_SRC_FILES := $(LIBZ_PATH)/adler32.c \
$(LIBZ_PATH)/gzread.c \
$(LIBZ_PATH)/gzwrite.c
LOCAL_C_INCLUDES:= libz
# LOCAL_LDLIBS :=
# LOCAL_LDLIBS :=
include $(BUILD_STATIC_LIBRARY)