一个信息容器,包含可执行文件在运行时所需的一组文件。此对象应通过 DefaultInfo
传递,以便告知构建系统规则生成的输出所需的 runfile。
如需了解详情,请参阅运行文件指南。
成员
empty_filenames
depset runfiles.empty_filenames
文件
depset runfiles.files
合并
runfiles runfiles.merge(other)
注意:如果您要合并许多 runfiles 对象,请使用 merge_all()
,而不是在循环中调用 merge
。这样可以避免构建可能导致 build 失败的深层 depset 结构。
参数
参数 | 说明 |
---|---|
other
|
runfiles;
必需 要合并到此对象中的 runfiles 对象。 |
merge_all
runfiles runfiles.merge_all(other)
参数
root_symlinks
depset runfiles.root_symlinks
符号链接
depset runfiles.symlinks