From 6dbf3bbd2efa963859156826a25fc639c6c52ce5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 29 Apr 2015 13:17:30 +0200 Subject: Add support for setting target-specific variables from buildfiles --- build/parser | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'build/parser') diff --git a/build/parser b/build/parser index 94bf7f3..ccacb24 100644 --- a/build/parser +++ b/build/parser @@ -75,6 +75,9 @@ namespace build void variable (token&, token_type&, std::string name, token_type kind); + std::string + variable_name (names_type&&, const location&); + names_type names (token& t, token_type& tt) { @@ -128,8 +131,9 @@ namespace build private: const std::string* path_; // Path processed by diag_relative(). lexer* lexer_; - scope* scope_; // Current base scope (out_base). - scope* root_; // Current root scope (out_root). + target* target_; // Current target, if any. + scope* scope_; // Current base scope (out_base). + scope* root_; // Current root scope (out_root). const dir_path* out_root_; const dir_path* src_root_; target* default_target_; -- cgit v1.1