aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/functions-process-path.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-06-02 07:35:44 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-06-02 07:35:44 +0200
commita3ed04f37c47e2eaa83d87dda2ec4ab060a7a2d0 (patch)
tree1ca68321bc7203cfef635dab6820f35435279ee0 /libbuild2/functions-process-path.cxx
parentdcbd81ad1c303dd2b9ef54e8e7e485bb17c6de49 (diff)
Add process_path_ex with program stable name and checksum
Diffstat (limited to 'libbuild2/functions-process-path.cxx')
-rw-r--r--libbuild2/functions-process-path.cxx23
1 files changed, 16 insertions, 7 deletions
diff --git a/libbuild2/functions-process-path.cxx b/libbuild2/functions-process-path.cxx
index 15bec81..86d4445 100644
--- a/libbuild2/functions-process-path.cxx
+++ b/libbuild2/functions-process-path.cxx
@@ -11,14 +11,23 @@ namespace build2
void
process_path_functions (function_map& m)
{
- function_family f (m, "process_path");
+ {
+ function_family f (m, "process_path");
+
+ // As discussed in value_traits<process_path>, we always have recall.
+ //
+ f["recall"] = &process_path::recall;
+ f["effect"] = [](process_path p)
+ {
+ return move (p.effect.empty () ? p.recall : p.effect);
+ };
+ }
- // As discussed in value_traits<process_path>, we always have recall.
- //
- f["recall"] = &process_path::recall;
- f["effect"] = [](process_path p)
{
- return move (p.effect.empty () ? p.recall : p.effect);
- };
+ function_family f (m, "process_path_ex");
+
+ f["name"] = &process_path_ex::name;
+ f["checksum"] = &process_path_ex::checksum;
+ }
}
}