diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2015-07-07 09:18:22 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2015-07-07 09:18:22 +0200 |
commit | 49d5628e35593a5300d39596286c768d7aa435b6 (patch) | |
tree | 43f20983a381c54aac7536e78e4f9543d8761aac /build/rule | |
parent | 16c19b739a58845af7f807c3dee8021a1c421006 (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/rule | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -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. // |