Enhanced PrepareBuilding that integrates the new OOP system. This function wraps the original PrepareBuilding and adds OOP functionality.
(env, root_directory, has_libcpu=False, remove_components=[])
| 27 | _original_PrepareBuilding = PrepareBuilding |
| 28 | |
| 29 | def PrepareBuilding(env, root_directory, has_libcpu=False, remove_components=[]): |
| 30 | """ |
| 31 | Enhanced PrepareBuilding that integrates the new OOP system. |
| 32 | |
| 33 | This function wraps the original PrepareBuilding and adds OOP functionality. |
| 34 | """ |
| 35 | # Initialize new build context |
| 36 | context = init_build_context(root_directory) |
| 37 | |
| 38 | # Call original PrepareBuilding |
| 39 | result = _original_PrepareBuilding(env, root_directory, has_libcpu, remove_components) |
| 40 | |
| 41 | # Inject new methods into environment |
| 42 | inject_environment_methods(env) |
| 43 | |
| 44 | # Load configuration into new system |
| 45 | ng_load_rtconfig('rtconfig.h') |
| 46 | |
| 47 | # Store context in environment for access |
| 48 | env['_BuildContext'] = context |
| 49 | |
| 50 | return result |
| 51 | |
| 52 | |
| 53 | # Override DefineGroup to use new implementation |
nothing calls this directly
no test coverage detected