"$base_dir"/update_depot_tools fi PYTHONDONTWRITEBYTECODE=1 exec python "$base_dir/gclient.py" "$@" 首先,获取脚本的目录并赋值给base_dir,然后判断命令参数1是否为grep|fetch|cleanup|diff,如不是则执行base_dir下的updat_depot_tools脚本,该脚本更新git、svn工具。最后调用当前脚本目录(depot_tools)下...
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git 如果这一步下载失败或连接太慢,还有一个应急办法,直接下载最新的depot_tools的zip包,然后手动解压到当前目录即可。 链接:https://storage.googleapis.com/chrome-infra/depot_tools.zip 然后将depot_tools所在目录添加到PATH环境变量里,这样...
1. git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git 2. 将 depot_tools 设置到环境变量,例如放在桌面 直接将exportPATH=$PATH:$HOME/Desktop/depot_tools 写到 ~/.bash_profile 或 ~/.zshrc 中 获取chromium源码 1. 创建一个文件夹存放源码 mkdir chromium && cd chromium 2. 下...
第一次运行,gclient将会安装所有和获取源码相关的工具,例如git,python: Fetching fromhttps://src.chromium.org/svn/trunk/tools/third_party/svn_bin.zip fatal: unable toaccess 'https://chromium.googlesource.com/chromium/tools/depot_tools.git/':Failed connect to chromium.googlesource.com:9217; No error ...
depot_tools Tools for working with Chromium development. It requires python 2.7 or 3.8 for python 3 support. Tools The most important tools are: fetch: A gclient wrapper to checkout a project. Use fetch --help for more details. gclient: A meta-checkout tool. Think repo or git submodules...
chromium编译步骤:1.下载depot_tools 下载地址:https://storage.googleapis.com/chrome-infra/depot_tools.zip2.将depot_tools.zip解压后,将depot_tools目录路径添加到系统的PATH环境变量,添加环境变量DEPOT_TOOLS_WIN_TOOLCHAIN =0; 注:depot_tools.zip要直接解压到指定目录,不能通过解压后复制到指定路径的方式,复制...
1.2 配置depot_tools Chromium使用了depot_tools来管理代码,先通过Git拉取代码: gitclonehttps://chromium.googlesource.com/chromium/tools/depot_tools.git 配置环境变量: export PATH="$PATH:$HOME/depot_tools" 注意:文章中是把depot_tool下载到了【home/用户名】目录下,所以使用【$HOME】代表,环境变量要根据实...
将depot_tools加入环境变量PATH。$ export PATH=$PATH:${HOME}/depot_tools 获取Chromium源代码 整个...
一、下载编译工具链:deptool gitclonehttps://chromium.googlesource.com/chromium/tools/depot_tools.git export PATH="$PATH:/Users/yumlu/code/depot_tools" (不过为了后续操作方便,可以将其加入到你的 ~/.zshrc 里) 完成后,在命令行里测试下 fetch 命令是否可用: ...
export PATH=$PATH:/path/to/depot_tools 1. 如果从来没有下载过Chromium的代码的话,为源码创建一个文件夹并下载源码: mkdir ~/chromium && cd ~/chromium fetch --nohooks android # This will take 30 minutes on a fast connection 1. 2. 如果之前下载过Linux版的Chromium代码,则可以通过给.gclient文件(...