Top Description Methods
org.graalvm.nativeimage.c.function

public @Interface CLibrary

extends Annotation
Annotations
@Retention:RUNTIME
@Target:TYPE, METHOD
Imports
java.lang.annotation.ElementType, .Retention, .RetentionPolicy, .Target

Denotes an external library that needs to be linked in. The annotation can be placed on any element, and the same library can be referenced by multiple annotations.
Since
19.0

Method Summary

Modifier and TypeMethod and Description
public String[]
dependsOn()

Specifies the name of the libraries this library depends on.

public boolean
requireStatic()

Specifies if static linking is required.

public String
value()

The name of the library without a file extension (e.g., "hello").

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

dependsOnback to summary
public String[] dependsOn()

Specifies the name of the libraries this library depends on.

Since
20.1.0
requireStaticback to summary
public boolean requireStatic()

Specifies if static linking is required.

Since
19.1.0
valueback to summary
public String value()

The name of the library without a file extension (e.g., "hello"). The name of the actual file is platform-specific, e.g., libhello.so on Linux, libhello.dylib on macOS, and hello.dll on Windows.

Since
19.0