]> git.tdb.fi Git - builder.git/blobdiff - source/objectfile.cpp
Add missing includes
[builder.git] / source / objectfile.cpp
index 3fd88d25b06f83af74eb8a051e55d4af05a2cf06..c5a87fde883117e61d2cafdce85bae1a4656213e 100644 (file)
@@ -5,6 +5,7 @@ Copyright © 2006-2007 Mikko Rasa, Mikkosoft Productions
 Distributed under the LGPL
 */
 
+#include <algorithm>
 #include <msp/path/utils.h>
 #include "builder.h"
 #include "compile.h"
@@ -48,10 +49,6 @@ void ObjectFile::find_depends()
        deps_ready=new_deps.empty();
 }
 
-Action *ObjectFile::build()
-{
-       return Target::build(new Compile(builder, *this));
-}
 
 /**
 Recursively looks for header targets and adds them as dependencies.
@@ -91,6 +88,11 @@ void ObjectFile::add_depend(Target *tgt)
        new_deps.push_back(tgt);
 }
 
+Action *ObjectFile::create_action()
+{
+       return new Compile(builder, *this);
+}
+
 string ObjectFile::generate_target_name(const Component &comp, const string &src)
 {
        const SourcePackage &pkg=comp.get_package();