guimaizi’s blog

Chormium_develop

系统要求

A 64-bit Intel machine with at least 8GB of RAM. More than 16GB is highly recommended.
At least 100GB of free disk space on an NTFS-formatted hard drive. FAT32 will not work, as some of the Git packfiles are larger than 4GB.
An appropriate version of Visual Studio, as described below.
Windows 7 or newer.
win7+ 100g硬盘 8g内存+

种花家局域网内需要梯子 http/s socket5代理,我的是ss+kcptun,youtube1080p无压力。

下载安装包

https://storage.googleapis.com/chrome-infra/depot_tools.zip
下载解压 depot_tools 后,先配置proxy,用管理员打开命令行

开始搭建

设置代理
netsh winhttp set proxy 127.0.0.1:1080 #管理员下执行该命令
git config --global http.proxy http://localhost:1080
git config --global https.proxy http://localhost:1080
set https_proxy=http://localhost:1080
set http_proxy=http://localhost:1080

设置环境变量
G:\depot_tools 在path最上,不然python会冲突

设置git
git config --global user.name "guimaizi"
git config --global user.email "[email protected]"
git config --global core.autocrlf false
git config --global core.filemode false
git config --global branch.autosetuprebase always

拉去源码
fetch  --no-history chromium   # --no-history 只下载最新版本,不然下100g左右,翻墙网络不稳定就很麻烦, 单个最新版本22g左右。还可以接受。
gclient async  # 上面这条命令执行异常后,可用这条重新拉去源码



更新源码
cd xxxxx/src
git rebase-update 
gclient async

编译
gn gen out/Default

参考链接:

https://chromium.googlesource.com/chromium/src/+/master/docs/windows_build_instructions.md
https://yplam.com/post/chromium/chromium-build-debug/
https://www.itmaohome.com/category/github-center/software-development/chromium%e4%ba%8c%e6%ac%a1%e5%bc%80%e5%8f%91