aboutsummaryrefslogtreecommitdiff
path: root/build/native
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-04-17 15:08:05 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-04-17 15:08:05 +0200
commit8f8ab1e8f6d85748547c0d0e9987eed4f3c3e17b (patch)
tree1ef9a9f271d688f1f6f2eb3fc5a8972574677433 /build/native
parent6535bf6175af32e2514faf75d2742424751a783b (diff)
Add support for target groups, use to handle obj/obja/objso object targets
Diffstat (limited to 'build/native')
-rw-r--r--build/native29
1 files changed, 28 insertions, 1 deletions
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: