Skip to content

Static libcurl to be used in Android, iOS and Windows apps. Build scripts included.

Notifications You must be signed in to change notification settings

mortend/curl-android-ios

 
 

Repository files navigation

curl-prebuilt

The goal of this project is to provide a pre-compiled version of libcurl to be used in Android, iOS and Windows.

This is a fork that upgrades cURL and adds a Windows build. The original fork is located at https://github.com/gcesarmza/curl-android-ios

It uses cURL from the upstream repository and it's updated frequently.

For Android, it also uses OpenSSL from its upstream repository.

If you want to build the library, scripts are provided for both platforms. Test projects are also provided for both iOS and Android.

Building

  • Clone submodules git submodule init && git submodule update
  • Make sure you have installed autoconf, automake and libtool or install them with apt-get or brew
  • When building on Mac OS make sure you have Xcode Command Line Developer Tools installed
xcode-select --install

Building for Android:

  • Download Android NDK
cd curl-compile-scripts
export NDK_ROOT=PATH_WHERE_NDK_IS   # default: ~/Library/Android/sdk/ndk-bundle
bash build_Android.sh

Building for iOS

cd curl-compile-scripts
bash build_iOS.sh

Building for Windows

cd curl-compile-scripts
bash build_VS2019.sh    # or build_VS2017.sh

About

Static libcurl to be used in Android, iOS and Windows apps. Build scripts included.

Topics

Resources

Stars

Watchers

Forks

Languages

  • C 80.2%
  • Makefile 9.7%
  • C++ 8.6%
  • Other 1.5%