Table of Contents
API Documentation: | NativeExecutableBinarySpec |
---|
Note: This class isincubating and may change in a future version of Gradle.
An binary built by Gradle for a native application.
Property | Description |
assembler | Incubating The configuration of the assembler used when compiling assembly sources this binary.Valid for |
buildType | Incubating The |
buildable | Incubating Can this binary be built in the current environment? |
cCompiler | Incubating The configuration of the C compiler used when compiling C sources for this binary.Valid for |
component | Incubating The component that this binary was built from. |
cppCompiler | Incubating The configuration of the C++ compiler used when compiling C++ sources for this binary.Valid for |
flavor | Incubating The |
inputs | Incubating 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). |
libs | Incubating The libraries that should be linked into this binary. |
linker | Incubating The configuration of the linker used when linking this binary.Valid for |
objcCompiler | Incubating The configuration of the Objective-C compiler used when compiling Objective-C sources for this binary.Valid for |
objcppCompiler | Incubating The configuration of the Objective-C++ compiler used when compiling Objective-C++ sources for this binary.Valid for |
rcCompiler | Incubating The configuration of the Resource compiler used when compiling resources for this binary.Valid for |
sources | Incubating The sources owned by this binary. |
staticLibArchiver | Incubating The configuration of the static library archiver used when creating this binary.Valid for |
targetPlatform | Incubating The |
tasks | Incubating The set of tasks associated with this binary. |
toolChain | Incubating The |
Method | Description |
lib(library) | Incubating Adds a library as input to this binary. |
Tool
assembler
(read-only)
Note: This property isincubating and may change in a future version of Gradle.
The configuration of the assembler used when compiling assembly sources this binary.Valid forSharedLibraryBinarySpec
,StaticLibraryBinarySpec
andNativeExecutableBinarySpec
when the 'assembler' plugin is applied.
BuildType
buildType
(read-only)
Note: This property isincubating and may change in a future version of Gradle.
TheBuildType
used to construct this binary.
Note: This property isincubating and may change in a future version of Gradle.
Can this binary be built in the current environment?
PreprocessingTool
cCompiler
(read-only)
Note: This property isincubating and may change in a future version of Gradle.
The configuration of the C compiler used when compiling C sources for this binary.Valid forSharedLibraryBinarySpec
,StaticLibraryBinarySpec
andNativeExecutableBinarySpec
when the 'c' plugin is applied.
NativeComponentSpec
component
(read-only)
Note: This property isincubating and may change in a future version of Gradle.
The component that this binary was built from.
PreprocessingTool
cppCompiler
(read-only)
Note: This property isincubating and may change in a future version of Gradle.
The configuration of the C++ compiler used when compiling C++ sources for this binary.Valid forSharedLibraryBinarySpec
,StaticLibraryBinarySpec
andNativeExecutableBinarySpec
when the 'cpp' plugin is applied.
Flavor
flavor
(read-only)
Note: This property isincubating and may change in a future version of Gradle.
TheFlavor
that this binary was built with.
DomainObjectSet
<LanguageSourceSet
>
inputs
(read-only)
DomainObjectSet
<LanguageSourceSet
>Note: This property isincubating and may change in a future version of Gradle.
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).
Collection
<NativeDependencySet
>
libs
(read-only)
Collection
<NativeDependencySet
>Note: This property isincubating and may change in a future version of Gradle.
The libraries that should be linked into this binary.
Tool
linker
(read-only)
Note: This property isincubating and may change in a future version of Gradle.
The configuration of the linker used when linking this binary.Valid forSharedLibraryBinarySpec
andNativeExecutableBinarySpec
.
PreprocessingTool
objcCompiler
(read-only)
Note: This property isincubating and may change in a future version of Gradle.
The configuration of the Objective-C compiler used when compiling Objective-C sources for this binary.Valid forSharedLibraryBinarySpec
,StaticLibraryBinarySpec
andNativeExecutableBinarySpec
when the 'objective-c' plugin is applied.
PreprocessingTool
objcppCompiler
(read-only)
Note: This property isincubating and may change in a future version of Gradle.
The configuration of the Objective-C++ compiler used when compiling Objective-C++ sources for this binary.Valid forSharedLibraryBinarySpec
,StaticLibraryBinarySpec
andNativeExecutableBinarySpec
when the 'objective-cpp' plugin is applied.
PreprocessingTool
rcCompiler
(read-only)
Note: This property isincubating and may change in a future version of Gradle.
The configuration of the Resource compiler used when compiling resources for this binary.Valid forSharedLibraryBinarySpec
,StaticLibraryBinarySpec
andNativeExecutableBinarySpec
when the 'windows-resources' plugin is applied.
ModelMap
<LanguageSourceSet
>
sources
(read-only)
ModelMap
<LanguageSourceSet
>Note: This property isincubating and may change in a future version of Gradle.
The sources owned by this binary.
Tool
staticLibArchiver
(read-only)
Note: This property isincubating and may change in a future version of Gradle.
The configuration of the static library archiver used when creating this binary.Valid forStaticLibraryBinarySpec
.
NativePlatform
targetPlatform
(read-only)
Note: This property isincubating and may change in a future version of Gradle.
TheNativePlatform
that this binary is targeted to run on.
BinaryTasksCollection
tasks
(read-only)
Note: This property isincubating and may change in a future version of Gradle.
The set of tasks associated with this binary.
NativeToolChain
toolChain
(read-only)
Note: This property isincubating and may change in a future version of Gradle.
TheNativeToolChain
that will be used to build this binary.
void
lib
(Object
library)
Note: This method isincubating and may change in a future version of Gradle.
Adds a library as input to this binary.
This method accepts the following types:
- A
NativeLibrarySpec
- A
NativeDependencySet
- A
Map
containing the library selector.
The Map notation supports the following String attributes:
- project: the path to the project containing the library (optional, defaults to current project)
- library: the name of the library (required)
- linkage: the library linkage required ['shared'/'static'] (optional, defaults to 'shared')