Groovy Documentation

org.gradle.nativebinaries
[Java] Interface Library

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

@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 ProjectNativeComponent
getBaseName, getBinaries, getDisplayName, getSource, setBaseName, source
 
Methods inherited from interface TargetedNativeComponent
targetBuildTypes, targetFlavors, targetPlatforms
 

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-rc-1