aboutsummaryrefslogtreecommitdiff
path: root/build2/operation.hxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-12-13 14:20:54 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-12-13 14:22:07 +0200
commitf11d720f2fb62b46ad17d3aa3850140a4839f114 (patch)
tree7b077efc16b0362283e1857cf974090ee4ce8f26 /build2/operation.hxx
parent08688bfc12a42a0399bcbdd6fe7d30d8f2486775 (diff)
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.
Diffstat (limited to 'build2/operation.hxx')
-rw-r--r--build2/operation.hxx12
1 files changed, 7 insertions, 5 deletions
diff --git a/build2/operation.hxx b/build2/operation.hxx
index 24340dd..abd85c0 100644
--- a/build2/operation.hxx
+++ b/build2/operation.hxx
@@ -111,6 +111,7 @@ namespace build2
const meta_operation_id disfigure_id = 4;
const meta_operation_id create_id = 5;
const meta_operation_id dist_id = 6;
+ const meta_operation_id info_id = 7;
// The default operation is a special marker that can be used to indicate
// that no operation was explicitly specified by the user. If adding
@@ -279,8 +280,9 @@ namespace build2
void
execute (const values&, action, const action_targets&, bool quiet);
- extern const meta_operation_info noop;
- extern const meta_operation_info perform;
+ extern const meta_operation_info mo_noop;
+ extern const meta_operation_info mo_perform;
+ extern const meta_operation_info mo_info;
// Operation info.
//
@@ -323,9 +325,9 @@ namespace build2
// Built-in operations.
//
- extern const operation_info default_;
- extern const operation_info update;
- extern const operation_info clean;
+ extern const operation_info op_default;
+ extern const operation_info op_update;
+ extern const operation_info op_clean;
// Global meta/operation tables. Each registered meta/operation
// is assigned an id which is used as an index in the per-project