Dept_tools的使用
depot_tools
椭圆
搞了半天,gclient无法更新。在google groups里找到vince的答案。
- 下载 depot_tools
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
2. 将depot_tools添加到环境变量path中
3. 配置代理
(1) Set Shadowsockes as global proxy mode;
(2) Set GIT proxy as following:
git config --global http.proxy http://localhost:1080
git config --global https.proxy http://localhost:1080
(3) Set Winhttp proxy as following:
c:\>netsh
netsh>winhttp
netsh winhttp>set proxy localhost:1080
(4) Set the http_proxy, https_proxy environment variables as following:
c:\>set http_proxy=http://localhost:1080
c:\>set https_proxy=http://localhost:1080
重点是https_prox=http:// 不是https://
4. 运行gclient
--
新建boto.cfg,输入内容
[Boto]
proxy=127.0.0.1
proxy_port=1080
cmd>set NO_AUTH_BOTO_CONFIG=E:\boto.cfg
下面直接编译bn\gn、ninja就没问题了。系统非unicode换成英文
编辑于 2020-04-01