Package com.facebook.buck.apple
Class AppleBundleDescriptionArg
- java.lang.Object
-
- com.facebook.buck.apple.AppleBundleDescriptionArg
-
- All Implemented Interfaces:
HasAppleBundleFields
,HasAppleCodesignFields
,BuildRuleArg
,ConstructorArg
,DataTransferObject
,HasContacts
,HasDeclaredDeps
,HasDefaultPlatform
,HasTests
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class AppleBundleDescriptionArg extends Object
Immutable implementation ofAppleBundleDescription.AbstractAppleBundleDescriptionArg
.Use the builder to create immutable instances:
AppleBundleDescriptionArg.builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AppleBundleDescriptionArg.Builder
Builds instances of typeAppleBundleDescriptionArg
.
-
Field Summary
-
Fields inherited from interface com.facebook.buck.core.description.arg.BuildRuleArg
DEFAULT_TARGET_PLATFORM_PARAM_NAME
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Default Methods Modifier and Type Method Description static AppleBundleDescriptionArg.Builder
builder()
Creates a builder forAppleBundleDescriptionArg
.boolean
equals(Object another)
This instance is equal to all instances ofAppleBundleDescriptionArg
that have equal attribute values.AppleAssetCatalogsCompilationOptions
getAssetCatalogsCompilationOptions()
Optional<BuildTarget>
getBinary()
default com.google.common.collect.ImmutableSortedSet<BuildTarget>
getBinaryTargets()
Returns all binary targets of this bundle, which includes default and platform-specific ones.com.google.common.collect.ImmutableList<String>
getCodesignFlags()
Optional<String>
getCodesignIdentity()
com.google.common.collect.ImmutableList<UnconfiguredBuildTarget>
getCompatibleWith()
A list ofconfig_setting
a target is compatible with.com.google.common.collect.ImmutableSortedSet<String>
getContacts()
Optional<Flavor>
getDefaultPlatform()
Optional<UnconfiguredBuildTarget>
getDefaultTargetPlatform()
The name of build target default "new" platform: it is used when a platform is not specified either globally or in a target which used this target as a dependency.com.google.common.collect.ImmutableSortedSet<BuildTarget>
getDeps()
Either<AppleBundleExtension,String>
getExtension()
Optional<com.google.common.collect.ImmutableList<String>>
getIbtoolFlags()
Optional<Boolean>
getIbtoolModuleFlag()
SourcePath
getInfoPlist()
com.google.common.collect.ImmutableMap<String,String>
getInfoPlistSubstitutions()
Optional<Boolean>
getIsAppClip()
com.google.common.collect.ImmutableSortedSet<String>
getLabels()
com.google.common.collect.ImmutableSet<SourcePath>
getLicenses()
String
getName()
Each rule has a nameOptional<PatternMatchedCollection<BuildTarget>>
getPlatformBinary()
Optional<String>
getProductName()
Optional<String>
getResourceGroup()
Optional<com.google.common.collect.ImmutableList<CxxLinkGroupMapping>>
getResourceGroupMap()
com.google.common.collect.ImmutableSortedSet<BuildTarget>
getTests()
Optional<String>
getXcodeProductType()
int
hashCode()
Computes a hash code from attributes:binary
,platformBinary
,ibtoolModuleFlag
,ibtoolFlags
,resourceGroupMap
,resourceGroup
,deps
,licenses
,labels
,defaultTargetPlatform
,compatibleWith
,name
,extension
,infoPlist
,productName
,xcodeProductType
,isAppClip
,infoPlistSubstitutions
,assetCatalogsCompilationOptions
,codesignFlags
,codesignIdentity
,contacts
,defaultPlatform
,tests
.String
toString()
Prints the immutable valueAppleBundleDescriptionArg
with attribute values.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.facebook.buck.core.description.arg.BuildRuleArg
labelsContainsAnyOf
-
-
-
-
Method Detail
-
getBinary
public Optional<BuildTarget> getBinary()
- Returns:
- The value of the
binary
attribute
-
getPlatformBinary
public Optional<PatternMatchedCollection<BuildTarget>> getPlatformBinary()
- Returns:
- The value of the
platformBinary
attribute
-
getIbtoolModuleFlag
public Optional<Boolean> getIbtoolModuleFlag()
- Returns:
- The value of the
ibtoolModuleFlag
attribute
-
getIbtoolFlags
public Optional<com.google.common.collect.ImmutableList<String>> getIbtoolFlags()
- Returns:
- The value of the
ibtoolFlags
attribute
-
getResourceGroupMap
public Optional<com.google.common.collect.ImmutableList<CxxLinkGroupMapping>> getResourceGroupMap()
- Returns:
- The value of the
resourceGroupMap
attribute
-
getResourceGroup
public Optional<String> getResourceGroup()
- Returns:
- The value of the
resourceGroup
attribute
-
getDeps
public com.google.common.collect.ImmutableSortedSet<BuildTarget> getDeps()
- Specified by:
getDeps
in interfaceHasDeclaredDeps
- Returns:
- The value of the
deps
attribute
-
getLicenses
public com.google.common.collect.ImmutableSet<SourcePath> getLicenses()
- Specified by:
getLicenses
in interfaceBuildRuleArg
- Returns:
- The value of the
licenses
attribute
-
getLabels
public com.google.common.collect.ImmutableSortedSet<String> getLabels()
- Specified by:
getLabels
in interfaceBuildRuleArg
- Returns:
- The value of the
labels
attribute
-
getDefaultTargetPlatform
public Optional<UnconfiguredBuildTarget> getDefaultTargetPlatform()
The name of build target default "new" platform: it is used when a platform is not specified either globally or in a target which used this target as a dependency.The value is a build target, but we specify it as string, because this function is not actually called, but the attr is fetched by name from the raw (unconfigured) target node.
- Specified by:
getDefaultTargetPlatform
in interfaceBuildRuleArg
-
getCompatibleWith
public com.google.common.collect.ImmutableList<UnconfiguredBuildTarget> getCompatibleWith()
A list ofconfig_setting
a target is compatible with.- Specified by:
getCompatibleWith
in interfaceBuildRuleArg
-
getName
public String getName()
Each rule has a name- Specified by:
getName
in interfaceConstructorArg
-
getExtension
public Either<AppleBundleExtension,String> getExtension()
- Specified by:
getExtension
in interfaceHasAppleBundleFields
- Returns:
- The value of the
extension
attribute
-
getInfoPlist
public SourcePath getInfoPlist()
- Specified by:
getInfoPlist
in interfaceHasAppleBundleFields
- Returns:
- The value of the
infoPlist
attribute
-
getProductName
public Optional<String> getProductName()
- Specified by:
getProductName
in interfaceHasAppleBundleFields
- Returns:
- The value of the
productName
attribute
-
getXcodeProductType
public Optional<String> getXcodeProductType()
- Specified by:
getXcodeProductType
in interfaceHasAppleBundleFields
- Returns:
- The value of the
xcodeProductType
attribute
-
getIsAppClip
public Optional<Boolean> getIsAppClip()
- Specified by:
getIsAppClip
in interfaceHasAppleBundleFields
- Returns:
- The value of the
isAppClip
attribute
-
getInfoPlistSubstitutions
public com.google.common.collect.ImmutableMap<String,String> getInfoPlistSubstitutions()
- Specified by:
getInfoPlistSubstitutions
in interfaceHasAppleBundleFields
- Returns:
- The value of the
infoPlistSubstitutions
attribute
-
getAssetCatalogsCompilationOptions
public AppleAssetCatalogsCompilationOptions getAssetCatalogsCompilationOptions()
- Specified by:
getAssetCatalogsCompilationOptions
in interfaceHasAppleBundleFields
- Returns:
- The value of the
assetCatalogsCompilationOptions
attribute
-
getCodesignFlags
public com.google.common.collect.ImmutableList<String> getCodesignFlags()
- Specified by:
getCodesignFlags
in interfaceHasAppleCodesignFields
- Returns:
- Additional flags passed to the underlying codesign tool. For example, this can be used to sign deep macOS frameworks using "--deep".
-
getCodesignIdentity
public Optional<String> getCodesignIdentity()
- Specified by:
getCodesignIdentity
in interfaceHasAppleCodesignFields
- Returns:
- A codesign identity that will be used for adhoc signing (i.e., on platforms like macOS and simulators). This field can be used to sign with Developer ID on macOS.
-
getContacts
public com.google.common.collect.ImmutableSortedSet<String> getContacts()
- Specified by:
getContacts
in interfaceHasContacts
- Returns:
- The value of the
contacts
attribute
-
getDefaultPlatform
public Optional<Flavor> getDefaultPlatform()
- Specified by:
getDefaultPlatform
in interfaceHasDefaultPlatform
- Returns:
- If present, the default platform with which to build this target if none are provided on the command line.
-
getTests
public com.google.common.collect.ImmutableSortedSet<BuildTarget> getTests()
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofAppleBundleDescriptionArg
that have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:binary
,platformBinary
,ibtoolModuleFlag
,ibtoolFlags
,resourceGroupMap
,resourceGroup
,deps
,licenses
,labels
,defaultTargetPlatform
,compatibleWith
,name
,extension
,infoPlist
,productName
,xcodeProductType
,isAppClip
,infoPlistSubstitutions
,assetCatalogsCompilationOptions
,codesignFlags
,codesignIdentity
,contacts
,defaultPlatform
,tests
.
-
toString
public String toString()
Prints the immutable valueAppleBundleDescriptionArg
with attribute values.
-
builder
public static AppleBundleDescriptionArg.Builder builder()
Creates a builder forAppleBundleDescriptionArg
.- Returns:
- A new AppleBundleDescriptionArg builder
-
getBinaryTargets
public default com.google.common.collect.ImmutableSortedSet<BuildTarget> getBinaryTargets()
Returns all binary targets of this bundle, which includes default and platform-specific ones.
-
-