X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fobjectfile.cpp;h=0536755bb26788354d5e147e021f38fe64d0af36;hb=bc85cc286c8a3f1055f1979a7ff8697cf1b61912;hp=27883bb41245cf5ef66dac8cf2b6bcef1aa69113;hpb=c9a64955c551ad341f07505262d0e6ff9fb93a2c;p=builder.git diff --git a/source/objectfile.cpp b/source/objectfile.cpp index 27883bb..0536755 100644 --- a/source/objectfile.cpp +++ b/source/objectfile.cpp @@ -11,7 +11,8 @@ using namespace Msp; ObjectFile::ObjectFile(Builder &b, const Component &c, SourceFile &s): FileTarget(b, c.get_package(), generate_target_path(c, s.get_path())), - source(s) + source(s), + used_in_shlib(false) { component = &c; add_dependency(source); @@ -37,6 +38,17 @@ FS::Path ObjectFile::generate_target_path(const Component &comp, const FS::Path return temp_dir/(FS::basepart(fn)+".o"); } +void ObjectFile::set_used_in_shared_library(bool u) +{ + used_in_shlib = u; +} + +void ObjectFile::collect_build_info(BuildInfo &binfo) const +{ + Target::collect_build_info(binfo); + binfo.update_from(component->get_build_info_for_path(source.get_path())); +} + void ObjectFile::find_dependencies() { for(Dependencies::iterator i=depends.begin(); i!=depends.end(); ++i)