标签:sdk tps multiple oid not choice ice can ble
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
然后把把depot_tools添加到环境变量中去
export PATH=path_to_depot_tools:$PATH
创建一个工作目录
mkdir webrtc cd webrtc
下载代码
export GYP_DEFINES="OS=android" fetch --nohooks webrtc_android gclient sync
This will fetch a regular WebRTC checkout with the Android-specific parts added. Notice that the Android specific parts like the Android SDK and NDK are quite large (~8 GB), so the total checkout size will be about 16 GB. The same checkout can be used for both Linux and Android development since you can generate your Ninja project files in different directories for each build config.
使用gn创建工程
在src目录下,执行下面命令
gn gen out/Debug --args=‘target_os="android" target_cpu="arm"‘
You can specify a directory of your own choice instead of out/Debug
, to enable managing multiple configurations in parallel.
target_cpu="arm64"
target_cpu="x86"
target_cpu="x64"
然后使用ninja编译代码
ninja -C out/Debug
编译完成后,就可以在out/Debug/apks目录下找到AppRTCMobile.apk了
标签:sdk tps multiple oid not choice ice can ble
原文地址:http://www.cnblogs.com/CoderTian/p/6696971.html