* Generates the imported module by creating necessary files and configurations in the specified output directory. * * @param module The imported module data that needs to be processed and generated. * @return A promise that resolves when the module generation process is completed.
(module: W2CExternModule)
| 218 | * @return A promise that resolves when the module generation process is completed. |
| 219 | */ |
| 220 | async generateImportedModule(module: W2CExternModule) { |
| 221 | const generator = this.hostModuleOutput; |
| 222 | await generator.writeAllTo({ |
| 223 | [`${module.name}-imports.h`]: templates.buildImportBridgeHeader(module), |
| 224 | [`${module.name}-imports.cpp`]: templates.buildImportBridgeSource(module), |
| 225 | }); |
| 226 | } |
| 227 | |
| 228 | /** |
| 229 | * Returns the output generator for the host module. |