aboutsummaryrefslogtreecommitdiff
path: root/build/cxx/rule
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-04-24 12:29:20 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-04-24 12:29:20 +0200
commit2a0f9e035f673f1ee387924501a31990de37f18d (patch)
treeb8e55ab74bc88b788e99d8649219b931b80432d5 /build/cxx/rule
parent4c44c914d898af53152addad5530504548175e85 (diff)
Implement lib/liba/libso{} target group, shared/static library build
Diffstat (limited to 'build/cxx/rule')
-rw-r--r--build/cxx/rule7
1 files changed, 4 insertions, 3 deletions
diff --git a/build/cxx/rule b/build/cxx/rule
index 24879d4..d139cc7 100644
--- a/build/cxx/rule
+++ b/build/cxx/rule
@@ -6,9 +6,6 @@
#define BUILD_CXX_RULE
#include <build/rule>
-#include <build/native>
-
-#include <build/cxx/target>
namespace build
{
@@ -16,6 +13,8 @@ namespace build
namespace cxx
{
+ class cxx;
+
// @@ Can't we do match(obj&) and then registration code extracts
// that. And no virtuals?
//
@@ -39,6 +38,8 @@ namespace build
class link: public rule
{
public:
+ enum class type {exe, liba, libso};
+
virtual void*
match (action, target&, const std::string& hint) const;