# 设置代理
git config --global http.proxy 'socks5://172.28.101.219:1080'
git config --global https.proxy 'socks5://172.28.101.219:1080'
# 取消代理
git config --global --unset http.proxy
git config --global --unset https.proxy
sudo apt-get install privoxy
# 修改配置
sudo vim /etc/privoxy/config
#添加
forward-socks5 / 172.28.101.219:1080 .
#重启
sudo /etc/init.d/privoxy restart
A tutorial introduction to the Chromium depot_tools git extensions.
# 下载
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
# 添加到环境变量
export PATH=$PATH:/home/frank/webrtc/depot_tools
1:创建boto.cfg文件
2:配置如下内容
[Boto]
proxy=127.0.0.1
proxy_port=8118
3: 设置环境变量NO_AUTH_BOTO_CONFIG
export NO_AUTH_BOTO_CONFIG=/home/frank/webrtc/boto.cfg
export http_proxy=http://127.0.0.1:8118/
export https_proxy=http://127.0.0.1:8118/
wget https://cs.chromium.org/chromium/src/build/install-build-deps.sh
sudo install-build-deps.sh
sudo install-build-deps-android.sh
mkdir webrtc_android && cd webrtc_android
fetch --nohooks webrtc_android
gclient sync
# gclient sync --nohooks --with_branch_heads
gn gen out/Debug --args='target_os="android" target_cpu="arm"'
ninja -C out/Debug
#To build for ARM64: use target_cpu="arm64"
#To build for 32-bit x86: use target_cpu="x86"
#To build for 64-bit x64: use target_cpu="x64"