diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-06-30 13:03:54 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-06-30 16:28:14 -0700 |
commit | bc4201a7f1e93d6afb62caa8ce81bb1b0211b70c (patch) | |
tree | e630b202d1e35803a87cb1306517f79d91dbe0de /docs/markdown/snippets | |
parent | 4a0a6a80837af1b75db3b3b57a5b8f41386e5c0b (diff) | |
download | meson-bc4201a7f1e93d6afb62caa8ce81bb1b0211b70c.zip meson-bc4201a7f1e93d6afb62caa8ce81bb1b0211b70c.tar.gz meson-bc4201a7f1e93d6afb62caa8ce81bb1b0211b70c.tar.bz2 |
interpreter: add required and disabled to import
This is useful both from the perspective of optional functionality that
requires a module, and also as I continue to progress with Meson++,
which will probably not implement all of the modules that Meson itself
does.
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r-- | docs/markdown/snippets/required_and_disabled_import.md | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/markdown/snippets/required_and_disabled_import.md b/docs/markdown/snippets/required_and_disabled_import.md new file mode 100644 index 0000000..39ca307 --- /dev/null +++ b/docs/markdown/snippets/required_and_disabled_import.md @@ -0,0 +1,5 @@ +## The `import()` function gains `required` and `disabler` arguments + +In addition, modules now have a `found()` method, like programs and +dependencies. This allows them to be conditionally required, and used in most +places that an object with a `found()` method can be. |