Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 583 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 583 Bytes

OpenSSL For Android

  • Include build-openssl.sh in your app (Preferrably in the app's root folder)
  • Run it once
  • This will make a folder prefix which will have OpenSSL libraries

Using in cmake

Add these to your CMakeLists.txt app :

set(OPENSSL_ROOT_DIR path-to-prefix-folder)

If your CMake file is at app/src/main/cpp/CMakeLists.txt and the prefix folder is in app root then it will be :

set(OPENSSL_ROOT_DIR ${CMAKE_CURRENT_LIST_DIR}/../../../../prefix/${CMAKE_ANDROID_ARCH_ABI})

This is used in Dots app