add("default", &Component::deflt);
}
-void Component::Loader::finish()
-{
- if(!inst_hdr.empty())
- {
- Component hdrcomp(comp.pkg, HEADERS, inst_hdr);
- hdrcomp.sources = comp.sources;
- hdrcomp.install = true;
- const_cast<ComponentList &>(comp.pkg.get_components()).push_back(hdrcomp);
- }
-}
-
void Component::Loader::source(const string &s)
{
comp.sources.push_back(s);
{
private:
Component ∁
- std::string inst_hdr;
public:
Loader(Component &);
Component &get_object() { return comp; }
private:
- virtual void finish();
void source(const std::string &);
void require(const std::string &);
void build_info();