MCPcopy Index your code
hub / github.com/nodejs/node / ExecPackageIosFramework

Method ExecPackageIosFramework

tools/gyp/pylib/gyp/mac_tool.py:285–301  ·  view source on GitHub ↗
(self, framework)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 6

openFunction · 0.50
splitMethod · 0.45
joinMethod · 0.45
existsMethod · 0.45
mkdirMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected