From 0342dc2fcdd78ef28a4e59d84193a3807068d726 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 11 Apr 2016 07:57:19 +0200 Subject: New configuration logic, iteration 1 --- build2/test/module | 4 ++-- build2/test/module.cxx | 16 ++++++++-------- build2/test/operation.cxx | 1 + build2/test/rule.cxx | 5 ++--- 4 files changed, 13 insertions(+), 13 deletions(-) (limited to 'build2/test') diff --git a/build2/test/module b/build2/test/module index 8736851..756b4f6 100644 --- a/build2/test/module +++ b/build2/test/module @@ -15,11 +15,11 @@ namespace build2 namespace test { extern "C" void - test_boot (scope&, const location&, unique_ptr&); + test_boot (scope&, const location&, unique_ptr&); extern "C" bool test_init ( - scope&, scope&, const location&, unique_ptr&, bool, bool); + scope&, scope&, const location&, unique_ptr&, bool, bool); } } diff --git a/build2/test/module.cxx b/build2/test/module.cxx index d5f6430..3ae9996 100644 --- a/build2/test/module.cxx +++ b/build2/test/module.cxx @@ -22,7 +22,7 @@ namespace build2 static rule rule_; extern "C" void - test_boot (scope& root, const location&, unique_ptr&) + test_boot (scope& root, const location&, unique_ptr&) { tracer trace ("test::boot"); @@ -38,12 +38,12 @@ namespace build2 { auto& v (var_pool); - // @@ OVR - - v.insert ("test"); - v.insert ("test.input"); - v.insert ("test.output"); - v.insert ("test.roundtrip"); + // Note: none are overridable. + // + v.insert ("test"); + v.insert ("test.input"); + v.insert ("test.output"); + v.insert ("test.roundtrip"); v.insert ("test.options"); v.insert ("test.arguments"); } @@ -53,7 +53,7 @@ namespace build2 test_init (scope& root, scope&, const location& l, - unique_ptr&, + unique_ptr&, bool first, bool) { diff --git a/build2/test/operation.cxx b/build2/test/operation.cxx index dc213cf..a63c409 100644 --- a/build2/test/operation.cxx +++ b/build2/test/operation.cxx @@ -20,6 +20,7 @@ namespace build2 } operation_info test { + test_id, "test", "test", "testing", diff --git a/build2/test/rule.cxx b/build2/test/rule.cxx index 75bae4a..ccf52e0 100644 --- a/build2/test/rule.cxx +++ b/build2/test/rule.cxx @@ -96,7 +96,6 @@ namespace build2 // We should have either arguments or input/roundtrip. Again, use // lookup depth to figure out who takes precedence. // - //@@ OVR auto ip (t.find ("test.input")); auto op (t.find ("test.output")); auto rp (t.find ("test.roundtrip")); @@ -307,7 +306,7 @@ namespace build2 // Do we have options? // - if (auto l = t["test.options"]) //@@ OVR + if (auto l = t["test.options"]) append_options (args, cast (l)); // Do we have input? @@ -323,7 +322,7 @@ namespace build2 // else { - if (auto l = t["test.arguments"]) //@@ OVR + if (auto l = t["test.arguments"]) append_options (args, cast (l)); } -- cgit v1.1