#include "buildinfo.h"
#include "conditionalloader.h"
#include "installmap.h"
+#include "libbuilder_api.h"
#include "package.h"
class SourcePackage;
dependencies and build info from the package they belong to, and may also add
their own.
*/
-class Component
+class LIBBUILDER_API Component
{
public:
- class Loader: public Msp::DataFile::ObjectLoader<Component>, public ConditionalLoader
+ class LIBBUILDER_API Loader: public Msp::DataFile::ObjectLoader<Component>, public ConditionalLoader
{
public:
Loader(Component &);
Package::Requirements requires;
bool deflt = true;
InstallMap install_map;
+ bool broken = false;
std::vector<std::string> problems;
Component(SourcePackage &p, const std::string &n): package(p), name(n) { }
const InstallMap &get_install_map() const { return install_map; }
const Package::Requirements &get_required_packages() const { return requires; }
bool is_default() const { return deflt; }
+ bool is_broken() const { return broken; }
const std::vector<std::string> &get_problems() const { return problems; }
/** Prepares any required packages. */