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

Method GetBuildSetting

tools/gyp/pylib/gyp/xcodeproj_file.py:1750–1768  ·  view source on GitHub ↗

Gets the build setting for key. All child XCConfiguration objects must have the same value set for the setting, or a ValueError will be raised.

(self, key)

Source from the content-addressed store, hash-verified

1748 return 1
1749
1750 def GetBuildSetting(self, key):
1751 """Gets the build setting for key.
1752
1753 All child XCConfiguration objects must have the same value set for the
1754 setting, or a ValueError will be raised.
1755 """
1756
1757 # TODO(mark): This is wrong for build settings that are lists. The list
1758 # contents should be compared (and a list copy returned?)
1759
1760 value = None
1761 for configuration in self._properties["buildConfigurations"]:
1762 configuration_value = configuration.GetBuildSetting(key)
1763 if value is None:
1764 value = configuration_value
1765 elif value != configuration_value:
1766 raise ValueError("Variant values for " + key)
1767
1768 return value
1769
1770 def SetBuildSetting(self, key, value):
1771 """Sets the build setting for key to value in all child

Callers

nothing calls this directly

Calls 1

GetBuildSettingMethod · 0.45

Tested by

no test coverage detected