parameters: (self, base_to_build=None, config=None)
return_statement: return replacements
docstring: Get a dict of variables mapping internal VS macro names to their gyp
      equivalents.
docstring_summary: Get a dict of variables mapping internal VS macro names to their gyp
      equivalents.
docstring_tokens: Get a dict of variables mapping internal VS macro names to their gyp equivalents .
function: def GetVSMacroEnv(self, base_to_build=None, config=None):
      """Get a dict of variables mapping internal VS macro names to their gyp
      equivalents."""
      target_platform = 'Win32' if self.GetArch(config) == 'x86' else 'x64'
      target_name = self.spec.get('product_prefix', '') + \
          self.spec.get('product_name', self.spec['target_name'])
      target_dir = base_to_build + '\\' if base_to_build else ''
      target_ext = '.' + self.GetExtension()
      target_file_name = target_name + target_ext
  
      replacements = {
          '$(InputName)': '${root}',
          '$(InputPath)': '${source}',
          '$(IntDir)': '$!INTERMEDIATE_DIR',
          '$(OutDir)\\': target_dir,
          '$(PlatformName)': target_platform,
          '$(ProjectDir)\\': '',
          '$(ProjectName)': self.spec['target_name'],
          '$(TargetDir)\\': target_dir,
          '$(TargetExt)': target_ext,
          '$(TargetFileName)': target_file_name,
          '$(TargetName)': target_name,
          '$(TargetPath)': os.path.join(target_dir, target_file_name),
      }
      replacements.update(GetGlobalVSMacroEnv(self.vs_version))
      return replacements
function_tokens: def GetVSMacroEnv ( self , base_to_build = None , config = None ) : target_platform = 'Win32' if self . GetArch ( config ) == 'x86' else 'x64' target_name = self . spec . get ( 'product_prefix' , '' ) + self . spec . get ( 'product_name' , self . spec [ 'target_name' ] ) target_dir = base_to_build + '\\' if base_to_build else '' target_ext = '.' + self . GetExtension ( ) target_file_name = target_name + target_ext replacements = { '$(InputName)' : '${root}' , '$(InputPath)' : '${source}' , '$(IntDir)' : '$!INTERMEDIATE_DIR' , '$(OutDir)\\' : target_dir , '$(PlatformName)' : target_platform , '$(ProjectDir)\\' : '' , '$(ProjectName)' : self . spec [ 'target_name' ] , '$(TargetDir)\\' : target_dir , '$(TargetExt)' : target_ext , '$(TargetFileName)' : target_file_name , '$(TargetName)' : target_name , '$(TargetPath)' : os . path . join ( target_dir , target_file_name ) , } replacements . update ( GetGlobalVSMacroEnv ( self . vs_version ) ) return replacements