This rule provides access to a set of files.
Files are accessible to
genrules by using their relative path after a
$(location) string parameter macro. Other rules may handle
filegroup() rules natively for attributes such as resources.
The name of the rule.
The set of files to include in this rule.
List of build target patterns that identify the build rules that can include this rule as a dependency, for example, by listing it in their
exported_depsattributes. For more information, see visibility.
In this example a target exports
.xml files from all subdirectories in
filegroup( name = 'example', srcs = glob(['resources/**/*.xml']), ) genrule( name = 'process_xml', out = 'processed.xml', cmd = '$(exe //example:tool) -in $(location :example)/resources/file.xml > $OUT', )