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

Method GetPerTargetSettings

tools/gyp/pylib/gyp/xcode_emulation.py:1016–1031  ·  view source on GitHub ↗

Gets a list of all the per-target settings. This will only fetch keys whose values are the same across all configurations.

(self)

Source from the content-addressed store, hash-verified

1014 return libtoolflags
1015
1016 def GetPerTargetSettings(self):
1017 """Gets a list of all the per-target settings. This will only fetch keys
1018 whose values are the same across all configurations."""
1019 first_pass = True
1020 result = {}
1021 for configname in sorted(self.xcode_settings.keys()):
1022 if first_pass:
1023 result = dict(self.xcode_settings[configname])
1024 first_pass = False
1025 else:
1026 for key, value in self.xcode_settings[configname].items():
1027 if key not in result:
1028 continue
1029 elif result[key] != value:
1030 del result[key]
1031 return result
1032
1033 def GetPerConfigSetting(self, setting, configname, default=None):
1034 if configname in self.xcode_settings:

Callers 4

GetMacInfoPlistFunction · 0.80
WriteCopiesMethod · 0.80
WriteMacXCassetsMethod · 0.80

Calls 3

sortedFunction · 0.85
keysMethod · 0.65
itemsMethod · 0.45

Tested by

no test coverage detected