strongswan在开发者手机上的适配
·
三方库的下载
# 下载三方库 到根目录的third_party,改名称为strongswan
git clone https://gitee.com/cooperation-team-7885/third_party_strongswan.git
三方库修改编译
# 修改1 third_party/strongswan/strongswan_config.gni
common_cflags = [
"-Wno-ignored-attributes" # 添加项
]
# 修改2 third_party/strongswan/src/libstrongswan/utils/utils.h
#define _GNU_SOURCE #注释掉该重复定义
# 添加到编译子系统中 vendor/hys/oriole/config.json
"subsystem" : "thirdparty",
"components" [
...
{
"component": "strongswan",
"features": []
}
]
修改完成后执行./build.sh --product-name oriole –ccache 命令编译镜像烧写。
strongswan三方库编译后的二进制文件以及so文件产物位置:
ipsec 脚本位置:sig\out\oriole\packages\phone\system\bin
二进制文件与so文件产物位置:/out/oriole/thirdparty/strongswan/
更多推荐
所有评论(0)