public class PythonUtil extends Object
Modifier and Type | Method and 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) |
public static boolean isModuleExt(String ext)
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)
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)
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)
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)
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)
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)
public static Path getBasePath(BuildTarget target, Optional<String> override)