简体   繁体   中英

How to obtain a particular version of Chromium source code?

I need to get the source code of Chromium 88 . However, officially proposed $ fetch chromium in depot_tools automatically downloads source files from the master branch and does not allow to choose a particular version. Is there a possibility to get (and successfully compile using depot_tools ninja ) the source code of Chromium 88, while Chromium 92 is the most recent build?

That repo is mirrored in GitHub, where you can grab many branches and tags.

https://github.com/chromium/chromium

Once you clone the repo, you can checkout versions by tag (build number).

git checkout 92.0.4482.3

The master branch of Chromium is not a stable version. Chromium versions are represented by tags. After fetching Chromium source code, you will have to follow the following steps:

From src directory:

Fetch all the tags:

git fetch --tags

Checkout the version you want:

git checkout tags/88.0.4324.86

Pull third-party deps:

gclient sync

Now, you should be able to compile Chromium:

gn gen out\YourBuildFolder
ninja -C out\YourBuildFolder

I have posted more info here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM