aboutsummaryrefslogtreecommitdiff
path: root/build/rule
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2015-07-07 09:18:22 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2015-07-07 09:18:22 +0200
commit49d5628e35593a5300d39596286c768d7aa435b6 (patch)
tree43f20983a381c54aac7536e78e4f9543d8761aac /build/rule
parent16c19b739a58845af7f807c3dee8021a1c421006 (diff)
Rework module architecture
Now the target type and rule maps are in scopes (builtins -- in global scope). We also now have the map of loaded modules in the root scope of each project.
Diffstat (limited to 'build/rule')
-rw-r--r--build/rule13
1 files changed, 0 insertions, 13 deletions
diff --git a/build/rule b/build/rule
index eda6ed3..fbcf06b 100644
--- a/build/rule
+++ b/build/rule
@@ -7,11 +7,6 @@
#include <string>
#include <cstddef> // nullptr_t
-#include <typeindex>
-#include <functional> // reference_wrapper
-#include <unordered_map>
-
-#include <butl/prefix-map>
#include <build/types>
#include <build/target>
@@ -56,14 +51,6 @@ namespace build
apply (action, target&, const match_result&) const = 0;
};
- using target_rule_map = std::unordered_map<
- std::type_index,
- butl::prefix_map<std::string, std::reference_wrapper<rule>, '.'>>;
-
- using operation_rule_map = std::unordered_map<operation_id, target_rule_map>;
-
- extern operation_rule_map rules;
-
// Fallback rule that on update verifies that the file exists and is
// not older than any of its prerequisites.
//