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