Giter Site home page Giter Site logo

gmssl-for-android's Introduction

gmssl-for-android

Android平台下编译gmssl静态库

已验证通过的编译环境

  • android-ndk-r13
  • 最新的gmssl代码 截止到20170724

使用

设置环境变量

打开终端,

gredit ~/.profile

在文本末尾添加ndk变量,如 export ANDROID_NDK=your ndk dir

在tools/_shared.sh文件中修改NDK变量

gredit ./tools/_shared.sh

修改变量为 NDK=${ANDROID_NDK}

编译

终端执行

cd tools
sh ./build-gmssl4android.sh android # armeabi
sh ./build-gmssl4android.sh android-armeabi #armeabi-v7a
sh ./build-gmssl4android.sh android64-aarch64 #arm64_v8a
sh ./build-gmssl4android.sh android-x86 #x86
sh ./build-gmssl4android.sh android64 #x86-64 
sh ./build-gmssl4android.sh android-mips #mips
sh ./build-gmssl4android.sh android-mips64 #mips64

成功后输出在./output目录下,其中有include头文件和libcrypto.a/libssl.a

参考

  1. openssl-for-ios-and-android

gmssl-for-android's People

Contributors

wangp8895 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.