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

Function _AddIOSDeviceConfigurations

tools/gyp/pylib/gyp/xcode_emulation.py:1915–1928  ·  view source on GitHub ↗

Clone all targets and append -iphoneos to the name. Configure these targets to build for iOS devices and use correct architectures for those builds.

(targets)

Source from the content-addressed store, hash-verified

1913
1914
1915def _AddIOSDeviceConfigurations(targets):
1916 """Clone all targets and append -iphoneos to the name. Configure these targets
1917 to build for iOS devices and use correct architectures for those builds."""
1918 for target_dict in targets.values():
1919 toolset = target_dict["toolset"]
1920 configs = target_dict["configurations"]
1921 for config_name, simulator_config_dict in dict(configs).items():
1922 iphoneos_config_dict = copy.deepcopy(simulator_config_dict)
1923 configs[config_name + "-iphoneos"] = iphoneos_config_dict
1924 configs[config_name + "-iphonesimulator"] = simulator_config_dict
1925 if toolset == "target":
1926 simulator_config_dict["xcode_settings"]["SDKROOT"] = "iphonesimulator"
1927 iphoneos_config_dict["xcode_settings"]["SDKROOT"] = "iphoneos"
1928 return targets
1929
1930
1931def CloneConfigurationForDeviceAndEmulator(target_dicts):

Calls 2

valuesMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…