aboutsummaryrefslogtreecommitdiff
path: root/build/spec
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-03-09 11:52:27 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-03-09 11:52:27 +0200
commit5807ff000225acf47064eb7f0be965bf1598faaa (patch)
tree0811254ebad92470a54cbeb6ce89646a7f8aa815 /build/spec
parentfa6f9986dd73627643469c238b32dd92607f5214 (diff)
Add meta/operation lists, lift operations in buildspec
Diffstat (limited to 'build/spec')
-rw-r--r--build/spec18
1 files changed, 10 insertions, 8 deletions
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<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;