Package com.facebook.buck.cxx
Class PrebuiltCxxLibraryDescriptionArg
- java.lang.Object
-
- com.facebook.buck.cxx.PrebuiltCxxLibraryDescriptionArg
-
- All Implemented Interfaces:
BuildRuleArg
,ConstructorArg
,DataTransferObject
,HasDeclaredDeps
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class PrebuiltCxxLibraryDescriptionArg extends Object
Immutable implementation ofPrebuiltCxxLibraryDescription.AbstractPrebuiltCxxLibraryDescriptionArg
.Use the builder to create immutable instances:
PrebuiltCxxLibraryDescriptionArg.builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PrebuiltCxxLibraryDescriptionArg.Builder
Builds instances of typePrebuiltCxxLibraryDescriptionArg
.
-
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 Modifier and Type Method Description static PrebuiltCxxLibraryDescriptionArg.Builder
builder()
Creates a builder forPrebuiltCxxLibraryDescriptionArg
.boolean
equals(Object another)
This instance is equal to all instances ofPrebuiltCxxLibraryDescriptionArg
that have equal attribute values.boolean
getCanBeAsset()
com.google.common.collect.ImmutableList<UnconfiguredBuildTarget>
getCompatibleWith()
A list ofconfig_setting
a target is compatible with.CxxDeps
getCxxDeps()
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()
CxxDeps
getExportedCxxDeps()
com.google.common.collect.ImmutableSortedSet<BuildTarget>
getExportedDeps()
SourceSortedSet
getExportedHeaders()
com.google.common.collect.ImmutableMap<CxxSource.Type,PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>>>
getExportedLangPlatformPreprocessorFlags()
com.google.common.collect.ImmutableMap<CxxSource.Type,com.google.common.collect.ImmutableList<StringWithMacros>>
getExportedLangPreprocessorFlags()
com.google.common.collect.ImmutableList<StringWithMacros>
getExportedLinkerFlags()
PatternMatchedCollection<com.google.common.collect.ImmutableSortedSet<BuildTarget>>
getExportedPlatformDeps()
PatternMatchedCollection<SourceSortedSet>
getExportedPlatformHeaders()
PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>>
getExportedPlatformLinkerFlags()
PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>>
getExportedPlatformPreprocessorFlags()
com.google.common.collect.ImmutableList<String>
getExportedPostLinkerFlags()
PatternMatchedCollection<com.google.common.collect.ImmutableList<String>>
getExportedPostPlatformLinkerFlags()
com.google.common.collect.ImmutableList<StringWithMacros>
getExportedPreprocessorFlags()
com.google.common.collect.ImmutableSortedSet<FrameworkPath>
getFrameworks()
Optional<com.google.common.collect.ImmutableList<SourcePath>>
getHeaderDirs()
Optional<String>
getHeaderNamespace()
Optional<SourcePath>
getImportLib()
com.google.common.collect.ImmutableSortedSet<String>
getLabels()
com.google.common.collect.ImmutableSortedSet<FrameworkPath>
getLibraries()
com.google.common.collect.ImmutableSet<SourcePath>
getLicenses()
boolean
getLinkWithoutSoname()
String
getName()
Each rule has a nameOptional<PatternMatchedCollection<com.google.common.collect.ImmutableList<SourcePath>>>
getPlatformHeaderDirs()
Optional<PatternMatchedCollection<SourcePath>>
getPlatformImportLib()
Optional<PatternMatchedCollection<SourcePath>>
getPlatformSharedLib()
Optional<PatternMatchedCollection<SourcePath>>
getPlatformStaticLib()
Optional<PatternMatchedCollection<SourcePath>>
getPlatformStaticPicLib()
Optional<NativeLinkableGroup.Linkage>
getPreferredLinkage()
CxxDeps
getPrivateCxxDeps()
Optional<SourcePath>
getSharedLib()
Optional<String>
getSoname()
Optional<SourcePath>
getStaticLib()
Optional<SourcePath>
getStaticPicLib()
Optional<Pattern>
getSupportedPlatformsRegex()
Optional<Boolean>
getSupportsMergedLinking()
VersionMatchedCollection<com.google.common.collect.ImmutableMap<CxxSource.Type,PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>>>>
getVersionedExportedLangPlatformPreprocessorFlags()
VersionMatchedCollection<com.google.common.collect.ImmutableMap<CxxSource.Type,com.google.common.collect.ImmutableList<StringWithMacros>>>
getVersionedExportedLangPreprocessorFlags()
VersionMatchedCollection<PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>>>
getVersionedExportedPlatformPreprocessorFlags()
VersionMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>>
getVersionedExportedPreprocessorFlags()
Optional<VersionMatchedCollection<com.google.common.collect.ImmutableList<SourcePath>>>
getVersionedHeaderDirs()
Optional<VersionMatchedCollection<SourcePath>>
getVersionedImportLib()
Optional<VersionMatchedCollection<SourcePath>>
getVersionedSharedLib()
Optional<VersionMatchedCollection<SourcePath>>
getVersionedStaticLib()
Optional<VersionMatchedCollection<SourcePath>>
getVersionedStaticPicLib()
int
hashCode()
Computes a hash code from attributes:headerDirs
,platformHeaderDirs
,versionedHeaderDirs
,importLib
,platformImportLib
,versionedImportLib
,sharedLib
,platformSharedLib
,versionedSharedLib
,staticLib
,platformStaticLib
,versionedStaticLib
,staticPicLib
,platformStaticPicLib
,versionedStaticPicLib
,headerOnly
,exportedHeaders
,exportedPlatformHeaders
,headerNamespace
,provided
,linkWhole
,forceStatic
,preferredLinkage
,exportedPreprocessorFlags
,exportedPlatformPreprocessorFlags
,exportedLangPreprocessorFlags
,exportedLangPlatformPreprocessorFlags
,versionedExportedPreprocessorFlags
,versionedExportedPlatformPreprocessorFlags
,versionedExportedLangPreprocessorFlags
,versionedExportedLangPlatformPreprocessorFlags
,exportedLinkerFlags
,exportedPostLinkerFlags
,exportedPlatformLinkerFlags
,exportedPostPlatformLinkerFlags
,soname
,linkWithoutSoname
,canBeAsset
,frameworks
,libraries
,exportedDeps
,exportedPlatformDeps
,supportedPlatformsRegex
,supportsSharedLibraryInterface
,supportsMergedLinking
,privateCxxDeps
,exportedCxxDeps
,cxxDeps
,licenses
,labels
,defaultTargetPlatform
,compatibleWith
,name
,deps
.boolean
isForceStatic()
boolean
isHeaderOnly()
boolean
isLinkWhole()
boolean
isProvided()
boolean
isSupportsSharedLibraryInterface()
String
toString()
Prints the immutable valuePrebuiltCxxLibraryDescriptionArg
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
-
getHeaderDirs
public Optional<com.google.common.collect.ImmutableList<SourcePath>> getHeaderDirs()
- Returns:
- The value of the
headerDirs
attribute
-
getPlatformHeaderDirs
public Optional<PatternMatchedCollection<com.google.common.collect.ImmutableList<SourcePath>>> getPlatformHeaderDirs()
- Returns:
- The value of the
platformHeaderDirs
attribute
-
getVersionedHeaderDirs
public Optional<VersionMatchedCollection<com.google.common.collect.ImmutableList<SourcePath>>> getVersionedHeaderDirs()
- Returns:
- The value of the
versionedHeaderDirs
attribute
-
getImportLib
public Optional<SourcePath> getImportLib()
- Returns:
- The value of the
importLib
attribute
-
getPlatformImportLib
public Optional<PatternMatchedCollection<SourcePath>> getPlatformImportLib()
- Returns:
- The value of the
platformImportLib
attribute
-
getVersionedImportLib
public Optional<VersionMatchedCollection<SourcePath>> getVersionedImportLib()
- Returns:
- The value of the
versionedImportLib
attribute
-
getSharedLib
public Optional<SourcePath> getSharedLib()
- Returns:
- The value of the
sharedLib
attribute
-
getPlatformSharedLib
public Optional<PatternMatchedCollection<SourcePath>> getPlatformSharedLib()
- Returns:
- The value of the
platformSharedLib
attribute
-
getVersionedSharedLib
public Optional<VersionMatchedCollection<SourcePath>> getVersionedSharedLib()
- Returns:
- The value of the
versionedSharedLib
attribute
-
getStaticLib
public Optional<SourcePath> getStaticLib()
- Returns:
- The value of the
staticLib
attribute
-
getPlatformStaticLib
public Optional<PatternMatchedCollection<SourcePath>> getPlatformStaticLib()
- Returns:
- The value of the
platformStaticLib
attribute
-
getVersionedStaticLib
public Optional<VersionMatchedCollection<SourcePath>> getVersionedStaticLib()
- Returns:
- The value of the
versionedStaticLib
attribute
-
getStaticPicLib
public Optional<SourcePath> getStaticPicLib()
- Returns:
- The value of the
staticPicLib
attribute
-
getPlatformStaticPicLib
public Optional<PatternMatchedCollection<SourcePath>> getPlatformStaticPicLib()
- Returns:
- The value of the
platformStaticPicLib
attribute
-
getVersionedStaticPicLib
public Optional<VersionMatchedCollection<SourcePath>> getVersionedStaticPicLib()
- Returns:
- The value of the
versionedStaticPicLib
attribute
-
isHeaderOnly
public boolean isHeaderOnly()
- Returns:
- The value of the
headerOnly
attribute
-
getExportedHeaders
public SourceSortedSet getExportedHeaders()
- Returns:
- The value of the
exportedHeaders
attribute
-
getExportedPlatformHeaders
public PatternMatchedCollection<SourceSortedSet> getExportedPlatformHeaders()
- Returns:
- The value of the
exportedPlatformHeaders
attribute
-
getHeaderNamespace
public Optional<String> getHeaderNamespace()
- Returns:
- The value of the
headerNamespace
attribute
-
isProvided
public boolean isProvided()
- Returns:
- The value of the
provided
attribute
-
isLinkWhole
public boolean isLinkWhole()
- Returns:
- The value of the
linkWhole
attribute
-
isForceStatic
public boolean isForceStatic()
- Returns:
- The value of the
forceStatic
attribute
-
getPreferredLinkage
public Optional<NativeLinkableGroup.Linkage> getPreferredLinkage()
- Returns:
- The value of the
preferredLinkage
attribute
-
getExportedPreprocessorFlags
public com.google.common.collect.ImmutableList<StringWithMacros> getExportedPreprocessorFlags()
- Returns:
- The value of the
exportedPreprocessorFlags
attribute
-
getExportedPlatformPreprocessorFlags
public PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>> getExportedPlatformPreprocessorFlags()
- Returns:
- The value of the
exportedPlatformPreprocessorFlags
attribute
-
getExportedLangPreprocessorFlags
public com.google.common.collect.ImmutableMap<CxxSource.Type,com.google.common.collect.ImmutableList<StringWithMacros>> getExportedLangPreprocessorFlags()
- Returns:
- The value of the
exportedLangPreprocessorFlags
attribute
-
getExportedLangPlatformPreprocessorFlags
public com.google.common.collect.ImmutableMap<CxxSource.Type,PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>>> getExportedLangPlatformPreprocessorFlags()
- Returns:
- The value of the
exportedLangPlatformPreprocessorFlags
attribute
-
getVersionedExportedPreprocessorFlags
public VersionMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>> getVersionedExportedPreprocessorFlags()
- Returns:
- The value of the
versionedExportedPreprocessorFlags
attribute
-
getVersionedExportedPlatformPreprocessorFlags
public VersionMatchedCollection<PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>>> getVersionedExportedPlatformPreprocessorFlags()
- Returns:
- The value of the
versionedExportedPlatformPreprocessorFlags
attribute
-
getVersionedExportedLangPreprocessorFlags
public VersionMatchedCollection<com.google.common.collect.ImmutableMap<CxxSource.Type,com.google.common.collect.ImmutableList<StringWithMacros>>> getVersionedExportedLangPreprocessorFlags()
- Returns:
- The value of the
versionedExportedLangPreprocessorFlags
attribute
-
getVersionedExportedLangPlatformPreprocessorFlags
public VersionMatchedCollection<com.google.common.collect.ImmutableMap<CxxSource.Type,PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>>>> getVersionedExportedLangPlatformPreprocessorFlags()
- Returns:
- The value of the
versionedExportedLangPlatformPreprocessorFlags
attribute
-
getExportedLinkerFlags
public com.google.common.collect.ImmutableList<StringWithMacros> getExportedLinkerFlags()
- Returns:
- The value of the
exportedLinkerFlags
attribute
-
getExportedPostLinkerFlags
public com.google.common.collect.ImmutableList<String> getExportedPostLinkerFlags()
- Returns:
- The value of the
exportedPostLinkerFlags
attribute
-
getExportedPlatformLinkerFlags
public PatternMatchedCollection<com.google.common.collect.ImmutableList<StringWithMacros>> getExportedPlatformLinkerFlags()
- Returns:
- The value of the
exportedPlatformLinkerFlags
attribute
-
getExportedPostPlatformLinkerFlags
public PatternMatchedCollection<com.google.common.collect.ImmutableList<String>> getExportedPostPlatformLinkerFlags()
- Returns:
- The value of the
exportedPostPlatformLinkerFlags
attribute
-
getLinkWithoutSoname
public boolean getLinkWithoutSoname()
- Returns:
- The value of the
linkWithoutSoname
attribute
-
getCanBeAsset
public boolean getCanBeAsset()
- Returns:
- The value of the
canBeAsset
attribute
-
getFrameworks
public com.google.common.collect.ImmutableSortedSet<FrameworkPath> getFrameworks()
- Returns:
- The value of the
frameworks
attribute
-
getLibraries
public com.google.common.collect.ImmutableSortedSet<FrameworkPath> getLibraries()
- Returns:
- The value of the
libraries
attribute
-
getExportedDeps
public com.google.common.collect.ImmutableSortedSet<BuildTarget> getExportedDeps()
- Returns:
- The value of the
exportedDeps
attribute
-
getExportedPlatformDeps
public PatternMatchedCollection<com.google.common.collect.ImmutableSortedSet<BuildTarget>> getExportedPlatformDeps()
- Returns:
- The value of the
exportedPlatformDeps
attribute
-
getSupportedPlatformsRegex
public Optional<Pattern> getSupportedPlatformsRegex()
- Returns:
- The value of the
supportedPlatformsRegex
attribute
-
isSupportsSharedLibraryInterface
public boolean isSupportsSharedLibraryInterface()
- Returns:
- The value of the
supportsSharedLibraryInterface
attribute
-
getSupportsMergedLinking
public Optional<Boolean> getSupportsMergedLinking()
- Returns:
- The value of the
supportsMergedLinking
attribute
-
getPrivateCxxDeps
public CxxDeps getPrivateCxxDeps()
- Returns:
- C/C++ deps which are *not* propagated to dependents.
-
getExportedCxxDeps
public CxxDeps getExportedCxxDeps()
- Returns:
- C/C++ deps which are propagated to dependents.
-
getCxxDeps
public CxxDeps getCxxDeps()
- Returns:
- the C/C++ deps this rule builds against.
-
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
-
getDeps
public com.google.common.collect.ImmutableSortedSet<BuildTarget> getDeps()
- Specified by:
getDeps
in interfaceHasDeclaredDeps
- Returns:
- The value of the
deps
attribute
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofPrebuiltCxxLibraryDescriptionArg
that have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:headerDirs
,platformHeaderDirs
,versionedHeaderDirs
,importLib
,platformImportLib
,versionedImportLib
,sharedLib
,platformSharedLib
,versionedSharedLib
,staticLib
,platformStaticLib
,versionedStaticLib
,staticPicLib
,platformStaticPicLib
,versionedStaticPicLib
,headerOnly
,exportedHeaders
,exportedPlatformHeaders
,headerNamespace
,provided
,linkWhole
,forceStatic
,preferredLinkage
,exportedPreprocessorFlags
,exportedPlatformPreprocessorFlags
,exportedLangPreprocessorFlags
,exportedLangPlatformPreprocessorFlags
,versionedExportedPreprocessorFlags
,versionedExportedPlatformPreprocessorFlags
,versionedExportedLangPreprocessorFlags
,versionedExportedLangPlatformPreprocessorFlags
,exportedLinkerFlags
,exportedPostLinkerFlags
,exportedPlatformLinkerFlags
,exportedPostPlatformLinkerFlags
,soname
,linkWithoutSoname
,canBeAsset
,frameworks
,libraries
,exportedDeps
,exportedPlatformDeps
,supportedPlatformsRegex
,supportsSharedLibraryInterface
,supportsMergedLinking
,privateCxxDeps
,exportedCxxDeps
,cxxDeps
,licenses
,labels
,defaultTargetPlatform
,compatibleWith
,name
,deps
.
-
toString
public String toString()
Prints the immutable valuePrebuiltCxxLibraryDescriptionArg
with attribute values.
-
builder
public static PrebuiltCxxLibraryDescriptionArg.Builder builder()
Creates a builder forPrebuiltCxxLibraryDescriptionArg
.- Returns:
- A new PrebuiltCxxLibraryDescriptionArg builder
-
-