From 724a88eb4c5ebdddb6d334beec53105f679c154a Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 17 Jul 2018 08:16:23 +0200 Subject: Add ability to customize in::rule's default symbol and mode --- build2/in/rule.hxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'build2/in/rule.hxx') diff --git a/build2/in/rule.hxx b/build2/in/rule.hxx index e588fd9f..a68e80c 100644 --- a/build2/in/rule.hxx +++ b/build2/in/rule.hxx @@ -19,7 +19,8 @@ namespace build2 class rule: public build2::rule { public: - rule () {} + rule (char symbol = '$', bool strict = true) + : symbol_ (symbol), strict_ (strict) {} virtual bool match (action, target&, const string&) const override; @@ -43,6 +44,10 @@ namespace build2 target_state perform_update (action, const target&) const; + + protected: + char symbol_; + bool strict_; }; } } -- cgit v1.1