diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2016-07-16 10:51:35 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2016-07-16 10:51:35 +0200 |
commit | b439803cc5e09188c7b523333f6b71de3ba57dbf (patch) | |
tree | 0ed119a6910c441124b8c053d0df48c8f1127fad /build2/types | |
parent | 5fac16471ba789965a72ffbbea406b75d8a680dc (diff) |
Add support for prepend/append in target type/pattern-specific vars
Semantically, these are similar to variable overrides and are essentially
treated as "templates" that are applied on lookup to the "stem" value that is
specific to the target type/name. For example:
x = [string] a
file{f*}: x =+ b
sub/:
{
file{*}: x += c
print $(file{foo}:x) # abc
print $(file{bar}:x) # ac
}
Diffstat (limited to 'build2/types')
-rw-r--r-- | build2/types | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/build2/types b/build2/types index 6fdea4e..fcfdcef 100644 --- a/build2/types +++ b/build2/types @@ -5,6 +5,7 @@ #ifndef BUILD2_TYPES #define BUILD2_TYPES +#include <tuple> #include <vector> #include <string> #include <memory> // unique_ptr, shared_ptr @@ -42,6 +43,7 @@ namespace build2 using std::nullptr_t; using std::pair; + using std::tuple; using std::string; using std::function; using std::reference_wrapper; |