API Documentation: CApplication

Configuration for an application written in C, defining the dependencies that make up the application plus other settings.

An instance of this type is added as a project extension by the C Application Plugin.

Properties

Property Description

binaries

The binaries for this component.

dependencies

The dependencies of this component.

variants

Configure the variants of this component.

Methods

Method Description

dependencies(action)

Configure the dependencies of this component.

dependencies(closure)

Configure the dependencies of this component.

Property Details

BinaryView<Binary> binaries (read-only)

The binaries for this component.

T dependencies (read-only)

The dependencies of this component.

VariantView<T> variants (read-only)

Configure the variants of this component.

Method Details

void api(Object notation)

Adds an JVM API dependency to this library. An API dependency is made visible to consumers that are compiled against this component.

void api(Object notation, Action<? super ModuleDependency> action)

Adds an JVM API dependency to this library. An API dependency is made visible to consumers that are compiled against this component.

void jvmImplementation(Object notation)

Adds an JVM implementation dependency to this library. An implementation dependency is not visible to consumers that are compiled against this component.

void jvmImplementation(Object notation, Action<? super ModuleDependency> action)

Adds an JVM implementation dependency to this library. An implementation dependency is not visible to consumers that are compiled against this component.

void jvmRuntimeOnly(Object notation, Action<? super ModuleDependency> action)

Adds an JVM runtime only dependency to this library. An implementation dependency is only visible to consumers that are running against this component.

void jvmRuntimeOnly(Object notation)

Adds an JVM runtime only dependency to this library. An implementation dependency is only visible to consumers that are running against this component.

void nativeImplementation(Object notation, Action<? super ModuleDependency> action)

Adds an native implementation dependency to this component. An implementation dependency is not visible to consumers that are compiled or linked against this component.

void nativeImplementation(Object notation)

Adds an native implementation dependency to this component. An implementation dependency is not visible to consumers that are compiled or linked against this component.

void nativeLinkOnly(Object notation)

Adds an native link only dependency to this component. An link only dependency is not visible to consumers that are compiled or linked against this component.

void nativeLinkOnly(Object notation, Action<? super ModuleDependency> action)

Adds an native link only dependency to this component. An link only dependency is not visible to consumers that are compiled or linked against this component.

void nativeRuntimeOnly(Object notation, Action<? super ModuleDependency> action)

Adds an native runtime only dependency to this component. An runtime only dependency is visible only to consumers that are running against this component.

void nativeRuntimeOnly(Object notation)

Adds an native runtime only dependency to this component. An runtime only dependency is not visible to consumers that are running against this component.