4 #include "filetarget.h"
5 #include "libbuilder_api.h"
10 Object files are compiled from source files.
12 class LIBBUILDER_API ObjectFile: public FileTarget
16 bool used_in_shlib = false;
19 ObjectFile(Builder &, const Component &, SourceFile &);
21 static Msp::FS::Path generate_target_path(const Component &, const Msp::FS::Path &);
24 const char *get_type() const override { return "ObjectFile"; }
25 SourceFile &get_source() const { return source; }
27 void set_used_in_shared_library(bool);
28 bool is_used_in_shared_library() const { return used_in_shlib; }
30 void collect_build_info(BuildInfo &) const override;
33 void find_dependencies() override;
35 void find_dependencies(FileTarget &, std::vector<FileTarget *> &);