if(!static_binfo.libs.empty())
{
+ BuildInfo::PathList combined_libpath = static_binfo.libpath;
+ combined_libpath.insert(combined_libpath.end(), export_binfo.libpath.begin(), export_binfo.libpath.end());
+
for(BuildInfo::WordList::const_iterator i=export_binfo.libs.begin(); i!=export_binfo.libs.end(); ++i)
if(Target *lib = builder.get_vfs().find_library(*i, export_binfo.libpath, BuildInfo::FORCE_STATIC, system))
if(StaticLibrary *stlib = dynamic_cast<StaticLibrary *>(lib))
{
for(BuildInfo::WordList::const_iterator j=static_binfo.libs.begin(); j!=static_binfo.libs.end(); ++j)
stlib->add_required_library(*j);
+ for(BuildInfo::PathList::const_iterator j=combined_libpath.begin(); j!=combined_libpath.end(); ++j)
+ stlib->add_library_path(*j);
}
}
}
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);
virtual const char *get_type() const { return "StaticLibrary"; }
void add_required_library(const std::string &);
+ void add_library_path(const Msp::FS::Path &);
virtual void collect_build_info(BuildInfo &) const;
};