移植nghttp2到android
创建工作目录,并进入
1 | mkdir android |
clone源码
1 | git clone git@github.com:nghttp2/nghttp2.git |
生成交叉编译工具链
1 | $ANDROID_NDK/build/tools/make-standalone-toolchain.sh --arch=arm --install-dir=./toolchain |
导出环境变量
1 | export CURRENT_HOME=`pwd` |
编译并安装
1 | cd nghttp2 |
卸载
1 | make uninstall |
何大仙提供的shell脚本
1 | #!/bin/sh |
