gradle
8.4

# lib

abstract fun lib(library: Any)(source)

Adds a library that this source set requires. This method accepts the following types:

- A org.gradle.nativeplatform.NativeLibrarySpec
- A org.gradle.nativeplatform.NativeDependencySet
- A LanguageSourceSet
- A java.util.Map containing the library selector.

The Map notation supports the following String attributes:

- project: the path to the project containing the library (optional, defaults to current project)
- library: the name of the library (required)
- linkage: the library linkage required ['shared'/'static'] (optional, defaults to 'shared')