NativeBinary

API Documentation:NativeBinary

Note: This class is incubating and may change in a future version of Gradle.

Represents a particular binary artifact that is the result of building a native component.

Properties

PropertyDescription
buildType
Incubating

The BuildType used to construct this binary.

buildable
Incubating

Can this binary be built in the current environment?

flavor
Incubating

The flavor that this binary was built with.

libs
Incubating

The libraries that should be linked into this binary.

linker
Incubating

The settings used for linking this binary.

outputFile
Incubating

The file where this binary will be created.

source
Incubating

The source sets used to compile this binary.

targetPlatform
Incubating

The Platform that this binary is targeted to run on.

tasks
Incubating

The set of tasks associated with this binary.

toolChain
Incubating

The ToolChain that will be used to build this binary.

Properties added by the assembler plugin

PropertyDescription
assembler
Incubating

The Tool added by the assembler plugin.

Properties added by the c plugin

PropertyDescription
cCompiler
Incubating

The PreprocessingTool added by the c plugin.

Properties added by the cpp plugin

PropertyDescription
cppCompiler
Incubating

The PreprocessingTool added by the cpp plugin.

Property details

BuildType buildType (read-only)

Note: This property is incubating and may change in a future version of Gradle.

The BuildType used to construct this binary.

boolean buildable (read-only)

Note: This property is incubating and may change in a future version of Gradle.

Can this binary be built in the current environment?

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.

Note: This property is incubating 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 is incubating and may change in a future version of Gradle.

The settings used for linking 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.

Note: This property is incubating and may change in a future version of Gradle.

The source sets used to compile this binary.

Platform targetPlatform (read-only)

Note: This property is incubating and may change in a future version of Gradle.

The Platform that this binary is targeted to run on.

NativeBinaryTasks tasks (read-only)

Note: This property is incubating and may change in a future version of Gradle.

The set of tasks associated with 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.

Tool assembler (read-only)

Note: This property is incubating and may change in a future version of Gradle.

The Tool added by the assembler plugin.

PreprocessingTool cCompiler (read-only)

Note: This property is incubating and may change in a future version of Gradle.

The PreprocessingTool added by the c plugin.

PreprocessingTool cppCompiler (read-only)

Note: This property is incubating and may change in a future version of Gradle.

The PreprocessingTool added by the cpp plugin.

Script blocks

Script blocks added by the assembler plugin

BlockDescription
assembler
Incubating

Configures the Tool added by the assembler plugin.

Script blocks added by the c plugin

BlockDescription
cCompiler
Incubating

Configures the PreprocessingTool added by the c plugin.

Script blocks added by the cpp plugin

BlockDescription
cppCompiler
Incubating

Configures the PreprocessingTool added by the cpp plugin.

Script block details

assembler { }

Note: This script block is incubating and may change in a future version of Gradle.

Configures the Tool added by the assembler plugin.

Delegates to:
Tool from assembler

cCompiler { }

Note: This script block is incubating and may change in a future version of Gradle.

Configures the PreprocessingTool added by the c plugin.

Delegates to:
PreprocessingTool from cCompiler

cppCompiler { }

Note: This script block is incubating and may change in a future version of Gradle.

Configures the PreprocessingTool added by the cpp plugin.

Delegates to:
PreprocessingTool from cppCompiler

Methods

MethodDescription
lib(library)
Incubating

Adds a library as input to this binary.

source(source)
Incubating

Adds one or more LanguageSourceSets that are used to compile this binary.

Method details

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 source(Object source)

Note: This method is incubating and may change in a future version of Gradle.

Adds one or more LanguageSourceSets that are used to compile this binary.

This method accepts the following types: