Constructor and Description |
---|
ModuleBuildContext(com.google.common.collect.ImmutableSet<BuildTarget> circularDependencyInducingTargets) |
public ModuleBuildContext(com.google.common.collect.ImmutableSet<BuildTarget> circularDependencyInducingTargets)
public void ensureAndroidFacetBuilder()
public IjModuleAndroidFacet.Builder getOrCreateAndroidFacetBuilder()
public boolean isAndroidFacetBuilderPresent()
public Optional<IjModuleAndroidFacet> getAndroidFacet()
public com.google.common.collect.ImmutableCollection<IjFolder> getSourceFolders()
public void addExtraLibraryDependency(IjLibrary library)
public com.google.common.collect.ImmutableSet<IjLibrary> getExtraLibraryDependencies()
public void addExtraModuleDependency(Path path)
public com.google.common.collect.ImmutableSet<Path> getExtraModuleDependencies()
public void addNonSourceBuildTarget(BuildTarget buildTarget)
public com.google.common.collect.ImmutableSet<BuildTarget> getNonSourceBuildTargets()
public Map<BuildTarget,List<IjFolder>> getTargetsToGeneratedSourcesMap()
public void addGeneratedSourceCodeFolder(BuildTarget buildTarget, IjFolder generatedFolder)
public com.google.common.collect.ImmutableCollection<IjFolder> getGeneratedSourceCodeFolders()
public IjModuleType getModuleType()
public void setModuleType(IjModuleType moduleType)
public void setMetaInfDirectory(Path metaInfDirectory)
public void addSourceFolder(IjFolder folder)
folder
- folder to add/merge.public void addDeps(Iterable<BuildTarget> buildTargets, DependencyType dependencyType)
public void addCompileShadowDep(BuildTarget buildTarget)
public void addDeps(com.google.common.collect.ImmutableSet<Path> sourcePaths, Iterable<BuildTarget> buildTargets, DependencyType dependencyType)
BuildTarget
. The dependency's type will be merged if multiple
TargetNode
s refer to it or if multiple TargetNodes include sources from the same
directory.sourcePaths
- the Path
s to sources which need this dependency to build. Can be
empty.buildTargets
- the BuildTarget
s to depend ondependencyType
- what is the dependency needed for.public com.google.common.collect.ImmutableMap<BuildTarget,DependencyType> getDependencies()