diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2019-04-24 23:19:13 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-04-24 23:19:13 +0300 |
commit | bbd67bbae93d0306e956d0ca0723bcf9cec1af20 (patch) | |
tree | f3aae6275a1e6cfc32db96d8c09d3e6365a605f6 /docs/markdown/Feature-autodetection.md | |
parent | 25931abb262d2e19d43c8b557df02f1e29857440 (diff) | |
download | meson-bbd67bbae93d0306e956d0ca0723bcf9cec1af20.zip meson-bbd67bbae93d0306e956d0ca0723bcf9cec1af20.tar.gz meson-bbd67bbae93d0306e956d0ca0723bcf9cec1af20.tar.bz2 |
Rewrap text. [skip ci]
Diffstat (limited to 'docs/markdown/Feature-autodetection.md')
-rw-r--r-- | docs/markdown/Feature-autodetection.md | 23 |
1 files changed, 19 insertions, 4 deletions
diff --git a/docs/markdown/Feature-autodetection.md b/docs/markdown/Feature-autodetection.md index 9ee2e3e..f50309e 100644 --- a/docs/markdown/Feature-autodetection.md +++ b/docs/markdown/Feature-autodetection.md @@ -4,16 +4,31 @@ short-description: Auto-detection of features like ccache and code coverage # Feature autodetection -Meson is designed for high productivity. It tries to do as many things automatically as it possibly can. +Meson is designed for high productivity. It tries to do as many things +automatically as it possibly can. CCache -- -[CCache](https://ccache.samba.org/) is a cache system designed to make compiling faster. When you run Meson for the first time for a given project, it checks if CCache is installed. If it is, Meson will use it automatically. +[CCache](https://ccache.samba.org/) is a cache system designed to make +compiling faster. When you run Meson for the first time for a given +project, it checks if CCache is installed. If it is, Meson will use it +automatically. -If you do not wish to use CCache for some reason, just specify your compiler with environment variables `CC` and/or `CXX` when first running Meson (remember that once specified the compiler can not be changed). Meson will then use the specified compiler without CCache. +If you do not wish to use CCache for some reason, just specify your +compiler with environment variables `CC` and/or `CXX` when first +running Meson (remember that once specified the compiler can not be +changed). Meson will then use the specified compiler without CCache. Coverage -- -When doing a code coverage build, Meson will check for existence of the binaries `gcovr`, `lcov` and `genhtml`. If version 3.3 or higher of the first is found, targets called *coverage-text*, *coverage-xml* and *coverage-html* are generated. Alternatively, if the latter two are found, only the target *coverage-html* is generated. Coverage reports can then be produced simply by calling e.g. `ninja coverage-xml`. As a convenience, a high-level *coverage* target is also generated which will produce all 3 coverage report types, if possible. +When doing a code coverage build, Meson will check for existence of +the binaries `gcovr`, `lcov` and `genhtml`. If version 3.3 or higher +of the first is found, targets called *coverage-text*, *coverage-xml* +and *coverage-html* are generated. Alternatively, if the latter two +are found, only the target *coverage-html* is generated. Coverage +reports can then be produced simply by calling e.g. `ninja +coverage-xml`. As a convenience, a high-level *coverage* target is +also generated which will produce all 3 coverage report types, if +possible. |