diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2020-06-02 07:35:44 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2020-06-02 07:35:44 +0200 |
commit | a3ed04f37c47e2eaa83d87dda2ec4ab060a7a2d0 (patch) | |
tree | 1ca68321bc7203cfef635dab6820f35435279ee0 /libbuild2/functions-process-path.cxx | |
parent | dcbd81ad1c303dd2b9ef54e8e7e485bb17c6de49 (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.cxx | 23 |
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; + } } } |