diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-03-09 11:52:27 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-03-09 11:52:27 +0200 |
commit | 5807ff000225acf47064eb7f0be965bf1598faaa (patch) | |
tree | 0811254ebad92470a54cbeb6ce89646a7f8aa815 /build/spec | |
parent | fa6f9986dd73627643469c238b32dd92607f5214 (diff) |
Add meta/operation lists, lift operations in buildspec
Diffstat (limited to 'build/spec')
-rw-r--r-- | build/spec | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -17,29 +17,31 @@ namespace build { struct targetspec { + typedef build::name name_type; + explicit - targetspec (name t): target (std::move (t)) {} - targetspec (path sb, name t) - : src_base (std::move (sb)), target (std::move (t)) {} + targetspec (name_type n): name (std::move (n)) {} + targetspec (path sb, name_type n) + : src_base (std::move (sb)), name (std::move (n)) {} path src_base; - name target; + name_type name; }; struct opspec: std::vector<targetspec> { opspec () = default; - opspec (std::string o): operation (std::move (o)) {} + opspec (std::string n): name (std::move (n)) {} - std::string operation; + std::string name; }; struct metaopspec: std::vector<opspec> { metaopspec () = default; - metaopspec (std::string mo): meta_operation (std::move (mo)) {} + metaopspec (std::string n): name (std::move (n)) {} - std::string meta_operation; + std::string name; }; typedef std::vector<metaopspec> buildspec; |