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

Function MergeGlobalXcodeSettingsToSpec

tools/gyp/pylib/gyp/xcode_emulation.py:1577–1590  ·  view source on GitHub ↗

Merges the global xcode_settings dictionary into each configuration of the target represented by spec. For keys that are both in the global and the local xcode_settings dict, the local key gets precedence.

(global_dict, spec)

Source from the content-addressed store, hash-verified

1575
1576
1577def MergeGlobalXcodeSettingsToSpec(global_dict, spec):
1578 """Merges the global xcode_settings dictionary into each configuration of the
1579 target represented by spec. For keys that are both in the global and the local
1580 xcode_settings dict, the local key gets precedence.
1581 """
1582 # The xcode generator special-cases global xcode_settings and does something
1583 # that amounts to merging in the global xcode_settings into each local
1584 # xcode_settings dict.
1585 global_xcode_settings = global_dict.get("xcode_settings", {})
1586 for config in spec["configurations"].values():
1587 if "xcode_settings" in config:
1588 new_settings = global_xcode_settings.copy()
1589 new_settings.update(config["xcode_settings"])
1590 config["xcode_settings"] = new_settings
1591
1592
1593def IsMacBundle(flavor, spec):

Callers

nothing calls this directly

Calls 4

getMethod · 0.65
copyMethod · 0.65
updateMethod · 0.65
valuesMethod · 0.45

Tested by

no test coverage detected