]> git.tdb.fi Git - builder.git/blobdiff - source/component.cpp
Add an option to component to specify whether or not it should be built by default
[builder.git] / source / component.cpp
index 27a4c53c08805db4e23e2bdbbb186ba9c6ca018d..4bdff213abcaf45a404d62444c7fe19b2b343479 100644 (file)
@@ -1,18 +1,17 @@
-#include <msp/error.h>
+#include <msp/core/error.h>
 #include "component.h"
 #include "package.h"
 
 using namespace std;
 
-#include <iostream>
-
 Component::Component(Package &p, Type t, const string &n):
        pkg(p),
        type(t),
        name(n),
        install(false),
        module_host(0),
-       modular(false)
+       modular(false),
+       deflt(true)
 { }
 
 /**
@@ -64,6 +63,7 @@ Component::Loader::Loader(Component &c):
        add("require",         &Loader::require);
        add("modular",         &Loader::modular);
        add("host",            &Loader::host);
+       add("default",         &Component::deflt);
 }
 
 void Component::Loader::source(const string &s)