public class Utils extends Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static void |
addRequiredBuildTargetFromSourcePath(BuildTargetSourcePath buildTargetSourcePath,
com.google.common.collect.ImmutableSet.Builder<BuildTarget> requiredBuildTargetsBuilder,
TargetGraph targetGraph,
java.util.function.Function<? super TargetNode<?>,ActionGraphBuilder> actionGraphBuilderForNode)
Adds the input source path object to the required build targets builder, if needed.
|
static String |
getModuleName(TargetNode<?> targetNode)
Gets the Swift or Cxx module name if the target node has the module name defined.
|
static Optional<BuildTargetSourcePath> |
sourcePathTryIntoBuildTargetSourcePath(SourcePath sourcePath) |
public static String getModuleName(TargetNode<?> targetNode)
public static Optional<BuildTargetSourcePath> sourcePathTryIntoBuildTargetSourcePath(SourcePath sourcePath)
public static void addRequiredBuildTargetFromSourcePath(BuildTargetSourcePath buildTargetSourcePath, com.google.common.collect.ImmutableSet.Builder<BuildTarget> requiredBuildTargetsBuilder, TargetGraph targetGraph, java.util.function.Function<? super TargetNode<?>,ActionGraphBuilder> actionGraphBuilderForNode)
buildTargetSourcePath
- The build target source path to add.requiredBuildTargetsBuilder
- The builder to add the target too, if necessary.targetGraph
- The target graph that includes the targetactionGraphBuilderForNode
- The action graph builder for the target node.