X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fstaticlibrary.cpp;h=853d1b45c4916557321703b9a58d9862644b309f;hb=3043044d8ef02ef77def454fdede87927f5aa1f8;hp=9ee4a9a79771326c019206bc402645e32aa0b2b8;hpb=8575b50479945c3ad6ab0e4ea7eb116da5b5f04d;p=builder.git diff --git a/source/staticlibrary.cpp b/source/staticlibrary.cpp index 9ee4a9a..853d1b4 100644 --- a/source/staticlibrary.cpp +++ b/source/staticlibrary.cpp @@ -15,8 +15,8 @@ StaticLibrary::StaticLibrary(Builder &b, const Component &c, const list::const_iterator i=objs.begin(); i!=objs.end(); ++i) - add_dependency(**i); + for(ObjectFile *o: objs) + add_dependency(*o); install_location = "lib"; nested_build_sig = true; @@ -26,5 +26,21 @@ StaticLibrary::StaticLibrary(Builder &b, const Component &c, const list(comp.get_name()); +} + +void StaticLibrary::add_required_library(const string &lib) +{ + build_info.libs.push_back(lib); +} + +void StaticLibrary::add_library_path(const FS::Path &pth) +{ + build_info.libpath.push_back(pth); +} + +void StaticLibrary::collect_build_info(BuildInfo &binfo) const +{ + Target::collect_build_info(binfo); + binfo.update_from(build_info); }