项目作者: MajdiSobain

项目描述 :
Building curl, openssl, and zlib libs for android
高级语言: Shell
项目地址: git://github.com/MajdiSobain/build-curl-openssl-zlib-android.git
创建时间: 2018-09-08T23:29:59Z
项目社区:https://github.com/MajdiSobain/build-curl-openssl-zlib-android

开源协议:MIT License

下载


Building curl, openssl, and zlib for android

This repo has been made to help building curl, openssl, and zlib libraries for android.

Prerequisites

  • automake tools
  • android ndk

Steps

  • Clone this repo

    1. git clone https://github.com/MajdiSobain/build-curl-openssl-zlib-android.git
  • cd into repo folder

    1. cd build-curl-openssl-zlib-android
  • Update submodules of this repo

    1. git submodule update --init --recursive
  • cd into building scripts folder

    1. cd building-scripts
  • If you want to build just one library you can run its builing script. But if you want to build libcurl with zlib and ssl feature enbaled you must build zlib and openssl before curl. Next are script usage prototypes:

    1. $ ./build-zlib.sh path/to/ndk [api=21 [arch=arm]]
    2. $ ./build-openssl.sh path/to/ndk [api=21 [arch=arm]]
    3. $ ./build-curl.sh path/to/ndk [api=21] [arch=arm] [no-ssl] [no-zlib]

Scripts Usage notes

zlib

  1. ##################################################################################
  2. #
  3. # build-zlib.sh usage:
  4. #
  5. # $ ./build-zlib.sh path/to/ndk [api=21 [arch=arm]]
  6. #
  7. # - path/to/ndk: the absolute path to the android NDK folder (obligatory)
  8. # - api=21: specify the version number of android API 9, 12, ...
  9. # - arch=arm: specify the target arch that zlib is going to
  10. # run on. It should be one of:
  11. # {arm, arm64, mips, mips64, x86, x86_64}
  12. # Note: Arguments order should stictly be followed
  13. #
  14. ###################################################################################

openssl

  1. #################################################################################
  2. #
  3. # build-openssl.sh usage:
  4. #
  5. # $ ./build-openssl.sh path/to/ndk [api=21 [arch=arm]]
  6. #
  7. # - path/to/ndk: the absolute path to the android NDK folder (obligatory)
  8. # - api=21: specify the version number of android API 9, 12, ...
  9. # - arch=arm: specify the target arch that openssl is going to
  10. # run on. It should be one of:
  11. # {arm, arm64, mips, mips64, x86, x86_64}
  12. # Note: Arguments order should stictly be followed
  13. #
  14. ##################################################################################

curl

  1. ##################################################################################
  2. #
  3. # build-curl.sh usage:
  4. #
  5. # $ ./build-curl.sh path/to/ndk [api=21] [arch=arm] [no-ssl] [no-zlib]
  6. #
  7. # - path/to/ndk: the absolute path to the android NDK folder (obligatory)
  8. # - api=21: specify the version number of android API 9, 12, ...
  9. # - arch=arm: specify the target arch that curl is going to
  10. # run on. It should be one of:
  11. # {arm, arm64, mips, mips64, x86, x86_64}
  12. # - no-ssl: to avoid building curl with ssl
  13. # - no-zlib: to avoid building curl with zlib
  14. #
  15. ##################################################################################

Enjoy :)