-void Component::Loader::if_arch(const string &cond)
-{
- BooleanEvaluator eval(sigc::hide<1>(sigc::mem_fun(&obj.package.get_builder().get_current_arch(), &Architecture::match_name)), false);
- bool match = eval.evaluate(cond);
- obj.package.get_builder().get_logger().log("configure",
- format("%s/%s: arch %s %smatched", obj.package.get_name(), obj.name, cond, (match ? "" : "not ")));
- if(match)
- load_sub_with(*this);
-}
-
-void Component::Loader::if_feature(const string &cond)
-{
- BooleanEvaluator eval(sigc::mem_fun(&obj.package, &SourcePackage::match_feature));
- bool match = eval.evaluate(cond);
- obj.package.get_builder().get_logger().log("configure",
- format("%s/%s: feature %s %smatched", obj.package.get_name(), obj.name, cond, (match ? "" : "not ")));
- if(match)
- load_sub_with(*this);
-}
-