]> git.tdb.fi Git - builder.git/blobdiff - source/analyzer.cpp
Big rewrite for a more tool-centric approach
[builder.git] / source / analyzer.cpp
index d59519c13115c186d52fc230353690c08372bd62..dd8894c61b4d61a122c236c8c9116091658a0f2f 100644 (file)
@@ -7,6 +7,7 @@
 #include "package.h"
 #include "sourcefile.h"
 #include "target.h"
+#include "tool.h"
 
 using namespace std;
 using namespace Msp;
@@ -38,6 +39,7 @@ void Analyzer::analyze()
        row.push_back("Name");
        row.push_back("Package");
        row.push_back("Type");
+       row.push_back("Tool");
        row.push_back("Rebuild");
        table.push_back(row);
        
@@ -87,7 +89,12 @@ void Analyzer::build_depend_table(Target &tgt, unsigned depth)
                row.push_back("");
        
        row.push_back(tgt.get_type());
-       
+       const Tool *tool = tgt.get_tool();
+       if(tool)
+               row.push_back(tool->get_tag());
+       else
+               row.push_back("");
+
        if(tgt.get_rebuild())
        {
                if(tgt.get_rebuild_reason().empty())