aboutsummaryrefslogtreecommitdiff
path: root/build/native.cxx
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/native.cxx
parent4c44c914d898af53152addad5530504548175e85 (diff)
Implement lib/liba/libso{} target group, shared/static library build
Diffstat (limited to 'build/native.cxx')
-rw-r--r--build/native.cxx72
1 files changed, 0 insertions, 72 deletions
diff --git a/build/native.cxx b/build/native.cxx
deleted file mode 100644
index 42b6cf3..0000000
--- a/build/native.cxx
+++ /dev/null
@@ -1,72 +0,0 @@
-// file : build/native.cxx -*- C++ -*-
-// copyright : Copyright (c) 2014-2015 Code Synthesis Tools CC
-// license : MIT; see accompanying LICENSE file
-
-#include <build/native>
-
-using namespace std;
-
-namespace build
-{
- const target_type obja::static_type
- {
- typeid (obja),
- "obja",
- &file::static_type,
- &member_target_factory<obja, obj>,
- file::static_type.search
- };
-
- const target_type objso::static_type
- {
- typeid (objso),
- "objso",
- &file::static_type,
- &member_target_factory<objso, obj>,
- file::static_type.search
- };
-
- static target*
- obj_factory (dir_path d, string n, const string* e)
- {
- target* a (targets.find (obja::static_type, d, n));
- target* so (targets.find (objso::static_type, d, n));
-
- obj* t (new obj (move (d), move (n), e));
-
- if ((t->a = static_cast<obja*> (a)))
- a->group = t;
-
- if ((t->so = static_cast<objso*> (so)))
- so->group = t;
-
- return t;
- }
-
- const target_type obj::static_type
- {
- typeid (obj),
- "obj",
- &target::static_type,
- &obj_factory,
- target::static_type.search
- };
-
- const target_type exe::static_type
- {
- typeid (exe),
- "exe",
- &file::static_type,
- &target_factory<exe>,
- file::static_type.search
- };
-
- const target_type lib::static_type
- {
- typeid (lib),
- "lib",
- &file::static_type,
- &target_factory<lib>,
- file::static_type.search
- };
-}