From 546edb8e6a0b610c2db2a0bef878f28cd395bd77 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 11 Nov 2021 13:20:30 +0200 Subject: WIP: depdb dep infra --- libbuild2/build/script/parser.hxx | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) (limited to 'libbuild2/build/script/parser.hxx') 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&); 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 - Track the environment variables change as a // hash. // - optional 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 depdb_clear_; // depdb-clear location if any. + optional 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. -- cgit v1.1