aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/build/script/parser.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2021-11-11 13:20:30 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2021-11-16 14:37:44 +0200
commit546edb8e6a0b610c2db2a0bef878f28cd395bd77 (patch)
tree8d173f7e0f3971989cc3ad011aa40ceb75a25596 /libbuild2/build/script/parser.hxx
parent189a1c2a8fad0716e0bc4132e21f664c80d7574b (diff)
WIP: depdb dep infra
Diffstat (limited to 'libbuild2/build/script/parser.hxx')
-rw-r--r--libbuild2/build/script/parser.hxx15
1 files changed, 11 insertions, 4 deletions
diff --git a/libbuild2/build/script/parser.hxx b/libbuild2/build/script/parser.hxx
index b737a13..f3ddfba 100644
--- a/libbuild2/build/script/parser.hxx
+++ b/libbuild2/build/script/parser.hxx
@@ -119,8 +119,11 @@ namespace build2
exec_lines (const lines&, const function<exec_cmd_function>&);
names
- exec_special (token& t, build2::script::token_type& tt,
- bool omit_builtin = true);
+ exec_special (token&, build2::script::token_type&, bool skip_first);
+
+ void
+ exec_depdb_dep (token&, build2::script::token_type&,
+ const location&);
// Helpers.
//
@@ -219,8 +222,12 @@ namespace build2
// depdb env <var-names> - Track the environment variables change as a
// hash.
//
- optional<location> depdb_clear_; // 'depdb clear' location if any.
- lines depdb_preamble_; // Note: excludes 'depdb clear'.
+ // depdb dep ... - Extract additional dependency information.
+ // Can only be the last depdb builtin call.
+ //
+ optional<location> depdb_clear_; // depdb-clear location if any.
+ optional<location> depdb_dep_; // depdb-dep location if any.
+ lines depdb_preamble_; // Note: excludes depdb-clear.
// If present, the first impure function called in the body of the
// script that performs update of a file-based target.