def HasBuildSetting(self, key):

    has = None
    value = None
    for configuration in self._properties['buildConfigurations']:
      configuration_has = configuration.HasBuildSetting(key)
      if has is None:
        has = configuration_has
      elif has != configuration_has:
        return -1

      if configuration_has:
        configuration_value = configuration.GetBuildSetting(key)
        if value is None:
          value = configuration_value
        elif value != configuration_value:
          return -1

    if not has:
      return 0

    return 1
Determines the state of a build setting in all XCBuildConfiguration
dataset/ETHPy150Open adblockplus/gyp/pylib/gyp/xcodeproj_file.py/XCConfigurationList.HasBuildSetting