GithubHelp home page GithubHelp logo

egorovandreyrm / libssh_android_build_scripts Goto Github PK

View Code? Open in Web Editor NEW
11.0 1.0 4.0 5 KB

Scripts that help to build libssh for Android

CMake 50.70% Shell 35.33% C 13.97%
libssh android boringssl c cplusplus arm arm64-v8a armeabi-v7a

libssh_android_build_scripts's Introduction

To build the libs: 

#1: Set the correct paths and adjust the config if needed in build_libssh_linux.sh
ANDROID_API="arm64-v8a"
API_LEVEL=21
ANDROID_SDK_PATH="/home/andrey/Android/Sdk"
BUILD_SHARED_LIB=1

#2: Make sure that boringssl and libssh sources are downloaded, which could be done, for example, by clonning with --recurse-submodules flag:
i.e.
git clone --recurse-submodules https://github.com/egorovandreyrm/libssh_android_build_scripts.git libssh_android_build_scripts

As soon as compiling is done, libs can be found in the libs directory.

Linking libssh/boringssl libs can be done by the following way if cmake is used in the project.

target_link_libraries(yourproject
        ${PROJECT_SOURCE_DIR}/ext_libs/${ANDROID_ABI}/libssh.a
        ${PROJECT_SOURCE_DIR}/ext_libs/${ANDROID_ABI}/libssl.a
        ${PROJECT_SOURCE_DIR}/ext_libs/${ANDROID_ABI}/libcrypto.a
        ${PROJECT_SOURCE_DIR}/ext_libs/${ANDROID_ABI}/libdecrepit.a
        ${PROJECT_SOURCE_DIR}/ext_libs/${ANDROID_ABI}/libssh-boringssl-compat.a
        ${z-lib})

to build all abi, use build_all_abi.sh

libssh_android_build_scripts's People

Contributors

egorovandreyrm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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.