Runfile

报告问题 查看来源 Nightly · 8.3 · 8.2 · 8.1 · 8.0 · 7.6

一个信息容器,包含可执行文件在运行时所需的一组文件。此对象应通过 DefaultInfo 传递,以便告知构建系统规则生成的输出所需的 runfile。

如需了解详情,请参阅运行文件指南

成员

empty_filenames

depset runfiles.empty_filenames

返回要创建的空文件的名称。

文件

depset runfiles.files

以文件形式返回一组 runfile。

合并

runfiles runfiles.merge(other)

返回一个包含此对象和实参的所有内容的新 runfiles 对象。

注意:如果您要合并许多 runfiles 对象,请使用 merge_all(),而不是在循环中调用 merge。这样可以避免构建可能导致 build 失败的深层 depset 结构。

参数

参数 说明
other runfiles; 必需
要合并到此对象中的 runfiles 对象。

merge_all

runfiles runfiles.merge_all(other)

返回一个新的 runfiles 对象,其中包含此对象和实参中 runfiles 对象的所有内容。

参数

参数 说明
other runfilesrunfiles;必需
要合并到此 runfiles 中的 runfiles 对象序列。

depset runfiles.root_symlinks

返回根符号链接的集合。

depset runfiles.symlinks

返回符号链接的集合。