MCPcopy Create free account
hub / github.com/nodejs/node / _HasIOSTarget

Function _HasIOSTarget

tools/gyp/pylib/gyp/xcode_emulation.py:1905–1912  ·  view source on GitHub ↗

Returns true if any target contains the iOS specific key IPHONEOS_DEPLOYMENT_TARGET.

(targets)

Source from the content-addressed store, hash-verified

1903
1904
1905def _HasIOSTarget(targets):
1906 """Returns true if any target contains the iOS specific key
1907 IPHONEOS_DEPLOYMENT_TARGET."""
1908 for target_dict in targets.values():
1909 for config in target_dict["configurations"].values():
1910 if config.get("xcode_settings", {}).get("IPHONEOS_DEPLOYMENT_TARGET"):
1911 return True
1912 return False
1913
1914
1915def _AddIOSDeviceConfigurations(targets):

Calls 2

getMethod · 0.65
valuesMethod · 0.45

Tested by

no test coverage detected