Debian Codegraph @

subprojects/meson-docs/docs/yaml/functions/static_library.yaml

raw
1 name: static_library
2 returns: lib
3 description: Builds a static library with the given sources.
4
5 posargs_inherit: _build_target_base
6 varargs_inherit: _build_target_base
7 kwargs_inherit: _build_target_base
8
9 kwargs:
10 pic:
11 type: bool
12 since: 0.36.0
13 description: |
14 Builds the library as positional independent code
15 (so it can be linked into a shared library). This
16 option has no effect on Windows and OS X since it doesn't make
17 sense on Windows and PIC cannot be disabled on OS X.
18
19 prelink:
20 type: bool
21 since: 0.57.0
22 description: |
23 If `true` the object files in the target will be prelinked,
24 meaning that it will contain only one prelinked
25 object file rather than the individual object files.
26
27 rust_abi:
28 type: str
29 since: 1.3.0
30 description: |
31 Set the specific ABI to compile (when compiling rust).
32 - 'rust' (default): Create a "rlib" crate.
33 - 'c': Create a "staticlib" crate.