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)
| 1913 | |
| 1914 | |
| 1915 | def _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 | |
| 1931 | def CloneConfigurationForDeviceAndEmulator(target_dicts): |
no test coverage detected
searching dependent graphs…