Initialize the build context. This function should be called early in PrepareBuilding. Args: root_directory: RT-Thread root directory Returns: BuildContext instance
(root_directory: str)
| 19 | |
| 20 | |
| 21 | def init_build_context(root_directory: str) -> BuildContext: |
| 22 | """ |
| 23 | Initialize the build context. |
| 24 | |
| 25 | This function should be called early in PrepareBuilding. |
| 26 | |
| 27 | Args: |
| 28 | root_directory: RT-Thread root directory |
| 29 | |
| 30 | Returns: |
| 31 | BuildContext instance |
| 32 | """ |
| 33 | global _context |
| 34 | _context = BuildContext(root_directory) |
| 35 | return _context |
| 36 | |
| 37 | |
| 38 | def get_build_context() -> Optional[BuildContext]: |
no test coverage detected