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)
| 1575 | |
| 1576 | |
| 1577 | def 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 | |
| 1593 | def IsMacBundle(flavor, spec): |