Class PythonUtil
- java.lang.Object
-
- com.facebook.buck.features.python.PythonUtil
-
public class PythonUtil extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
forEachModule(BuildTarget target, ActionGraphBuilder graphBuilder, PythonPlatform pythonPlatform, CxxPlatform cxxPlatform, String parameter, Path baseModule, SourceSortedSet items, PatternMatchedCollection<SourceSortedSet> platformItems, Optional<VersionMatchedCollection<SourceSortedSet>> versionItems, Optional<com.google.common.collect.ImmutableMap<BuildTarget,Version>> versions, java.util.function.BiConsumer<Path,SourcePath> consumer)
static void
forEachSrc(BuildTarget target, ActionGraphBuilder graphBuilder, PythonPlatform pythonPlatform, CxxPlatform cxxPlatform, Optional<com.google.common.collect.ImmutableMap<BuildTarget,Version>> versions, com.facebook.buck.features.python.PythonLibraryDescription.CoreArg args, java.util.function.BiConsumer<Path,SourcePath> consumer)
static Path
getBasePath(BuildTarget target, Optional<String> override)
static com.google.common.collect.ImmutableList<BuildTarget>
getDeps(PythonPlatform pythonPlatform, CxxPlatform cxxPlatform, com.google.common.collect.ImmutableSortedSet<BuildTarget> deps, PatternMatchedCollection<com.google.common.collect.ImmutableSortedSet<BuildTarget>> platformDeps)
static boolean
isModuleExt(String ext)
static com.google.common.collect.ImmutableSortedMap<Path,SourcePath>
parseModules(BuildTarget target, ActionGraphBuilder graphBuilder, PythonPlatform pythonPlatform, CxxPlatform cxxPlatform, Optional<com.google.common.collect.ImmutableMap<BuildTarget,Version>> versions, com.facebook.buck.features.python.PythonLibraryDescription.CoreArg args)
static com.google.common.collect.ImmutableSortedMap<Path,SourcePath>
parseResources(BuildTarget target, ActionGraphBuilder graphBuilder, PythonPlatform pythonPlatform, CxxPlatform cxxPlatform, Optional<com.google.common.collect.ImmutableMap<BuildTarget,Version>> versions, com.facebook.buck.features.python.PythonLibraryDescription.CoreArg args)
static com.google.common.collect.ImmutableSortedMap<Path,SourcePath>
parseSources(BuildTarget target, ActionGraphBuilder graphBuilder, PythonPlatform pythonPlatform, CxxPlatform cxxPlatform, Optional<com.google.common.collect.ImmutableMap<BuildTarget,Version>> versions, com.facebook.buck.features.python.PythonLibraryDescription.CoreArg args)
-
-
-
Method Detail
-
isModuleExt
public static boolean isModuleExt(String ext)
-
getDeps
public static com.google.common.collect.ImmutableList<BuildTarget> getDeps(PythonPlatform pythonPlatform, CxxPlatform cxxPlatform, com.google.common.collect.ImmutableSortedSet<BuildTarget> deps, PatternMatchedCollection<com.google.common.collect.ImmutableSortedSet<BuildTarget>> platformDeps)
-
forEachModule
public static void forEachModule(BuildTarget target, ActionGraphBuilder graphBuilder, PythonPlatform pythonPlatform, CxxPlatform cxxPlatform, String parameter, Path baseModule, SourceSortedSet items, PatternMatchedCollection<SourceSortedSet> platformItems, Optional<VersionMatchedCollection<SourceSortedSet>> versionItems, Optional<com.google.common.collect.ImmutableMap<BuildTarget,Version>> versions, java.util.function.BiConsumer<Path,SourcePath> consumer)
-
forEachSrc
public static void forEachSrc(BuildTarget target, ActionGraphBuilder graphBuilder, PythonPlatform pythonPlatform, CxxPlatform cxxPlatform, Optional<com.google.common.collect.ImmutableMap<BuildTarget,Version>> versions, com.facebook.buck.features.python.PythonLibraryDescription.CoreArg args, java.util.function.BiConsumer<Path,SourcePath> consumer)
-
parseSources
public static com.google.common.collect.ImmutableSortedMap<Path,SourcePath> parseSources(BuildTarget target, ActionGraphBuilder graphBuilder, PythonPlatform pythonPlatform, CxxPlatform cxxPlatform, Optional<com.google.common.collect.ImmutableMap<BuildTarget,Version>> versions, com.facebook.buck.features.python.PythonLibraryDescription.CoreArg args)
-
parseModules
public static com.google.common.collect.ImmutableSortedMap<Path,SourcePath> parseModules(BuildTarget target, ActionGraphBuilder graphBuilder, PythonPlatform pythonPlatform, CxxPlatform cxxPlatform, Optional<com.google.common.collect.ImmutableMap<BuildTarget,Version>> versions, com.facebook.buck.features.python.PythonLibraryDescription.CoreArg args)
-
parseResources
public static com.google.common.collect.ImmutableSortedMap<Path,SourcePath> parseResources(BuildTarget target, ActionGraphBuilder graphBuilder, PythonPlatform pythonPlatform, CxxPlatform cxxPlatform, Optional<com.google.common.collect.ImmutableMap<BuildTarget,Version>> versions, com.facebook.buck.features.python.PythonLibraryDescription.CoreArg args)
-
getBasePath
public static Path getBasePath(BuildTarget target, Optional<String> override)
-
-