在国外的win10上远程编译的,代码同步速度飞快。
set DEPOT_TOOLS_UPDATE=0
set DEPOT_TOOLS_WIN_TOOLCHAIN=0
set GYP_MSVS_VERSION=2017
set GYP_MSVS_OVERRIDE_PATH=C:\Program Files (x86)\Microsoft Visual Studio\2017\Community
set GYP_GENERATORS=msvs-ninja,ninja
mkdir webrtc_checkout
cd webrtc_checkout
fetch --nohooks webrtc
cd src
git branch -r
git checkout branch-heads/72
gclient sync
git rebase-update
gclient sync
gn gen out/Default --ide=vs2017
pause
ninja -C out/Default
ninja -C out/Debug
ninja -C out/Release
来源:oschina
链接:https://my.oschina.net/u/104197/blog/3075922