The old instructions for getting the code
The old instructions for getting the code
This page is obsolete. Please see Get the Code: Checkout, Build, & Run Chromium instead.PrerequisitesChromium supports building on Windows, Mac and Linux host systems. Linux is required for building Android, and a Mac is required for building iOS. Platform-specific requirementsThis page documents common checkout and build instructions. There are platform-specific pages with additional information and requirements: Set up your environmentCheck out and install the depot_tools package. This contains the custom tools necessary to check out and build. Create a chromium directory for the checkout and change to it (you can call this whatever you like and put it wherever you like, as long as the full path has no spaces): mkdir chromium Check out the source codeUse the "fetch" tool that came with depot_tools: fetch chromium # [fetch --no-history chromium] Use Post-sync hooksSome platform-specific pages (linked above) may have extra instructions. In particular, on Ubuntu Linux run: ./build/install-build-deps.sh Optional: install API keys which allow your build to use certain Google services. This isn't necessary for most development and testing purposes. Run hooks to fetch everything needed for your build setup. gclient runhooks Update the checkoutTo sync to newer versions of the code (not necessary the first time), run the following in your src/ directory: git rebase-update The first command updates the primary Chromium source repository and rebases your local development branches on top of tip-of-tree. The second command updates all of the dependencies specified in the DEPS file. See also "More help managing your checkout" below. Setting up the buildGN is our meta-build system. It reads build configuration from gn gen out/Default
BuildingBuild Chromium (the "chrome" target) with Ninja using the command: ninja -C out/Default chrome List all GN targets by running |
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?
2014-03-23 speech