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/install/init.cxx | 4 ++-- build2/install/operation.cxx | 4 ++-- build2/install/operation.hxx | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) (limited to 'build2/install') diff --git a/build2/install/init.cxx b/build2/install/init.cxx index b5fd007..3e4e1ff 100644 --- a/build2/install/init.cxx +++ b/build2/install/init.cxx @@ -142,8 +142,8 @@ namespace build2 // Register the install and uninstall operations. // - r.operations.insert (install_id, install); - r.operations.insert (uninstall_id, uninstall); + r.operations.insert (install_id, op_install); + r.operations.insert (uninstall_id, op_uninstall); } static const path cmd ("install"); diff --git a/build2/install/operation.cxx b/build2/install/operation.cxx index 5405c63..5279b3d 100644 --- a/build2/install/operation.cxx +++ b/build2/install/operation.cxx @@ -28,7 +28,7 @@ namespace build2 // those things get racy. Also, since all we do here is creating/removing // files, there is not going to be much speedup from doing it in parallel. - const operation_info install { + const operation_info op_install { install_id, "install", "install", @@ -50,7 +50,7 @@ namespace build2 // link.exe only creates a DLL's import library if there are any exported // symbols). // - const operation_info uninstall { + const operation_info op_uninstall { uninstall_id, "uninstall", "uninstall", diff --git a/build2/install/operation.hxx b/build2/install/operation.hxx index 1529621..0d96faf 100644 --- a/build2/install/operation.hxx +++ b/build2/install/operation.hxx @@ -14,8 +14,8 @@ namespace build2 { namespace install { - extern const operation_info install; - extern const operation_info uninstall; + extern const operation_info op_install; + extern const operation_info op_uninstall; } } -- cgit v1.1