4 #include "filetarget.h"
10 Object files are compiled from source files.
12 class ObjectFile: public FileTarget
15 const Component ∁
20 ObjectFile(Builder &, const Component &, SourceFile &);
21 virtual const char *get_type() const { return "ObjectFile"; }
22 const Component &get_component() const { return comp; }
23 SourceFile &get_source() const { return source; }
25 /** Processes as many new dependences as possible. Some may be created on
26 the fly and can't be processed until their own dependencies are ready. In
27 such cases this function needs to be called again. */
28 virtual void find_depends();
31 /** Recursively looks for header targets and adds them as dependencies. */
32 void find_depends(Target *);
34 /** Adds a target to the dependency list as well as the new dependencies
36 void add_depend(Target *);
37 virtual Action *create_action();
39 static Msp::FS::Path generate_target_path(const Component &, const std::string &);