]> git.tdb.fi Git - builder.git/blobdiff - source/component.cpp
Add gmpxx package
[builder.git] / source / component.cpp
index 1274a75c12d283ebbe234adabffcafd35b846de1..1fd6b24bfc89676324cd80eb7fe3469c6263b86a 100644 (file)
@@ -12,7 +12,7 @@ Component::Component(Package &p, Type t, const string &n):
 
 void Component::create_build_info()
 {
-       build_info=pkg.get_build_info();
+       build_info.add(pkg.get_build_info());
        build_info.unique();
 }
 
@@ -22,9 +22,15 @@ Component::Loader::Loader(Component &c):
        add("source",          &Loader::source);
        add("install",         &Component::install);
        add("install_headers", &Component::install_headers);
+       add("cflag",           &Loader::cflag);
 }
 
 void Component::Loader::source(const string &s)
 {
        comp.sources.push_back(comp.pkg.get_source()/s);
 }
+
+void Component::Loader::cflag(const string &f)
+{
+       comp.build_info.cflags.push_back(f);
+}