public abstract class PreprocessorFlags extends Object implements AddsToRuleKey
Modifier and Type | Class and Description |
---|---|
static class |
PreprocessorFlags.Builder |
Constructor and Description |
---|
PreprocessorFlags() |
Modifier and Type | Method and Description |
---|---|
static PreprocessorFlags.Builder |
builder() |
com.facebook.buck.cxx.CxxIncludePaths |
getCxxIncludePaths() |
Iterable<BuildRule> |
getDeps(SourcePathRuleFinder ruleFinder) |
abstract com.google.common.collect.ImmutableList<FrameworkPath> |
getFrameworkPaths()
Directories set via
-F . |
CxxToolFlags |
getIncludePathFlags(SourcePathResolverAdapter resolver,
PathShortener pathShortener,
java.util.function.Function<FrameworkPath,Path> frameworkPathTransformer,
Preprocessor preprocessor) |
abstract com.google.common.collect.ImmutableList<CxxHeaders> |
getIncludes()
Directories set via
-I . |
CxxToolFlags |
getNonIncludePathFlags(SourcePathResolverAdapter resolver,
Optional<Pair<com.facebook.buck.cxx.PrecompiledHeaderData,PathShortener>> pchAndShortener,
Preprocessor preprocessor) |
CxxToolFlags |
getOtherFlags()
Other flags included as is.
|
abstract Optional<SourcePath> |
getPrefixHeader()
File set via
-include . |
CxxToolFlags |
getSanitizedIncludePathFlags(DebugPathSanitizer sanitizer,
SourcePathResolverAdapter resolver,
PathShortener pathShortener,
java.util.function.Function<FrameworkPath,Path> frameworkPathTransformer,
Preprocessor preprocessor) |
static PreprocessorFlags |
of(Optional<SourcePath> prefixHeader,
CxxToolFlags otherFlags,
com.google.common.collect.ImmutableList<CxxHeaders> includes,
com.google.common.collect.ImmutableList<FrameworkPath> frameworkPaths) |
CxxToolFlags |
toToolFlags(SourcePathResolverAdapter resolver,
PathShortener pathShortener,
java.util.function.Function<FrameworkPath,Path> frameworkPathTransformer,
Preprocessor preprocessor,
Optional<com.facebook.buck.cxx.PrecompiledHeaderData> precompiledHeader) |
PreprocessorFlags |
withFrameworkPaths(com.google.common.collect.ImmutableList<FrameworkPath> frameworkPaths) |
PreprocessorFlags |
withOtherFlags(CxxToolFlags otherFlags) |
PreprocessorFlags |
withPrefixHeader(Optional<SourcePath> prefixHeader) |
public abstract Optional<SourcePath> getPrefixHeader()
-include
. This might be a prefix header or a precompiled header.@Value.Default public CxxToolFlags getOtherFlags()
public abstract com.google.common.collect.ImmutableList<CxxHeaders> getIncludes()
-I
.public abstract com.google.common.collect.ImmutableList<FrameworkPath> getFrameworkPaths()
-F
.@Value.Derived public com.facebook.buck.cxx.CxxIncludePaths getCxxIncludePaths()
public Iterable<BuildRule> getDeps(SourcePathRuleFinder ruleFinder)
public CxxToolFlags getIncludePathFlags(SourcePathResolverAdapter resolver, PathShortener pathShortener, java.util.function.Function<FrameworkPath,Path> frameworkPathTransformer, Preprocessor preprocessor)
public CxxToolFlags getSanitizedIncludePathFlags(DebugPathSanitizer sanitizer, SourcePathResolverAdapter resolver, PathShortener pathShortener, java.util.function.Function<FrameworkPath,Path> frameworkPathTransformer, Preprocessor preprocessor)
public CxxToolFlags getNonIncludePathFlags(SourcePathResolverAdapter resolver, Optional<Pair<com.facebook.buck.cxx.PrecompiledHeaderData,PathShortener>> pchAndShortener, Preprocessor preprocessor)
public CxxToolFlags toToolFlags(SourcePathResolverAdapter resolver, PathShortener pathShortener, java.util.function.Function<FrameworkPath,Path> frameworkPathTransformer, Preprocessor preprocessor, Optional<com.facebook.buck.cxx.PrecompiledHeaderData> precompiledHeader)
public static PreprocessorFlags of(Optional<SourcePath> prefixHeader, CxxToolFlags otherFlags, com.google.common.collect.ImmutableList<CxxHeaders> includes, com.google.common.collect.ImmutableList<FrameworkPath> frameworkPaths)
public static PreprocessorFlags.Builder builder()
public PreprocessorFlags withFrameworkPaths(com.google.common.collect.ImmutableList<FrameworkPath> frameworkPaths)
public PreprocessorFlags withOtherFlags(CxxToolFlags otherFlags)
public PreprocessorFlags withPrefixHeader(Optional<SourcePath> prefixHeader)