# lib

abstract fun lib(library: Any)(source)

Adds a library as input to this binary.

This method accepts the following types:

- A NativeLibrarySpec
- A NativeDependencySet
- 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')

#### Since

2.2