public class AndroidResourceDescription extends Object implements DescriptionWithTargetGraph<AndroidResourceDescriptionArg>, Flavored, ImplicitDepsInferringDescription<AndroidResourceDescriptionArg>
| Modifier and Type | Field and Description |
|---|---|
static Flavor |
AAPT2_COMPILE_FLAVOR |
static Flavor |
ANDROID_RESOURCE_INDEX_FLAVOR |
static Flavor |
ASSETS_SYMLINK_TREE_FLAVOR |
static Flavor |
RESOURCES_SYMLINK_TREE_FLAVOR |
| Constructor and Description |
|---|
AndroidResourceDescription(ToolchainProvider toolchainProvider,
AndroidBuckConfig androidBuckConfig) |
| Modifier and Type | Method and Description |
|---|---|
BuildRule |
createBuildRule(BuildRuleCreationContextWithTargetGraph context,
BuildTarget buildTarget,
BuildRuleParams params,
AndroidResourceDescriptionArg args)
Create a
BuildRule for the given BuildRuleParams. |
void |
findDepsForTargetFromConstructorArgs(BuildTarget buildTarget,
CellNameResolver cellRoots,
AndroidResourceDescriptionArg constructorArg,
com.google.common.collect.ImmutableCollection.Builder<BuildTarget> extraDepsBuilder,
com.google.common.collect.ImmutableCollection.Builder<BuildTarget> targetGraphOnlyDepsBuilder) |
Class<AndroidResourceDescriptionArg> |
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, waitproducesCacheableSubgraphgetConfigurationDepsflavorDomainspublic static final Flavor RESOURCES_SYMLINK_TREE_FLAVOR
public static final Flavor ANDROID_RESOURCE_INDEX_FLAVOR
public static final Flavor ASSETS_SYMLINK_TREE_FLAVOR
public static final Flavor AAPT2_COMPILE_FLAVOR
public AndroidResourceDescription(ToolchainProvider toolchainProvider, AndroidBuckConfig androidBuckConfig)
public Class<AndroidResourceDescriptionArg> getConstructorArgType()
BaseDescriptiongetConstructorArgType in interface BaseDescription<AndroidResourceDescriptionArg>public BuildRule createBuildRule(BuildRuleCreationContextWithTargetGraph context, BuildTarget buildTarget, BuildRuleParams params, AndroidResourceDescriptionArg args)
DescriptionWithTargetGraphBuildRule for the given BuildRuleParams. Note that the BuildTarget referred to in the params contains the Flavor to create.createBuildRule in interface DescriptionWithTargetGraph<AndroidResourceDescriptionArg>args - A constructor argument, of type as returned by BaseDescription.getConstructorArgType().BuildRule that describes the default flavour of the rule being described.public boolean hasFlavors(com.google.common.collect.ImmutableSet<Flavor> flavors, TargetConfiguration toolchainTargetConfiguration)
hasFlavors in interface Flavoredflavors - The set of Flavors to consider. All must match.BuildRule of the given Flavor
can be created.public void findDepsForTargetFromConstructorArgs(BuildTarget buildTarget, CellNameResolver cellRoots, AndroidResourceDescriptionArg constructorArg, com.google.common.collect.ImmutableCollection.Builder<BuildTarget> extraDepsBuilder, com.google.common.collect.ImmutableCollection.Builder<BuildTarget> targetGraphOnlyDepsBuilder)
findDepsForTargetFromConstructorArgs in interface ImplicitDepsInferringDescription<AndroidResourceDescriptionArg>