aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/b-options.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-05-08 10:43:40 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-05-09 15:37:33 +0200
commit00df206af5c80aba31bf7d180bdf03d617071e94 (patch)
tree00a637e6d78e7f8e9de323a0804df59c403120ef /libbuild2/b-options.hxx
parent7a458f210f296cb3cc1551a4606f0cf025003f3a (diff)
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.
Diffstat (limited to 'libbuild2/b-options.hxx')
-rw-r--r--libbuild2/b-options.hxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/libbuild2/b-options.hxx b/libbuild2/b-options.hxx
index 9afef25..37239ce 100644
--- a/libbuild2/b-options.hxx
+++ b/libbuild2/b-options.hxx
@@ -171,6 +171,12 @@ namespace build2
bool
dump_specified () const;
+ const string&
+ dump_format () const;
+
+ bool
+ dump_format_specified () const;
+
const dir_paths&
dump_scope () const;
@@ -305,6 +311,8 @@ namespace build2
bool no_mtime_check_;
strings dump_;
bool dump_specified_;
+ string dump_format_;
+ bool dump_format_specified_;
dir_paths dump_scope_;
bool dump_scope_specified_;
vector<pair<name, optional<name>>> dump_target_;