1、下载depot_tools
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
2、设置环境变量
export PATH=$PATH:/home/user/depot_tools
3、下载webrtc
mkdir webrtc
cd webrtc
fetch --nohooks webrtc
gclient sync
cd src
git checkout -b m94 refs/remotes/branch-heads/4606
gclient sync
4、设置编译参数
gn gen out/m94 --args='is_debug=false is_component_build=false is_clang=false rtc_include_tests=false rtc_use_h264=true use_rtti=true use_custom_libcxx=false treat_warnings_as_errors=false use_ozone=true ffmpeg_branding="Chrome" proprietary_codecs=true use_glib=false rtc_use_dummy_audio_file_devices=true rtc_build_examples=false use_partition_alloc=false rtc_enable_protobuf=false'
5、编译
ninja -C out/m94
|