public class PrebuiltAppleFrameworkDescription extends Object implements DescriptionWithTargetGraph<PrebuiltAppleFrameworkDescriptionArg>, Flavored, MetadataProvidingDescription<PrebuiltAppleFrameworkDescriptionArg>
Constructor and Description |
---|
PrebuiltAppleFrameworkDescription(ToolchainProvider toolchainProvider,
CxxBuckConfig cxxBuckConfig) |
Modifier and Type | Method and Description |
---|---|
BuildRule |
createBuildRule(BuildRuleCreationContextWithTargetGraph context,
BuildTarget buildTarget,
BuildRuleParams params,
PrebuiltAppleFrameworkDescriptionArg args)
Create a
BuildRule for the given BuildRuleParams . |
<U> Optional<U> |
createMetadata(BuildTarget buildTarget,
ActionGraphBuilder graphBuilder,
CellPathResolver cellRoots,
PrebuiltAppleFrameworkDescriptionArg args,
Optional<com.google.common.collect.ImmutableMap<BuildTarget,Version>> selectedVersions,
Class<U> metadataClass) |
Optional<com.google.common.collect.ImmutableSet<FlavorDomain<?>>> |
flavorDomains(TargetConfiguration toolchainTargetConfiguration) |
Class<PrebuiltAppleFrameworkDescriptionArg> |
getConstructorArgType()
The type of the constructor argument that is used by this description to create a rule
|
boolean |
hasFlavors(com.google.common.collect.ImmutableSet<Flavor> flavors,
TargetConfiguration toolchainTargetConfiguration) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
producesCacheableSubgraph
getConfigurationDeps
public PrebuiltAppleFrameworkDescription(ToolchainProvider toolchainProvider, CxxBuckConfig cxxBuckConfig)
public boolean hasFlavors(com.google.common.collect.ImmutableSet<Flavor> flavors, TargetConfiguration toolchainTargetConfiguration)
hasFlavors
in interface Flavored
flavors
- The set of Flavor
s to consider. All must match.BuildRule
of the given Flavor
can be created.public Optional<com.google.common.collect.ImmutableSet<FlavorDomain<?>>> flavorDomains(TargetConfiguration toolchainTargetConfiguration)
flavorDomains
in interface Flavored
public Class<PrebuiltAppleFrameworkDescriptionArg> getConstructorArgType()
BaseDescription
getConstructorArgType
in interface BaseDescription<PrebuiltAppleFrameworkDescriptionArg>
public BuildRule createBuildRule(BuildRuleCreationContextWithTargetGraph context, BuildTarget buildTarget, BuildRuleParams params, PrebuiltAppleFrameworkDescriptionArg args)
DescriptionWithTargetGraph
BuildRule
for the given BuildRuleParams
. Note that the BuildTarget
referred to in the params
contains the Flavor
to create.createBuildRule
in interface DescriptionWithTargetGraph<PrebuiltAppleFrameworkDescriptionArg>
args
- A constructor argument, of type as returned by BaseDescription.getConstructorArgType()
.BuildRule
that describes the default flavour of the rule being described.public <U> Optional<U> createMetadata(BuildTarget buildTarget, ActionGraphBuilder graphBuilder, CellPathResolver cellRoots, PrebuiltAppleFrameworkDescriptionArg args, Optional<com.google.common.collect.ImmutableMap<BuildTarget,Version>> selectedVersions, Class<U> metadataClass)
createMetadata
in interface MetadataProvidingDescription<PrebuiltAppleFrameworkDescriptionArg>