在 Windows中编译 Chromium
这是一个自用chromium编译笔记, 供日后参考, 不作为编译指导, 详细请参考 官方文档,(中文参考)
安装Visual Studio Community 2019
- Desktop development with C++
- “MFC/ATL support” sub-components
- Windows 10 SDK
安装SDK Debugging Tools
- 安装Visual Studio后, 打开Control Panel (控制面板)→ Programs → Programs and Features
- 右键 Windows Software Development Kit -> 点击Change
- 选择Change -> 点击 Next按钮 -> 勾选Debugging Tools For Windows -> 点击Change按钮
安装 depot_tools
- 下载depot_tools bundle
- 将 zip 压缩文件 解压到指定路径, 例如: D:\depot_tools
- 将D:\depot_tools添加到系统变量Path中 (一定要放在最前,特别是之前安装了Python和Git)
- 添加系统变量DEPOT_TOOLS_WIN_TOOLCHAIN, 将值设为0
- 添加系统变量 vs2019_install, 值为安装地址. 例 vs2019_install=C:\Program Files (x86)\Microsoft Visual Studio\2