public class SwiftBuckConfig extends Object implements ConfigView<BuckConfig>
Modifier and Type | Field and Description |
---|---|
static String |
COMPILE_FORCE_CACHE |
static String |
COMPILER_FLAGS_NAME |
static String |
COPY_STDLIB_TO_FRAMEWORKS |
static String |
EMIT_SWIFTDOCS |
static String |
PROJECT_ADD_AST_PATHS |
static String |
PROJECT_EMBED_RUNTIME |
static String |
PROJECT_WMO |
static String |
USE_FILELIST |
static String |
USE_LIPO_THIN |
static String |
USE_MODULEWRAP |
static String |
VERSION_NAME |
Constructor and Description |
---|
SwiftBuckConfig(BuckConfig delegate) |
Modifier and Type | Method and Description |
---|---|
boolean |
getCompileForceCache() |
Optional<Iterable<String>> |
getCompilerFlags() |
boolean |
getCopyStdlibToFrameworks()
If enabled, swift-stdlib-tool will be run on .framework bundles, copying the Swift standard
library into them.
|
BuckConfig |
getDelegate() |
boolean |
getEmitSwiftdocs()
If enabled, a .swiftdoc file will be generated along with the .swiftmodule file.
|
boolean |
getProjectAddASTPaths()
If enabled, AST paths to the .swiftmodules will be added as part of the linker invocation.
|
boolean |
getProjectEmbedRuntime()
If enabled, automatically emebds the Swift runtime if a relevant target depends on any
libraries that use Swift.
|
boolean |
getProjectWMO()
If enabled, turns on Whole Module Optimization for any targets that contain Swift.
|
boolean |
getUseFileList() |
boolean |
getUseLipoThin()
Uses `lipo -thin` instead of `lipo -extract` when copying the Swift standard libraries.
|
boolean |
getUseModulewrap() |
Optional<String> |
getVersion() |
static SwiftBuckConfig |
of(BuckConfig delegate) |
public static final String COMPILER_FLAGS_NAME
public static final String VERSION_NAME
public static final String COMPILE_FORCE_CACHE
public static final String USE_FILELIST
public static final String USE_MODULEWRAP
public static final String PROJECT_WMO
public static final String PROJECT_EMBED_RUNTIME
public static final String PROJECT_ADD_AST_PATHS
public static final String COPY_STDLIB_TO_FRAMEWORKS
public static final String USE_LIPO_THIN
public static final String EMIT_SWIFTDOCS
public SwiftBuckConfig(BuckConfig delegate)
public BuckConfig getDelegate()
getDelegate
in interface ConfigView<BuckConfig>
public static SwiftBuckConfig of(BuckConfig delegate)
public boolean getCompileForceCache()
public boolean getUseFileList()
public boolean getUseModulewrap()
public boolean getProjectEmbedRuntime()
public boolean getProjectWMO()
public boolean getProjectAddASTPaths()
public boolean getCopyStdlibToFrameworks()
public boolean getUseLipoThin()
Regardless of the value of this config flag, the resulting libraries are then passed to `lipo -create`.
public boolean getEmitSwiftdocs()