use_pkgconfig = false;
}
-void BinaryPackage::create_build_info()
+void BinaryPackage::do_prepare()
{
for(BuildInfo::PathList::iterator i=export_binfo.incpath.begin(); i!=export_binfo.incpath.end(); ++i)
if((*i)[0]=="@")
static BinaryPackage *from_flags(Builder &, const std::string &, const std::vector<std::string> &);
private:
- virtual void create_build_info();
+ virtual void do_prepare();
};
#endif
for(PackageList::const_iterator i=requires.begin(); i!=requires.end(); ++i)
(*i)->prepare();
- create_build_info();
- create_targets();
+ do_prepare();
prepared = true;
}
packages, populates build info and creates targets. */
void prepare();
- bool is_prepared() const { return prepared; }
protected:
- virtual void create_build_info() { }
-
- virtual void create_targets() { }
+ virtual void do_prepare() { }
public:
+ bool is_prepared() const { return prepared; }
+
virtual void save_caches() { }
};
return source_dir/arch.get_name();
}
-void SourcePackage::create_build_info()
+void SourcePackage::do_prepare()
{
BuildInfo final_build_info;
export_binfo.incpath.push_back((builder.get_prefix()/"include").str());
export_binfo.libpath.push_back((builder.get_prefix()/"lib").str());
}
-}
-void SourcePackage::create_targets()
-{
cache.load();
bool pc_needed = false;
Cache &get_cache() const { return cache; }
private:
- virtual void create_build_info();
-
- virtual void create_targets();
+ virtual void do_prepare();
virtual void save_caches();
};