API Documentation: | ExecutableBinary |
---|
Note: This class is incubating and may change in a future version of Gradle.
A binary artifact that is built from of a Executable
, targeted at a particular platform with specific configuration.
Property | Description |
compilerArgs | Incubating The arguments passed when compiling this binary. |
flavor | Incubating The flavor that this binary was built with. |
libs | Incubating The libraries that should be linked into this binary. |
linkerArgs | Incubating The arguments passed when linking this binary. |
macros | Incubating The set of preprocessor macros to define when compiling this binary. |
outputFile | Incubating The file where this binary will be created. |
source | Incubating The source sets used to compile this binary. |
toolChain | Incubating The |
Note: This property is incubating and may change in a future version of Gradle.
The arguments passed when compiling this binary.
Flavor
flavor
(read-only)
Note: This property is incubating and may change in a future version of Gradle.
The flavor that this binary was built with.
Collection
<NativeDependencySet
>
libs
(read-only)
Collection
<NativeDependencySet
>Note: This property is incubating and may change in a future version of Gradle.
The libraries that should be linked into this binary.
Note: This property is incubating and may change in a future version of Gradle.
The arguments passed when linking this binary.
Note: This property is incubating and may change in a future version of Gradle.
The set of preprocessor macros to define when compiling this binary.
File
outputFile
Note: This property is incubating and may change in a future version of Gradle.
The file where this binary will be created.
DomainObjectSet
<LanguageSourceSet
>
source
(read-only)
DomainObjectSet
<LanguageSourceSet
>Note: This property is incubating and may change in a future version of Gradle.
The source sets used to compile this binary.
ToolChain
toolChain
(read-only)
Note: This property is incubating and may change in a future version of Gradle.
The ToolChain
that will be used to build this binary.
Method | Description |
compilerArgs(args) | Incubating Adds a number of arguments to be passed to the compiler. |
define(defines) | Incubating Adds a number of preprocessor macros to define when compiling this binary. |
lib(library) | Incubating Adds a library as input to this binary. |
linkerArgs(args) | Incubating Adds a number of arguments to be passed to the linker. |
source(source) | Incubating Adds one or more |
void
compilerArgs
(Object
...
args)
Object
...Note: This method is incubating and may change in a future version of Gradle.
Adds a number of arguments to be passed to the compiler.
void
define
(Object
...
defines)
Object
...Note: This method is incubating and may change in a future version of Gradle.
Adds a number of preprocessor macros to define when compiling this binary.
void
lib
(Object
library)
Note: This method is incubating and may change in a future version of Gradle.
Adds a library as input to this binary.
This method accepts the following types:
void
linkerArgs
(Object
...
args)
Object
...Note: This method is incubating and may change in a future version of Gradle.
Adds a number of arguments to be passed to the linker.
void
source
(Object
source)
Note: This method is incubating and may change in a future version of Gradle.
Adds one or more LanguageSourceSet
s that are used to compile this binary.
This method accepts the following types:
- A
FunctionalSourceSet
- A
LanguageSourceSet
- A Collection of
LanguageSourceSet
s