]> git.tdb.fi Git - builder.git/blob - source/component.cpp
Initialize Component::install to false
[builder.git] / source / component.cpp
1 #include "component.h"
2 #include "package.h"
3
4 using namespace std;
5
6 Component::Component(Package &p, Type t, const string &n):
7         pkg(p),
8         type(t),
9         name(n),
10         install(false)
11 { }
12
13 void Component::create_build_info()
14 {
15         build_info=pkg.get_build_info();
16         build_info.unique();
17 }
18
19 Component::Loader::Loader(Component &c):
20         comp(c)
21 {
22         add("source",          &Loader::source);
23         add("install",         &Component::install);
24         add("install_headers", &Component::install_headers);
25 }
26
27 void Component::Loader::source(const string &s)
28 {
29         comp.sources.push_back(comp.pkg.get_source()/s);
30 }