Groovy Documentation

org.gradle.nativebinaries
[Java] Interface Library

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

@Incubating
public interface Library
extends ProjectNativeComponent

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 ProjectNativeComponent
getBaseName, getBinaries, getDisplayName, getSource, setBaseName, source, targetBuildTypes, targetFlavors, targetPlatforms
 
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.11-rc-1