webrtc windows编译
1、先下载depot_tools
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
2、需要vpn环境,需要vpn端口,我本机上的vpn端口是17890,在cmd命令中设置配置:
git config --global http.proxy http://127.0.0.1:17890
git config --global https.proxy https://127.0.0.1:17890
netsh winhttp set proxy 127.0.0.1:17890
set HTTP_PROXY=127.0.0.1:17890
set HTTPS_PROXY=127.0.0.1:17890
3、将depot_tools目录添加到环境变量中,运行gclient命令更新depot_tools
4、新建webrtc目录,进入该目录,运行命令:
fetch --nohooks webrtc
5、第4步完毕后,在运行命令
gclient sync
如果报错,不断地运行该命令,知道成功为止
6、下载成功后,切换到稳定版分支
git checkout -b m99 refs/remotes/branch-heads/4844
gclient sync
7、运行命令
gn gen ../out --ide=vs2019
生成vs工程
结束后:
git config --global --unset http.proxy
git config --global --unset https.proxy
unset HTTP_PROXY
unset HTTPS_PROXY
netsh winhttp set proxy reset