安装depot_tools
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH=$PATH:`pwd`/depot_tools
export GIT_SSL_NO_VERIFY=1
同步代码
mkdir webrtc-checkout
cd webrtc-checkout
fetch --nohooks webrtc
gclient sync
安装编译环境
./src/build/install-build-deps.sh
生成ninja项目文件夹
gn gen out/Default
编译
ninja -C out/Default