Groovy Documentation

org.gradle.nativebinaries
[Java] Interface Library

org.gradle.nativebinaries.Library
  org.gradle.nativebinaries.TargetedNativeComponent
      org.gradle.nativebinaries.ProjectNativeComponent
          org.gradle.api.Named
All Superinterfaces:
TargetedNativeComponent, ProjectNativeComponent, Named

@Incubating
public interface Library
extends ProjectNativeComponent, TargetedNativeComponent

A library component that is built by a gradle project.


Method Summary
NativeLibraryRequirement getApi()

Converts this library to a native library requirement that uses the api library linkage.

NativeLibraryRequirement getShared()

Converts this library to a native library requirement that uses the shared library variant.

NativeLibraryRequirement getStatic()

Converts this library to a native library requirement that uses the static library variant.

 
Methods inherited from interface TargetedNativeComponent
targetBuildTypes, targetFlavors, targetPlatforms
 
Methods inherited from interface ProjectNativeComponent
getBaseName, getBinaries, getDisplayName, getSource, setBaseName, source
 
Methods inherited from interface Named
getName
 

Method Detail

getApi

public NativeLibraryRequirement getApi()
Converts this library to a native library requirement that uses the api library linkage.


getShared

public NativeLibraryRequirement getShared()
Converts this library to a native library requirement that uses the shared library variant. This is the default.


getStatic

public NativeLibraryRequirement getStatic()
Converts this library to a native library requirement that uses the static library variant.


 

Gradle API 1.12