Skip to content
This repository has been archived by the owner on Mar 19, 2019. It is now read-only.

liudongmiao/curl-android

Repository files navigation

curl for android demo.

how to generate libcurl:
0. download aosp (part of it should be ok)

1. generate libc, libssl, liblog, and so
   shell> make libssl liblog
2. edit jni/configure.sh, change the default settings:
   read the script carefully..normally you can keep it as is
3. run curl-android/jni/configure.sh
   if there are any error, check and fix...
4. generate libcurl
   shell> ndk-build ANDROID_SOURCE=$ANDROID_SOURCE
5. strip debug from libcurl
   shell> arm-eabi-strip -g /path/to/libcurl.so

libcurl.so size:
   (default is ftp, https with ares)
   https: ~169K (including http, https)
    ares: ~28K (adding to https, with ares support)
    ipv6: ~0K (no extra size)
   +full: ~278K (all protocols, with ares)