public class CxxBuckConfig extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_FLAVOR_LIBRARY_TYPE |
static String |
DEFAULT_FLAVOR_PLATFORM |
Constructor and Description |
---|
CxxBuckConfig(BuckConfig delegate) |
CxxBuckConfig(BuckConfig delegate,
Flavor flavor) |
public static final String DEFAULT_FLAVOR_LIBRARY_TYPE
public static final String DEFAULT_FLAVOR_PLATFORM
public CxxBuckConfig(BuckConfig delegate)
public CxxBuckConfig(BuckConfig delegate, Flavor flavor)
public static com.google.common.collect.ImmutableSet<Flavor> getCxxFlavors(BuckConfig config)
public com.google.common.collect.ImmutableMap<Flavor,CxxBuckConfig> getFlavoredConfigs()
public com.google.common.collect.ImmutableMap<String,String> getEnvironment()
BuckConfig
was created.public Optional<BuildTarget> getGtestDep(TargetConfiguration targetConfiguration)
BuildTarget
which represents the gtest library.public Optional<BuildTarget> getGtestDefaultTestMainDep(TargetConfiguration targetConfiguration)
BuildTarget
which represents the main function that gtest tests should use
by default (if no other main is given).public Optional<BuildTarget> getBoostTestDep(TargetConfiguration targetConfiguration)
BuildTarget
which represents the boost testing library.@Nullable public PathSourcePath getSourcePath(Path path)
public Optional<SourcePath> getSourcePath(String name, TargetConfiguration targetConfiguration)
public Optional<ArchiverProvider> getArchiverProvider(Platform defaultPlatform)
public long getMaximumTestOutputSize()
public Optional<CompilerProvider> getAs()
public Optional<PreprocessorProvider> getAspp()
public Optional<CompilerProvider> getCc()
public Optional<PreprocessorProvider> getCpp()
public Optional<CompilerProvider> getCxx()
public Optional<PreprocessorProvider> getCxxpp()
public Optional<CompilerProvider> getCuda()
public Optional<PreprocessorProvider> getCudapp()
public Optional<CompilerProvider> getHip()
public Optional<PreprocessorProvider> getHippp()
public Optional<CompilerProvider> getAsm()
public Optional<PreprocessorProvider> getAsmpp()
public Optional<LinkerProvider> getLinkerProvider(LinkerProvider.Type defaultType)
defaultType
- the default type for a linker if `linker_platform` is not specified in the
config.public HeaderVerification getHeaderVerificationOrIgnore()
public boolean getLinkGroupsEnabled()
public boolean getPublicHeadersSymlinksEnabled()
public boolean getPrivateHeadersSymlinksEnabled()
public Optional<RuleScheduleInfo> getLinkScheduleInfo()
public boolean shouldCacheLinks()
public boolean shouldCacheStrip()
public boolean shouldCacheBinaries()
public boolean checkGTestTestList()
public boolean isPCHEnabled()
public Optional<ArchiveContents> getArchiveContents()
public com.google.common.collect.ImmutableMap<String,Flavor> getDefaultFlavorsForRuleType(RuleType type)
public int getDebugPathSanitizerLimit()
public boolean getShouldRemapHostPlatform()
public Optional<ToolProvider> getRanlib()
public Optional<ToolProvider> getObjcopy()
public Optional<ToolProvider> getNm()
public boolean isUniqueLibraryNameEnabled()
public boolean getDefaultReexportAllHeaderDependencies()
public Optional<SharedLibraryInterfaceParams.Type> getSharedLibraryInterfaces()
public Optional<com.google.common.collect.ImmutableList<String>> getIndependentShlibInterfacesLdflags()
public boolean isIndependentSharedLibraryInterfaces()
public com.google.common.collect.ImmutableSet<Flavor> getDeclaredPlatforms()
public Optional<String> getBinaryExtension()
public Optional<String> getSharedLibraryExtension()
public Optional<String> getStaticLibraryExtension()
public Optional<String> getObjectFileExtension()
public com.google.common.collect.ImmutableSortedSet<String> getConflictingHeaderBasenameWhitelist()
public Optional<HeaderMode> getHeaderMode()
public Boolean getUseDetailedUntrackedHeaderMessages()
public Boolean getFilepathLengthLimited()
public BuckConfig getDelegate()
public static Optional<UnresolvedCxxPlatform> getProviderBasedPlatform(BuckConfig config, Flavor flavor)
UnresolvedCxxPlatform
backed by the specified target.