aboutsummaryrefslogtreecommitdiff
path: root/build2/cxx/target.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'build2/cxx/target.hxx')
-rw-r--r--build2/cxx/target.hxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/build2/cxx/target.hxx b/build2/cxx/target.hxx
index 4dd93e3..f5591d1 100644
--- a/build2/cxx/target.hxx
+++ b/build2/cxx/target.hxx
@@ -57,6 +57,21 @@ namespace build2
static const target_type static_type;
virtual const target_type& dynamic_type () const {return static_type;}
};
+
+ // The module interface unit is both like a header (e.g., we need to
+ // install it) and like a source (we need to compile it). Plus, to
+ // support dual use (modules/headers) it could actually be #include'd
+ // (and in both cases).
+ //
+ class mxx: public cc::cc
+ {
+ public:
+ using cc::cc;
+
+ public:
+ static const target_type static_type;
+ virtual const target_type& dynamic_type () const {return static_type;}
+ };
}
}