X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcomponent.cpp;h=1fd6b24bfc89676324cd80eb7fe3469c6263b86a;hb=b1a6e6dcdd7e0da272ab0ebbed4e295f83f1165a;hp=1274a75c12d283ebbe234adabffcafd35b846de1;hpb=e36dac301c41799d374b6d537129b2be63f05fb2;p=builder.git diff --git a/source/component.cpp b/source/component.cpp index 1274a75..1fd6b24 100644 --- a/source/component.cpp +++ b/source/component.cpp @@ -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); +}