MCPcopy Create free account
hub / github.com/boostorg/build / RCAction

Class RCAction

v2/tools/rc.py:72–82  ·  view source on GitHub ↗

Class representing bjam action defined from Python. The function must register the action to execute.

Source from the content-addressed store, hash-verified

70engine = get_manager().engine()
71
72class RCAction:
73 """Class representing bjam action defined from Python.
74 The function must register the action to execute."""
75
76 def __init__(self, action_name, function):
77 self.action_name = action_name
78 self.function = function
79
80 def __call__(self, targets, sources, property_set):
81 if self.function:
82 self.function(targets, sources, property_set)
83
84# FIXME: What is the proper way to dispatch actions?
85def rc_register_action(action_name, function = None):

Callers 1

rc_register_actionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected