From bc4201a7f1e93d6afb62caa8ce81bb1b0211b70c Mon Sep 17 00:00:00 2001 From: Dylan Baker Date: Wed, 30 Jun 2021 13:03:54 -0700 Subject: 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. --- docs/markdown/snippets/required_and_disabled_import.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 docs/markdown/snippets/required_and_disabled_import.md (limited to 'docs/markdown/snippets') 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. -- cgit v1.1