X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fsourcepackage.cpp;h=77440d6057112bf013a41c1b221ff7b924a6372c;hb=a0868300fc26496b5a7551d1b732925c11350fdd;hp=e74c0b7540c409fd07e0ed3048dd7ee167da3be4;hpb=5b7f561504df231c23ecd9b6f3b3847cfe0cbd1f;p=builder.git diff --git a/source/sourcepackage.cpp b/source/sourcepackage.cpp index e74c0b7..77440d6 100644 --- a/source/sourcepackage.cpp +++ b/source/sourcepackage.cpp @@ -68,7 +68,7 @@ FS::Path SourcePackage::get_out_dir() const return source_dir/arch.get_name(); } -void SourcePackage::create_build_info() +void SourcePackage::do_prepare() { BuildInfo final_build_info; @@ -103,10 +103,7 @@ void SourcePackage::create_build_info() export_binfo.incpath.push_back((builder.get_prefix()/"include").str()); export_binfo.libpath.push_back((builder.get_prefix()/"lib").str()); } -} -void SourcePackage::create_targets() -{ cache.load(); bool pc_needed = false; @@ -151,7 +148,6 @@ void SourcePackage::Loader::init(const Config::InputOptions *o) add("build_info", &Loader::build_info); add("feature", &Loader::feature); add("if", &Loader::condition); - add("if_arch", &Loader::if_arch); add("if_feat", &Loader::if_feature); add("program", &Loader::component); add("library", &Loader::component); @@ -232,16 +228,6 @@ void SourcePackage::Loader::headers(const string &n) install_map[*i] = "include/"+comp.get_name(); } -void SourcePackage::Loader::if_arch(const string &cond) -{ - const Architecture &arch = obj.builder.get_current_arch(); - bool negate = (cond[0]=='!'); - bool match = (arch.match_name(cond.substr(negate))!=negate); - obj.builder.get_logger().log("configure", format("%s: arch %s %smatched", obj.name, cond, (match ? "" : "not "))); - if(match) - load_sub_with(*this); -} - void SourcePackage::Loader::if_feature(const string &cond) { bool match = false;