@Incubating interface NativeBinarySpec : BinarySpec
Represents a binary artifact that is the result of building a native component.
abstract fun getAssembler(): Tool
The configuration of the assembler used when compiling assembly sources this binary. Valid for SharedLibraryBinarySpec, StaticLibraryBinarySpec and NativeExecutableBinarySpec when the 'assembler' plugin is applied. |
|
abstract fun getBuildType(): BuildType
Returns the org.gradle.nativeplatform.BuildType used to construct this binary. |
|
abstract fun getComponent(): NativeComponentSpec
The component that this binary was built from. |
|
abstract fun getCppCompiler(): PreprocessingTool
The configuration of the C++ compiler used when compiling C++ sources for this binary. Valid for SharedLibraryBinarySpec, StaticLibraryBinarySpec and NativeExecutableBinarySpec when the 'cpp' plugin is applied. |
|
abstract fun getFlavor(): Flavor
The org.gradle.nativeplatform.Flavor that this binary was built with. |
|
abstract fun getLibs(): MutableCollection<NativeDependencySet>
The libraries that should be linked into this binary. |
|
abstract fun getLinker(): Tool
The configuration of the linker used when linking this binary. Valid for SharedLibraryBinarySpec and NativeExecutableBinarySpec. |
|
abstract fun getObjcCompiler(): PreprocessingTool
The configuration of the Objective-C compiler used when compiling Objective-C sources for this binary. Valid for SharedLibraryBinarySpec, StaticLibraryBinarySpec and NativeExecutableBinarySpec when the 'objective-c' plugin is applied. |
|
abstract fun getObjcppCompiler(): PreprocessingTool
The configuration of the Objective-C++ compiler used when compiling Objective-C++ sources for this binary. Valid for SharedLibraryBinarySpec, StaticLibraryBinarySpec and NativeExecutableBinarySpec when the 'objective-cpp' plugin is applied. |
|
abstract fun getRcCompiler(): PreprocessingTool
The configuration of the Resource compiler used when compiling resources for this binary. Valid for SharedLibraryBinarySpec, StaticLibraryBinarySpec and NativeExecutableBinarySpec when the 'windows-resources' plugin is applied. |
|
abstract fun getStaticLibArchiver(): Tool
The configuration of the static library archiver used when creating this binary. Valid for StaticLibraryBinarySpec. |
|
abstract fun getTargetPlatform(): NativePlatform
Returns the org.gradle.nativeplatform.platform.NativePlatform that this binary is targeted to run on. |
|
abstract fun getToolChain(): NativeToolChain
Returns the org.gradle.nativeplatform.toolchain.NativeToolChain that will be used to build this binary. |
|
abstract fun getcCompiler(): PreprocessingTool
The configuration of the C compiler used when compiling C sources for this binary. Valid for SharedLibraryBinarySpec, StaticLibraryBinarySpec and NativeExecutableBinarySpec when the 'c' plugin is applied. |
|
abstract fun lib(library: Any): Unit
Adds a library as input to this binary. This method accepts the following types:
|
abstract fun getInputs(): DomainObjectSet<LanguageSourceSet>
Returns all inputs of the binary. This includes source sets owned by the binary, and other source sets created elsewhere (e.g. inherited from the binary's component). |
|
abstract fun getSources(): ModelMap<LanguageSourceSet>
The sources owned by this binary. |
|
abstract fun getTasks(): BinaryTasksCollection
The set of tasks associated with this binary. |
|
abstract fun isBuildable(): Boolean
Can this binary be built in the current environment? |
interface NativeExecutableBinarySpec : NativeBinarySpec, ApplicationBinarySpec
An binary built by Gradle for a native application. |
|
interface NativeLibraryBinarySpec : NativeBinarySpec, LibraryBinarySpec
Represents a binary artifact that is the result of building a native library component. |
|
interface NativeTestSuiteBinarySpec : TestSuiteBinarySpec, NativeBinarySpec
An executable which runs a suite of tests. |