4 #include "filetarget.h"
9 Object files are compiled from source files.
11 class ObjectFile: public FileTarget
17 ObjectFile(Builder &, const Component &, SourceFile &);
19 static Msp::FS::Path generate_target_path(const Component &, const std::string &);
22 virtual const char *get_type() const { return "ObjectFile"; }
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(FileTarget *);