The Meson Build System
http://mesonbuild.com/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
929 B
37 lines
929 B
## Add a new summary() function |
|
|
|
A new function [`summary()`](Reference-manual.md#summary) has been added to |
|
summarize build configuration at the end of the build process. |
|
|
|
Example: |
|
```meson |
|
project('My Project', version : '1.0') |
|
summary({'bindir': get_option('bindir'), |
|
'libdir': get_option('libdir'), |
|
'datadir': get_option('datadir'), |
|
}, section: 'Directories') |
|
summary({'Some boolean': false, |
|
'Another boolean': true, |
|
'Some string': 'Hello World', |
|
'A list': ['string', 1, true], |
|
}, section: 'Configuration') |
|
``` |
|
|
|
Output: |
|
``` |
|
My Project 1.0 |
|
|
|
Directories |
|
prefix: /opt/gnome |
|
bindir: bin |
|
libdir: lib/x86_64-linux-gnu |
|
datadir: share |
|
|
|
Configuration |
|
Some boolean: False |
|
Another boolean: True |
|
Some string: Hello World |
|
A list: string |
|
1 |
|
True |
|
```
|
|
|