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

Method AddConfig

tools/gyp/pylib/gyp/MSVSProject.py:122–131  ·  view source on GitHub ↗

Adds a configuration to the project. Args: name: Configuration name. attrs: Dict of configuration attributes; may be None. tools: List of tools (strings or Tool objects); may be None.

(self, name, attrs=None, tools=None)

Source from the content-addressed store, hash-verified

120 return specification
121
122 def AddConfig(self, name, attrs=None, tools=None):
123 """Adds a configuration to the project.
124
125 Args:
126 name: Configuration name.
127 attrs: Dict of configuration attributes; may be None.
128 tools: List of tools (strings or Tool objects); may be None.
129 """
130 spec = self._GetSpecForConfiguration("Configuration", name, attrs, tools)
131 self.configurations_section.append(spec)
132
133 def _AddFilesToNode(self, parent, files):
134 """Adds files and/or filters to the parent node.

Callers 1

_AddConfigurationToMSVSFunction · 0.45

Calls 2

appendMethod · 0.45

Tested by

no test coverage detected