From 5807ff000225acf47064eb7f0be965bf1598faaa Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 9 Mar 2015 11:52:27 +0200 Subject: Add meta/operation lists, lift operations in buildspec --- build/spec | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'build/spec') diff --git a/build/spec b/build/spec index fda4186..ace0400 100644 --- a/build/spec +++ b/build/spec @@ -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 { 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 { 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 buildspec; -- cgit v1.1