]> git.tdb.fi Git - builder.git/blobdiff - source/component.cpp
Support custom build info
[builder.git] / source / component.cpp
index 1fd6b24bfc89676324cd80eb7fe3469c6263b86a..e0630e6cf8a69547ecb27f6c845f5daa6857f041 100644 (file)
@@ -22,7 +22,7 @@ Component::Loader::Loader(Component &c):
        add("source",          &Loader::source);
        add("install",         &Component::install);
        add("install_headers", &Component::install_headers);
-       add("cflag",           &Loader::cflag);
+       add("build_info",      &Loader::build_info);
 }
 
 void Component::Loader::source(const string &s)
@@ -30,7 +30,7 @@ void Component::Loader::source(const string &s)
        comp.sources.push_back(comp.pkg.get_source()/s);
 }
 
-void Component::Loader::cflag(const string &f)
+void Component::Loader::build_info()
 {
-       comp.build_info.cflags.push_back(f);
+       load_sub(comp.build_info);
 }