MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / DefineGroup

Function DefineGroup

tools/ng/building_ng.py:56–69  ·  view source on GitHub ↗

Enhanced DefineGroup that uses the new OOP implementation. This maintains backward compatibility while using the new system internally.

(name, src, depend, **parameters)

Source from the content-addressed store, hash-verified

54_original_DefineGroup = DefineGroup
55
56def DefineGroup(name, src, depend, **parameters):
57 """
58 Enhanced DefineGroup that uses the new OOP implementation.
59
60 This maintains backward compatibility while using the new system internally.
61 """
62 # Get environment from global Env
63 global Env
64 if Env and hasattr(Env, 'DefineGroup'):
65 # Use new method if available
66 return Env.DefineGroup(name, src, depend, **parameters)
67 else:
68 # Fallback to original
69 return _original_DefineGroup(name, src, depend, **parameters)
70
71
72# Override GetDepend to use new implementation

Callers

nothing calls this directly

Calls 1

DefineGroupMethod · 0.80

Tested by

no test coverage detected