]> 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 fdc0a6d02d572d945dbeb376e6f4a2d63dd217fc..4bdff213abcaf45a404d62444c7fe19b2b343479 100644 (file)
@@ -10,7 +10,8 @@ Component::Component(Package &p, Type t, const string &n):
        name(n),
        install(false),
        module_host(0),
-       modular(false)
+       modular(false),
+       deflt(true)
 { }
 
 /**
@@ -62,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)