aboutsummaryrefslogtreecommitdiff
path: root/build/native.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-02-23 15:56:03 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-02-23 15:56:03 +0200
commitfefe0657f29b8db782f7a722dd46b074b991cf08 (patch)
tree62008e350c4f6048a68444fe50c47281643d276a /build/native.cxx
parent962cb1040670977085f0a187ecc6730608578151 (diff)
Redo rule match/build logic
Now the rule is fully responsible for searching, matching, and building of prerequisites.
Diffstat (limited to 'build/native.cxx')
-rw-r--r--build/native.cxx20
1 files changed, 16 insertions, 4 deletions
diff --git a/build/native.cxx b/build/native.cxx
index 61ecb72..8d58e66 100644
--- a/build/native.cxx
+++ b/build/native.cxx
@@ -8,9 +8,21 @@ using namespace std;
namespace build
{
- const target_type exe::static_type {
- typeid (exe), "exe", &file::static_type, &target_factory<exe>};
+ const target_type exe::static_type
+ {
+ typeid (exe),
+ "exe",
+ &file::static_type,
+ &target_factory<exe>,
+ file::static_type.search
+ };
- const target_type obj::static_type {
- typeid (obj), "obj", &file::static_type, &target_factory<obj>};
+ const target_type obj::static_type
+ {
+ typeid (obj),
+ "obj",
+ &file::static_type,
+ &target_factory<obj>,
+ file::static_type.search
+ };
}