Adds a new debug() function that can be used in the meson.build to log messages to the meson-log.txt that will not be printed to stdout when configuring the project.pull/10212/head
parent
969ae6e0e1
commit
2cdddbab56
7 changed files with 46 additions and 0 deletions
@ -0,0 +1,5 @@ |
||||
## Added `debug` function |
||||
|
||||
In addition to the `message()`, `warning()` and `error()` functions there is now the |
||||
`debug()` function to log messages that only end up in the `meson-log.txt` logfile |
||||
and are not printed to stdout at configure time. |
@ -0,0 +1,14 @@ |
||||
name: debug |
||||
returns: void |
||||
since: 0.63.0 |
||||
description: Write the argument string to the meson build log. |
||||
|
||||
posargs: |
||||
message: |
||||
type: str | int | bool | list[str | int | bool] | dict[str | int | bool] |
||||
description: The message to print |
||||
|
||||
varargs: |
||||
name: msg |
||||
type: str | int | bool | list[str | int | bool] | dict[str | int | bool] |
||||
description: Additional parameters will be separated by spaces |
@ -0,0 +1,4 @@ |
||||
project('debug function', 'c') |
||||
|
||||
debug('This is an example debug output, should only end up in debug log') |
||||
debug('Test logging other things', true, 1, ['Array'], {'Key' : 'Value'}) |
Loading…
Reference in new issue