public class CxxPlatforms extends Object
Modifier and Type | Method and Description |
---|---|
static void |
addToolFlagsFromConfig(CxxBuckConfig config,
CxxPlatform.Builder builder) |
static CxxPlatform |
build(Flavor flavor,
Platform platform,
CxxBuckConfig config,
CompilerProvider as,
PreprocessorProvider aspp,
CompilerProvider cc,
CompilerProvider cxx,
PreprocessorProvider cpp,
PreprocessorProvider cxxpp,
LinkerProvider ld,
Iterable<Arg> ldFlags,
com.google.common.collect.ImmutableMultimap<Linker.LinkableDepType,Arg> runtimeLdflags,
Tool strip,
ArchiverProvider ar,
ArchiveContents archiveContents,
Optional<ToolProvider> ranlib,
SymbolNameTool nm,
com.google.common.collect.ImmutableList<Arg> asflags,
com.google.common.collect.ImmutableList<Arg> asppflags,
com.google.common.collect.ImmutableList<Arg> cflags,
com.google.common.collect.ImmutableList<Arg> cppflags,
com.google.common.collect.ImmutableList<Arg> cxxflags,
com.google.common.collect.ImmutableList<Arg> cxxppflags,
String sharedLibraryExtension,
String sharedLibraryVersionedExtensionFormat,
String staticLibraryExtension,
String objectFileExtension,
Optional<SharedLibraryInterfaceParams> defaultSharedLibraryInterfaceParams,
DebugPathSanitizer compilerDebugPathSanitizer,
com.google.common.collect.ImmutableMap<String,String> flagMacros,
Optional<String> binaryExtension,
HeaderVerification headerVerification,
boolean publicHeadersSymlinksEnabled,
boolean privateHeadersSymlinksEnabled,
PicType picTypeForSharedLinking) |
static CxxPlatform |
copyPlatformWithFlavorAndConfig(CxxPlatform defaultPlatform,
Platform platform,
CxxBuckConfig config,
Flavor flavor)
Creates a CxxPlatform with a defined flavor for a CxxBuckConfig with default values provided
from another default CxxPlatform
|
static Iterable<BuildTarget> |
findDepsForTargetFromConstructorArgs(CxxPlatformsProvider cxxPlatformsProvider,
BuildTarget buildTarget,
Optional<Flavor> defaultCxxPlatformFlavor) |
static com.google.common.collect.ImmutableSet<Flavor> |
getAllPossibleHostFlavors() |
static UnresolvedCxxPlatform |
getConfigDefaultCxxPlatform(CxxBuckConfig cxxBuckConfig,
com.google.common.collect.ImmutableMap<Flavor,UnresolvedCxxPlatform> cxxPlatformsMap,
UnresolvedCxxPlatform systemDefaultCxxPlatform)
Returns the configured default cxx platform.
|
static UnresolvedCxxPlatform |
getCxxPlatform(CxxPlatformsProvider cxxPlatformsProvider,
BuildTarget target,
Optional<Flavor> defaultCxxPlatformFlavor)
Returns the configured cxx platform for a particular target.
|
static Flavor |
getHostFlavor() |
static Iterable<BuildTarget> |
getParseTimeDeps(TargetConfiguration targetConfiguration,
CxxPlatform cxxPlatform) |
public static CxxPlatform build(Flavor flavor, Platform platform, CxxBuckConfig config, CompilerProvider as, PreprocessorProvider aspp, CompilerProvider cc, CompilerProvider cxx, PreprocessorProvider cpp, PreprocessorProvider cxxpp, LinkerProvider ld, Iterable<Arg> ldFlags, com.google.common.collect.ImmutableMultimap<Linker.LinkableDepType,Arg> runtimeLdflags, Tool strip, ArchiverProvider ar, ArchiveContents archiveContents, Optional<ToolProvider> ranlib, SymbolNameTool nm, com.google.common.collect.ImmutableList<Arg> asflags, com.google.common.collect.ImmutableList<Arg> asppflags, com.google.common.collect.ImmutableList<Arg> cflags, com.google.common.collect.ImmutableList<Arg> cppflags, com.google.common.collect.ImmutableList<Arg> cxxflags, com.google.common.collect.ImmutableList<Arg> cxxppflags, String sharedLibraryExtension, String sharedLibraryVersionedExtensionFormat, String staticLibraryExtension, String objectFileExtension, Optional<SharedLibraryInterfaceParams> defaultSharedLibraryInterfaceParams, DebugPathSanitizer compilerDebugPathSanitizer, com.google.common.collect.ImmutableMap<String,String> flagMacros, Optional<String> binaryExtension, HeaderVerification headerVerification, boolean publicHeadersSymlinksEnabled, boolean privateHeadersSymlinksEnabled, PicType picTypeForSharedLinking)
public static CxxPlatform copyPlatformWithFlavorAndConfig(CxxPlatform defaultPlatform, Platform platform, CxxBuckConfig config, Flavor flavor)
public static com.google.common.collect.ImmutableSet<Flavor> getAllPossibleHostFlavors()
public static Flavor getHostFlavor()
public static void addToolFlagsFromConfig(CxxBuckConfig config, CxxPlatform.Builder builder)
public static UnresolvedCxxPlatform getConfigDefaultCxxPlatform(CxxBuckConfig cxxBuckConfig, com.google.common.collect.ImmutableMap<Flavor,UnresolvedCxxPlatform> cxxPlatformsMap, UnresolvedCxxPlatform systemDefaultCxxPlatform)
public static Iterable<BuildTarget> getParseTimeDeps(TargetConfiguration targetConfiguration, CxxPlatform cxxPlatform)
public static UnresolvedCxxPlatform getCxxPlatform(CxxPlatformsProvider cxxPlatformsProvider, BuildTarget target, Optional<Flavor> defaultCxxPlatformFlavor)
public static Iterable<BuildTarget> findDepsForTargetFromConstructorArgs(CxxPlatformsProvider cxxPlatformsProvider, BuildTarget buildTarget, Optional<Flavor> defaultCxxPlatformFlavor)