Annotation Interface CLibrary
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
-
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionString[]
Specifies the name of the libraries this library depends on.boolean
Specifies if static linking is required.
-
Element Details
-
value
String valueThe 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, andhello.dll
on Windows.- Since:
- 19.0
-
requireStatic
boolean requireStaticSpecifies if static linking is required.- Since:
- 19.1.0
- Default:
false
-
dependsOn
String[] dependsOnSpecifies the name of the libraries this library depends on.- Since:
- 20.1.0
- Default:
{}
-