aboutsummaryrefslogtreecommitdiff
path: root/build/variable
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-12-01 15:37:04 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-12-01 15:37:04 +0200
commit74212589a797ca75e55f92a522e198915c0dbaf6 (patch)
tree6e16ed2ed816c66a0c3edef74c1f1e050fa0e272 /build/variable
parent10fd2aface4486fc7f873dd2b54a1c2073c0b434 (diff)
Use 'extension' variable to resolve extension for file{}
We now also check target type/pattern-specific variables. So the new usage is: cli{*}: extension = cli
Diffstat (limited to 'build/variable')
-rw-r--r--build/variable9
1 files changed, 7 insertions, 2 deletions
diff --git a/build/variable b/build/variable
index 2aec39d..7976ab9 100644
--- a/build/variable
+++ b/build/variable
@@ -768,8 +768,13 @@ namespace build
// consider its lifetime.
//
using variable_pattern_map = std::map<std::string, variable_map>;
- using variable_type_map = std::map<std::reference_wrapper<const target_type>,
- variable_pattern_map>;
+
+ struct variable_type_map: std::map<std::reference_wrapper<const target_type>,
+ variable_pattern_map>
+ {
+ build::lookup<const value>
+ lookup (const target_type&, const string& name, const variable&) const;
+ };
}
#include <build/variable.ixx>