From 8f8ab1e8f6d85748547c0d0e9987eed4f3c3e17b Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 17 Apr 2015 15:08:05 +0200 Subject: Add support for target groups, use to handle obj/obja/objso object targets --- build/native | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) (limited to 'build/native') diff --git a/build/native b/build/native index 88f340d..3c1e6f2 100644 --- a/build/native +++ b/build/native @@ -9,7 +9,9 @@ namespace build { - class obj: public file + // The obj{} target group members. + // + class obja: public file { public: using file::file; @@ -19,6 +21,31 @@ namespace build static const target_type static_type; }; + class objso: public file + { + public: + using file::file; + + public: + virtual const target_type& type () const {return static_type;} + static const target_type static_type; + }; + + // Target group. + // + class obj: public target + { + public: + using target::target; + + obja* a {nullptr}; + objso* so {nullptr}; + + public: + virtual const target_type& type () const {return static_type;} + static const target_type static_type; + }; + class exe: public file { public: -- cgit v1.1