From 00df206af5c80aba31bf7d180bdf03d617071e94 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 8 May 2023 10:43:40 +0200 Subject: Add support for dumping build system state in JSON format (GH issue #182) Specifically: 1. New --dump-format option. Valid values are `buildfile` and `json-v0.1`. 2. The --dump option now recognizes two additional values: `match-pre` and `match-post` to dump the state of pre/post-operations. The `match` value now only triggers dumping of the main operation. --- libbuild2/b-options.ixx | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libbuild2/b-options.ixx') diff --git a/libbuild2/b-options.ixx b/libbuild2/b-options.ixx index d19edb8..99e73d0 100644 --- a/libbuild2/b-options.ixx +++ b/libbuild2/b-options.ixx @@ -218,6 +218,18 @@ namespace build2 return this->dump_specified_; } + inline const string& b_options:: + dump_format () const + { + return this->dump_format_; + } + + inline bool b_options:: + dump_format_specified () const + { + return this->dump_format_specified_; + } + inline const dir_paths& b_options:: dump_scope () const { -- cgit v1.1