aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/functions-process-path.cxx
diff options
context:
space:
mode:
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;
+ }
}
}