GithubHelp home page GithubHelp logo

dh-orko / android_openssl Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kdab/android_openssl

1.0 0.0 0.0 150.16 MB

OpenSSL scripts and bins for Android (useful for Qt on Android apps)

Home Page: https://github.com/dh-orko/android_openssl?tab=License-1-ov-file

License: Apache License 2.0

Shell 0.07% C 99.89% QMake 0.02% CMake 0.02%
ssl-andriod

android_openssl's Introduction

Android OpenSSL support for Qt

OpenSSL scripts and binaries for Android (useful for Qt Android apps)

In this repo you can find the prebuilt OpenSSL libs for Android, a QMake include project .pri file that can be used integrated with Qt projects, and a .cmake file for CMake based projects.

The following directories are available

  • ssl_3: used for Qt 6.5.0+.
  • ssl_1_1: for Qt Qt 5.12.5+, 5.13.1+, 5.14.0+, 5.15.0+, Qt 6.x.x up to 6.4.x

How to use it

QMake based projects

To add OpenSSL to your QMake project, append the following to your .pro project file:

android: include(<path/to/android_openssl/openssl.pri)

CMake based projects

To add OpenSSL to your CMake project, append the following to your project's CMakeLists.txt file:

if (ANDROID)
    FetchContent_Declare(
      android_openssl
      DOWNLOAD_EXTRACT_TIMESTAMP true
      URL      https://github.com/KDAB/android_openssl/archive/refs/heads/master.zip
#      URL_HASH MD5=c97d6ad774fab16be63b0ab40f78d945 #optional
    )
    FetchContent_MakeAvailable(android_openssl)
    include(${android_openssl_SOURCE_DIR}/android_openssl.cmake)
endif()

or, if you cloned the repository into a subdirectory:

include(<path/to/android_openssl>/android_openssl.cmake)

Then

qt_add_executable(your_target_name ..)
qt_add_executable(your_second_target_name ..)

if (ANDROID)
    add_android_openssl_libraries(your_target_name your_second_target_name)
endif()

Build Script

The build script build_ssl.sh can be used to rebuild the OpenSSL libraries. Since specific versions might depend or work better with specific NDK versions, the OpenSSL<==>NDK version combinations are defined in the script. Before running the script, check that the NDK paths are correct for your environment.

Build Prerequisites

Both Linux, macOS need patchelf command when building for OpenSSL 3+.

Additionally, for macOS you need:

  • bash shell version 4+ is required
  • wget command

android_openssl's People

Contributors

bog-dan-ro avatar issam-b avatar kambizasadzadeh avatar bernedom avatar adam-ce avatar dantti avatar konstantinritt avatar markus43 avatar rferrazz avatar sandroandrade avatar

Stargazers

dh-orko avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.