attempted. */
bool prepare_build();
- /** Supervises the build process, starting new actions when slots become
+ /** Supervises the build process, starting new tasks when slots become
available. */
int do_build();
public:
Component(SourcePackage &, Type, const std::string &);
+
const SourcePackage &get_package() const { return pkg; }
Type get_type() const { return type; }
const std::string &get_name() const { return name; }
void Config::load()
{
FS::Path fn = package.get_source()/".config";
-
FS::Stat stat = FS::stat(fn);
if(stat)
{
PackageManager(Builder &);
~PackageManager();
+ /** Prevent creation of source packages. */
void set_no_externals(bool);
/** Adds a package to the manager. Called from Package constructor. */
public:
SourcePackage(Builder &, const std::string &, const Msp::FS::Path &);
+
const std::string &get_version() const { return version; }
const std::string &get_description() const { return description; }
const Msp::FS::Path &get_source() const { return source; }
DependencyCache &get_deps_cache() const { return deps_cache; }
private:
- /** Fills in build info based on configuration. All required packages must be
- configured when this is called. */
virtual void create_build_info();
virtual void create_targets();
{
public:
VirtualTarget(Builder &, const std::string &);
+
virtual const char *get_type() const { return "VirtualTarget"; }
private:
virtual void check_rebuild();