From dd5791309e7dcd0a156063784a60245d8088da14 Mon Sep 17 00:00:00 2001 From: Daniel Mensinger Date: Sun, 3 Mar 2019 09:18:48 +0100 Subject: [PATCH] rewriter: Document info operation --- docs/markdown/Rewriter.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/docs/markdown/Rewriter.md b/docs/markdown/Rewriter.md index 8d465973e..30e0bc1e2 100644 --- a/docs/markdown/Rewriter.md +++ b/docs/markdown/Rewriter.md @@ -219,3 +219,13 @@ The format for the type `default_options` is defined as follows: ``` For operation `delete`, the values of the `options` can be anything (including `null`) + +## Extracting information + +The rewriter also offers operation `info` for the types `target` and `kwargs`. +When this operation is used, meson will print a JSON dump to stderr, containing +all available information to the rewriter about the build target / function +kwargs in question. + +The output format is guaranteed to be backwards compatible, but new keys may be +added in the future.