| 1 |
--- |
| 2 |
short-description: Meson modules for common build operations |
| 3 |
... |
| 4 |
|
| 5 |
# Modules |
| 6 |
|
| 7 |
In addition to core language features, Meson also provides a module |
| 8 |
system aimed at providing helper methods for common build operations. |
| 9 |
Using modules is simple, first you import them: |
| 10 |
|
| 11 |
```meson |
| 12 |
mymod = import('somemodule') |
| 13 |
``` |
| 14 |
|
| 15 |
After this you can use the returned object to use the functionality |
| 16 |
provided: |
| 17 |
|
| 18 |
```meson |
| 19 |
mymod.do_something('text argument') |
| 20 |
``` |
| 21 |
|
| 22 |
Meson has a selection of modules to make common requirements easy to |
| 23 |
use. Modules can be thought of like the standard library of a |
| 24 |
programming language. Currently Meson provides the modules listed on |
| 25 |
subpages. |