Pre-built OpenSSL libcrypto static libraries for using with the SQLCipher and cbforest.
The OpenSSL version is 1.0.2j, except for the Windows Store builds which are 1.0.2k and the source tree is not included in this repo.
##How to rebuild the binaries
###1. Setup the project
$git clone https://github.com/couchbaselabs/couchbase-lite-libcrypto.git
$git submodule update --init --recursive
###2. Generate include headers
Run the following command on a Mac or Linux machine. The headers will be output at libs/include
.
$./generate-headers.sh
###3. Build the binaries for each platform
##3.1 Android
###Requirements
- Android NDK
- Mac OSX Machine
###Common Build Steps
- Make sure that you have the
ANDROID_NDK_HOME
variable defined. For example,
#.bashrc:
export ANDROID_NDK_HOME=~/Android/android-ndk-r10e
###Build Steps with GCC
- Run the build script. The binaries will be output at
libs/android
$./build-android.sh
###Build Steps with clang
- Run the build script. The binaries will be output at
libs/android/clang
$./build-android-clang.sh
##3.2 OSX and iOS
###Requirements
- XCode
- makedepend (if you don't have one)
$homebrew install makedepend
###Build Steps
Run the build script. The binaries will be output at libs/osx
and libs/ios
. The osx and ios binaries are universal libraries.
$./build-osx-ios.sh
##3.3 Linux
###Requirements
- GCC
- makedepend (if you don't have one)
$sudo apt-get install xutils-dev
###Build Steps
Run the build script. The binaries will be output at libs/linux
.
$./build-linux.sh
##3.4 Windows
###Requirements
Note that the build-windows.cmd script is configured with Visual Studio 2013.
###Build Steps
- Make sure that the path to the
nmake
tool is included into the PATH Environment.
Visual 2015: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin
- Run the build script. The binaries will be output at
libs/windows
.
C:\couchbase-lite-libcrypto>build-windows.cmd
##3.5 Windows Store
Follow the instructions at Microsoft's fork