Inject RT-Thread methods into SCons Environment. Args: env: SCons Environment object
(env)
| 23 | |
| 24 | @staticmethod |
| 25 | def inject_methods(env): |
| 26 | """ |
| 27 | Inject RT-Thread methods into SCons Environment. |
| 28 | |
| 29 | Args: |
| 30 | env: SCons Environment object |
| 31 | """ |
| 32 | # Core build methods |
| 33 | env.AddMethod(RTEnv.DefineGroup, 'DefineGroup') |
| 34 | env.AddMethod(RTEnv.GetDepend, 'GetDepend') |
| 35 | env.AddMethod(RTEnv.SrcRemove, 'SrcRemove') |
| 36 | env.AddMethod(RTEnv.GetCurrentDir, 'GetCurrentDir') |
| 37 | env.AddMethod(RTEnv.BuildPackage, 'BuildPackage') |
| 38 | |
| 39 | # Utility methods |
| 40 | env.AddMethod(RTEnv.Glob, 'GlobFiles') |
| 41 | env.AddMethod(RTEnv.GetBuildOptions, 'GetBuildOptions') |
| 42 | env.AddMethod(RTEnv.GetContext, 'GetContext') |
| 43 | |
| 44 | # Path utilities |
| 45 | env.AddMethod(RTEnv.GetRTTRoot, 'GetRTTRoot') |
| 46 | env.AddMethod(RTEnv.GetBSPRoot, 'GetBSPRoot') |
| 47 | |
| 48 | @staticmethod |
| 49 | def DefineGroup(env, name: str, src: List[str], depend: Any = None, **kwargs) -> List: |
no outgoing calls
no test coverage detected