Building_Chromium_for_Windows
官方文档
请仔细阅读官方文档,如果遇见错误在回来看,以下只写出我编译的时候失败过的地方。
System requirements
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.
Visual Studio
You must install the “Desktop development with C++” component and the “MFC and ATL support” sub-component.
You must have the version 10.0.17134 Windows 10 SDK installed.这里如果不安装后面编译会找不到某些库。
depot_tools
下载解压,不可拷贝因为需要隐藏的(.git)文件夹,添加路径到环境变量,满足(at least in front of any directory that might already have a copy of Python or Git)
因为我们使用depot_tools里面的工具进行下载代码和编译所以( tells depot_tools to use your locally installed version of Visual Studio need add a DEPOT_TOOLS_WIN_TOOLCHAIN system variable in the same way, and set it to 0.)
Get the code
1 | // 因为我是有几个git账号,工作和自己的,所以我没有设置全局的,而是先下载代码,在自己仓库单独配置(在有.git文件夹下去掉--global执行下面命令) |