1 Star 4 Fork 2

10km / openssl-ndk

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
BSD-2-Clause

openssl-ndk

NDK 编译 openssl 脚本

下载源码

# 添加 --recursive 参数下载opensl源码
git clone --recursive https://gitee.com/l0km/openssl-ndk.git

文件说明

├── build.bat 	  ## [未完成]bat脚本,编译所有cpu版本
├── build.sh 	  ## bash脚本,编译所有cpu版本
├── ndk-build.bat ## [未完成]bat脚本,编译指定cpu(armeabi,armeabi-v7a,arm64-v8a,x86,x86_64)的版本,需要perl支持
├── ndk-build.sh  ## bash脚本,编译指定cpu(armeabi,armeabi-v7a,arm64-v8a,x86,x86_64)的版本,Windows可在MSYS2下执行
└── openssl       ## openssl官方源码git仓库 (git submodule)

编译要求

目前在Android NDK 16b上测试通过,因为NDK 19不再支持gcc编译,所以19以上版本不可用

Windows下执行ndk-build.bat需要安装perl支持

Windows下在MSYS2可直接执行ndk-build.sh

建议linux下编译

参数说明

ndk-build.bat,ndk-build.sh脚本可以通过环境变量来控制生成的版本

环境变量参数说明:

  • TAG 指定编译openssl 版本

    默认编译openssl 1.1.1d版本,可以通过指定此环境变量定义openssl git分支来编译指定的版本,如 OpenSSL_1_1_1h指定1.1.1h版本

  • ANDROID_ABI 处理器

    默认编译armeabi-v7a处理器版本,可以通过指定此环境变量来指定要编译的CPU平台

  • PREFIX 安装路径

    默认编译安装路径为$openssl-ndk/dist/openssl_android/$ANDROID_ABI

  • OPTIONS openssl编译选项

    默认选项为 no-shared no-asm no-ssl2 no-ssl3 no-comp no-hw no-engine,可以设置此环境变量覆盖默认定义

BSD 2-Clause License Copyright (c) 2021, 10km All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

简介

NDK(R16) 编译 openssl 展开 收起
Shell 等 2 种语言
BSD-2-Clause
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Shell
1
https://gitee.com/l0km/openssl-ndk.git
git@gitee.com:l0km/openssl-ndk.git
l0km
openssl-ndk
openssl-ndk
master

搜索帮助