From f11d720f2fb62b46ad17d3aa3850140a4839f114 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 13 Dec 2017 14:20:54 +0200 Subject: Implement info meta operation This meta operation can be used to print basic information (name, version, source/output roots, etc) for one or more projects. --- build2/test/init.cxx | 2 +- build2/test/operation.cxx | 2 +- build2/test/operation.hxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'build2/test') diff --git a/build2/test/init.cxx b/build2/test/init.cxx index 93ca1e4..1c7a2b4 100644 --- a/build2/test/init.cxx +++ b/build2/test/init.cxx @@ -31,7 +31,7 @@ namespace build2 // Register the test operation. // - rs.operations.insert (test_id, test); + rs.operations.insert (test_id, op_test); // Enter module variables. Do it during boot in case they get assigned // in bootstrap.build. diff --git a/build2/test/operation.cxx b/build2/test/operation.cxx index 46b9366..e4591e4 100644 --- a/build2/test/operation.cxx +++ b/build2/test/operation.cxx @@ -22,7 +22,7 @@ namespace build2 return mo != disfigure_id ? update_id : 0; } - const operation_info test { + const operation_info op_test { test_id, "test", "test", diff --git a/build2/test/operation.hxx b/build2/test/operation.hxx index d834edf..774e8d0 100644 --- a/build2/test/operation.hxx +++ b/build2/test/operation.hxx @@ -14,7 +14,7 @@ namespace build2 { namespace test { - extern const operation_info test; + extern const operation_info op_test; } } -- cgit v1.1