diff options
author | Daniel Mensinger <daniel@mensinger-ka.de> | 2018-12-29 22:57:27 +0100 |
---|---|---|
committer | Daniel Mensinger <daniel@mensinger-ka.de> | 2018-12-29 23:56:21 +0100 |
commit | e5099357c2b558148220e5cfeabbbcaa3d87ae42 (patch) | |
tree | 7583372ea6ce5d05d624dd1adc37ea19fa4366d3 /docs/markdown | |
parent | 64372d5cfc2da366f4638aaa027ab326a6f89ab3 (diff) | |
download | meson-e5099357c2b558148220e5cfeabbbcaa3d87ae42.zip meson-e5099357c2b558148220e5cfeabbbcaa3d87ae42.tar.gz meson-e5099357c2b558148220e5cfeabbbcaa3d87ae42.tar.bz2 |
Tests and docs
Diffstat (limited to 'docs/markdown')
-rw-r--r-- | docs/markdown/IDE-integration.md | 9 | ||||
-rw-r--r-- | docs/markdown/snippets/introspect_buildoptions_no_bd.md | 11 |
2 files changed, 20 insertions, 0 deletions
diff --git a/docs/markdown/IDE-integration.md b/docs/markdown/IDE-integration.md index 5f0c0a6..e23b77a 100644 --- a/docs/markdown/IDE-integration.md +++ b/docs/markdown/IDE-integration.md @@ -70,6 +70,15 @@ The possible values for `section` are: To set the options, use the `meson configure` command. +It is also possible to get the default buildoptions without a build directory by providing the root `meson.build` instead of a build directory to `meson introspect --buildoptions`. + +Running `--buildoptions` without a build directory produces the same output as running +it with a freshly configured build directory. + +However, this behavior is not guaranteed if subprojects are present. Due to internal +limitations all subprojects are processed even if they are never used in a real meson run. +Because of this options for the subprojects can differ. + ## Tests Compilation and unit tests are done as usual by running the `ninja` and `ninja test` commands. A JSON formatted result log can be found in `workspace/project/builddir/meson-logs/testlog.json`. diff --git a/docs/markdown/snippets/introspect_buildoptions_no_bd.md b/docs/markdown/snippets/introspect_buildoptions_no_bd.md new file mode 100644 index 0000000..f008474 --- /dev/null +++ b/docs/markdown/snippets/introspect_buildoptions_no_bd.md @@ -0,0 +1,11 @@ +## `introspect --buildoptions` can now be used without configured build directory + +It is now possible to run `meson introspect --buildoptions /path/to/meson.build` +without a configured build directory. + +Running `--buildoptions` without a build directory produces the same output as running +it with a freshly configured build directory. + +However, this behavior is not guaranteed if subprojects are present. Due to internal +limitations all subprojects are processed even if they are never used in a real meson run. +Because of this options for the subprojects can differ.
\ No newline at end of file |