简体   繁体   English

在 Windows 上构建 Chromium 时出现 gclient 问题

[英]gclient issue when building Chromium on Windows

I'm following steps on https://chromium.googlesource.com/chromium/src/+/master/docs/windows_build_instructions.md to build Chromium on Windows, when it comes to run gclient , it gives following usage information, it seems something is wrong, any suggestion is appreciated.我正在按照https://chromium.googlesource.com/chromium/src/+/master/docs/windows_build_instructions.md上的步骤在 Windows 上构建 Chromium,在运行gclient时,它似乎提供了以下使用信息出了点问题,任何建议表示赞赏。

C:\Users\Test>gclient C:\用户\测试>gclient

Usage: gclient.py [options]用法:gclient.py [选项]

Meta checkout dependency manager for Git. Git 的元结帐依赖管理器。

Commands are: config creates a.gclient file in the current directory diff displays local diff for every dependencies fetch fetches upstream commits for all modules flatten flattens the solutions into a single DEPS file getdep gets revision information and variable values from a DEPS file grep greps through git repos managed by gclient help prints list of commands or help for a specific command metrics reports, and optionally modifies, the status of metric collection pack generates a patch which can be applied at the root of the tree recurse operates [command args...] on all the dependencies revert reverts all modifications in every dependencies revinfo outputs revision info mapping for the client and its dependencies root outputs the solution root (or current dir if there isn't one) runhooks runs hooks for files that have been modified in the local working copy setdep modifies dependency revisions and variable values in a DEPS file status shows modification status 命令是: config 在当前目录中创建一个.gclient 文件 diff 显示每个依赖项的本地差异 fetch 提取所有模块的上游提交 flatten 将解决方案展平到单个 DEPS 文件中 getdep 从 DEPS 文件中获取修订信息和变量值 grep greps through git 由 gclient 帮助管理的回购打印命令列表或特定命令度量报告的帮助,并可选择修改,度量收集包的状态生成一个补丁,可以在树的根部应用递归操作 [命令参数... ] 在所有依赖项上恢复 恢复每个依赖项中的所有修改 revinfo 输出客户端及其依赖项的修订信息映射 root 输出解决方案根目录(或当前目录,如果没有) local working copy setdep modifys dependency revisions and variable values in a DEPS file status 显示修改状态for every dependencies sync checkout/update all modules validate validates the.gclient and DEPS syntax verify verifies the DEPS file deps are only from allowed_hosts对于每个依赖项同步检查/更新所有模块验证验证.gclient 和 DEPS 语法验证验证 DEPS 文件 deps 仅来自 allowed_hosts

Options: --version show program's version number and exit -h, --help show this help message and exit -j JOBS, --jobs=JOBS Specify how many SCM commands can run in parallel;选项: --version 显示程序的版本号并退出 -h, --help 显示此帮助信息并退出 -j JOBS, --jobs=JOBS 指定可以并行运行多少个 SCM 命令; defaults to 8 on this machine -v, --verbose Produces additional output for diagnostics.在这台机器上默认为 8 -v, --verbose 产生额外的 output 用于诊断。 Can be used up to three times for more logging info.最多可使用三次以获取更多日志信息。 --gclientfile=CONFIG_FILENAME Specify an alternate.gclient file --spec=SPEC create a gclient file containing the provided string. --gclientfile=CONFIG_FILENAME 指定一个 alternate.gclient 文件 --spec=SPEC 创建一个包含提供的字符串的 gclient 文件。 Due to Cygwin/Python brokenness, it can't contain any newlines.由于 Cygwin/Python 的缺陷,它不能包含任何换行符。 --no-nag-max Ignored for backwards compatibility. --no-nag-max 忽略向后兼容性。

When I try it in a clean system, it works.当我在一个干净的系统中尝试它时,它起作用了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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