]> git.tdb.fi Git - builder.git/blobdiff - source/target.cpp
Give targets the ability to gather their own build info
[builder.git] / source / target.cpp
index f9fe16b28720c2f3a9628fd99ea27faeabd35a1d..7c5532f9f8200daca4859cedaa51682a138a9a10 100644 (file)
@@ -85,6 +85,14 @@ void Target::set_tool(Tool &t)
                (*i)->set_tool(t);
 }
 
+void Target::collect_build_info(BuildInfo &binfo) const
+{
+       if(component)
+               binfo.update_from(component->get_build_info());
+       else if(package)
+               binfo.update_from(package->get_build_info());
+}
+
 void Target::force_rebuild()
 {
        if(!is_buildable())