]> git.tdb.fi Git - builder.git/blobdiff - source/sourcefile.cpp
Add comments
[builder.git] / source / sourcefile.cpp
index 55910a64823742b12f45b259289ebae5270daa6c..c4eea79eee84fa2b4c76d18c5f8e3619746513d9 100644 (file)
@@ -7,11 +7,17 @@
 using namespace std;
 using namespace Msp;
 
+#include <iostream>
+
 SourceFile::SourceFile(Builder &b, const Component *c, const string &n):
        Target(b, c?&c->get_package():0, n),
        comp(c)
 { }
 
+/**
+Parses include directives from the file and looks up the appropriate targets
+from Builder.
+*/
 void SourceFile::find_depends()
 {
        ifstream in(name.c_str());
@@ -31,4 +37,6 @@ void SourceFile::find_depends()
                if(hdr)
                        add_depend(hdr);
        }
+
+       deps_ready=true;
 }