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

Method GetRcflags

tools/gyp/pylib/gyp/msvs_emulation.py:892–905  ·  view source on GitHub ↗

Returns the flags that need to be added to invocations of the resource compiler.

(self, config, gyp_to_ninja_path)

Source from the content-addressed store, hash-verified

890 return link_inc != "1"
891
892 def GetRcflags(self, config, gyp_to_ninja_path):
893 """Returns the flags that need to be added to invocations of the resource
894 compiler."""
895 config = self._TargetConfig(config)
896 rcflags = []
897 rc = self._GetWrapper(
898 self, self.msvs_settings[config], "VCResourceCompilerTool", append=rcflags
899 )
900 rc("AdditionalIncludeDirectories", map=gyp_to_ninja_path, prefix="/I")
901 rcflags.append("/I" + gyp_to_ninja_path("."))
902 rc("PreprocessorDefinitions", prefix="/d")
903 # /l arg must be in hex without leading '0x'
904 rc("Culture", prefix="/l", map=lambda x: hex(int(x))[2:])
905 return rcflags
906
907 def BuildCygwinBashCommandLine(self, args, path_to_base):
908 """Build a command line that runs args via cygwin bash. We assume that all

Callers 1

WriteSourcesForArchMethod · 0.80

Calls 5

_TargetConfigMethod · 0.95
intFunction · 0.85
rcFunction · 0.50
hexFunction · 0.50
appendMethod · 0.45

Tested by

no test coverage detected