| 283 | return libtoolout.returncode |
| 284 | |
| 285 | def ExecPackageIosFramework(self, framework): |
| 286 | # Find the name of the binary based on the part before the ".framework". |
| 287 | binary = os.path.basename(framework).split(".")[0] |
| 288 | module_path = os.path.join(framework, "Modules") |
| 289 | if not os.path.exists(module_path): |
| 290 | os.mkdir(module_path) |
| 291 | module_template = ( |
| 292 | "framework module %s {\n" |
| 293 | ' umbrella header "%s.h"\n' |
| 294 | "\n" |
| 295 | " export *\n" |
| 296 | " module * { export * }\n" |
| 297 | "}\n" % (binary, binary) |
| 298 | ) |
| 299 | |
| 300 | with open(os.path.join(module_path, "module.modulemap"), "w") as module_file: |
| 301 | module_file.write(module_template) |
| 302 | |
| 303 | def ExecPackageFramework(self, framework, version): |
| 304 | """Takes a path to Something.framework and the Current version of that and |