]> git.tdb.fi Git - builder.git/blobdiff - source/sourcefile.cpp
Make BuildInfo able to handle chained dependencies
[builder.git] / source / sourcefile.cpp
index d95ea5edc5f3678d1f1c0eb1926a50866ab22311..062665c22d2fda44636d1c591eba55a3c01deb8e 100644 (file)
@@ -1,12 +1,5 @@
-/* $Id$
-
-This file is part of builder
-Copyright © 2006-2009  Mikko Rasa, Mikkosoft Productions
-Distributed under the LGPL
-*/
-
+#include <msp/core/maputils.h>
 #include <msp/fs/utils.h>
-#include <msp/io/except.h>
 #include <msp/io/print.h>
 #include <msp/strings/regex.h>
 #include "builder.h"
@@ -46,7 +39,7 @@ void SourceFile::find_depends()
                        includes = deps_cache.get_deps(relname);
                        deps_found = true;
                }
-               catch(const KeyError &)
+               catch(const key_error &)
                { }
        }
 
@@ -68,7 +61,7 @@ void SourceFile::find_depends()
 
                        deps_cache.set_deps(relname, includes);
                }
-               catch(const IO::FileNotFound &)
+               catch(const IO::file_not_found &)
                {
                        if(builder.get_verbose()>=4)
                                IO::print("Failed to read includes from %s\n", path.str());
@@ -82,7 +75,7 @@ void SourceFile::find_depends()
        FS::Path dir = FS::dirname(path);
        for(list<string>::iterator i=includes.begin(); i!=includes.end(); ++i)
        {
-               Target *hdr = builder.get_header(*i, dir, incpath);
+               Target *hdr = builder.get_vfs().find_header(*i, dir, incpath);
                if(hdr)
                        add_depend(hdr);
        }