#include "misc.h"
#include "packageref.h"
-class Package;
+class SourcePackage;
/**
Components specify things to be built. Each component may build one binary (it
HEADERS
};
- Component(Package &, Type, const std::string &);
- const Package &get_package() const { return pkg; }
+ 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; }
const PathList &get_sources() const { return sources; }
void create_build_info();
void create_targets() const;
protected:
- Package &pkg;
+ SourcePackage &pkg;
Type type;
std::string name;
PathList sources;