public class QueryTargetsAndOutputsMacroExpander extends QueryMacroExpander<QueryTargetsAndOutputsMacro>
'$(query_targets_and_outputs "deps(:foo)")' '$(query_targets_and_outputs "filter(bar, classpath(:bar))")' '$(query_targets_and_outputs "attrfilter(annotation_processors, com.foo.Processor, deps(:app))")'Example output:
$(query_targets_and_outputs "deps(:foo)") -> "//:bar1 /tmp/project/buck-out/gen/bar1/out_file //:bar2 /tmp/project/buck-out/gen/bar2/out_file"
QueryMacroExpander.QueryResults
Constructor and Description |
---|
QueryTargetsAndOutputsMacroExpander(TargetGraph targetGraph) |
Modifier and Type | Method and Description |
---|---|
Arg |
expandFrom(BuildTarget target,
ActionGraphBuilder graphBuilder,
QueryTargetsAndOutputsMacro input,
QueryMacroExpander.QueryResults precomputedWork) |
Class<QueryTargetsAndOutputsMacro> |
getInputClass() |
precomputeWorkFrom
public QueryTargetsAndOutputsMacroExpander(TargetGraph targetGraph)
public Class<QueryTargetsAndOutputsMacro> getInputClass()
public Arg expandFrom(BuildTarget target, ActionGraphBuilder graphBuilder, QueryTargetsAndOutputsMacro input, QueryMacroExpander.QueryResults precomputedWork)