我只需要像r69297那样的指定版本的Chromium代码,这是Chrome的最新开发版本.我使用git所以我按照这里的说明:http: //code.google.com/p/chromium/wiki/UsingGit 但是,在我同步所有代码,并查看提交日志后,我找不到此修订版!然后我想到了标签,并在这里搜索. 如何使用git签出指定版本的Webkit? 在这里,我发现,但在遵循所有步骤,并等待相当长的时间后,我仍然一无所获.铬的git存储库是否保留标签信息?我怎么能得到它们?谢谢
Rob*_*b W 16
当问到这个问题时,Chromium使用了SVN.如今,git是主要的VC系统,因此我将使用git标签/哈希而不是r #### revisions.
在这个答案中,我假设您已经设置了构建Chromium的先决条件(包括初始结账).如果您没有,请在继续之前按照http://commondatastorage.googleapis.com/chrome-infra-docs/flat/depot_tools/docs/html/depot_tools_tutorial.html上的教程进行操作.您可以跳过该gclient sync步骤,因为您将在以下步骤中替换依赖项.
场景:我想在最新的稳定Chromium版本之上应用补丁.要了解最新的稳定版本,请访问https://omahaproxy.appspot.com/.根据该页面,最新版本为38.0.2125.104.如果您想查看上一个/下一个版本,请访问http://blink.lc/chromium/refs/以获取标签概述.此标记列表包括未发布的版本,例如38.0.2125.106(当在基线顶部应用新补丁时,最后一个版本号会增加,该标记由第三个数字标识).
# Inside chromium/src/
git fetch origin 38.0.2125.106
# Create a new branch "my_stable_branch" that is based on the just-fetched HEAD.
git checkout -b my_stable_branch FETCH_HEAD
# ... apply the patch ...
# (e.g. by editing the files)
# (e.g. by using git cherry-pick [commit id] )
# (e.g. by using git checkout [commit id] [file path] )
# Commit changes (assuming that you want to keep track of your changes)
git commit -va
# Now synchronize the dependencies to the current branch
gclient sync --with_branch_heads # --jobs 16 if you wish to use parallelism
# Now compile the release build. The output will be stored in src/out/Release.
ninja -C out/Release chrome chrome_sandbox
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
9890 次 |
| 最近记录: |