X-Git-Url: http://git.tdb.fi/?p=builder.git;a=blobdiff_plain;f=source%2Fsourcepackage.cpp;h=bb9999476d0041f3529aacc44b7a3a60b3d8b960;hp=9e1b68dd43d60b4b81d61f2c65051412d7286fa6;hb=ae1ab287b544cc19d185024fa64e475a957313e4;hpb=74ea8208bb1aa1d9afc9657a4cdfac6714241887 diff --git a/source/sourcepackage.cpp b/source/sourcepackage.cpp index 9e1b68d..bb99994 100644 --- a/source/sourcepackage.cpp +++ b/source/sourcepackage.cpp @@ -107,10 +107,17 @@ void SourcePackage::do_prepare() { string ident = "WITH_"+toupper(i->name); string value = config.get_option("with_"+i->name).value; - if(!i->choices.empty()) - build_info.defines[ident] = value; - else if(lexical_cast(value)) - build_info.defines[ident] = "1"; + + if(i->choices.empty()) + { + if(!lexical_cast(value)) + continue; + value = "1"; + } + + build_info.defines[ident] = value; + if(i->exported) + export_binfo.defines[ident] = value; } for(ComponentList::iterator i=components.begin(); i!=components.end(); ++i)