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 = self.GetTargetPlatform(config)
      target_platform = {'x86': 'Win32'}.get(target_platform, target_platform)
      replacements = {
          '$(VSInstallDir)': self.vs_version.Path(),
          '$(VCInstallDir)': os.path.join(self.vs_version.Path(), 'VC') + '\\',
          '$(OutDir)\\': base_to_build + '\\' if base_to_build else '',
          '$(IntDir)': '$!INTERMEDIATE_DIR',
          '$(InputPath)': '${source}',
          '$(InputName)': '${root}',
          '$(ProjectName)': self.spec['target_name'],
          '$(PlatformName)': target_platform,
          '$(ProjectDir)\\': '',
      }
      # Chromium uses DXSDK_DIR in include/lib paths, but it may or may not be
      # set. This happens when the SDK is sync'd via src-internal, rather than
      # by typical end-user installation of the SDK. If it's not set, we don't
      # want to leave the unexpanded variable in the path, so simply strip it.
      replacements['$(DXSDK_DIR)'] = self.dxsdk_dir if self.dxsdk_dir else ''
      replacements['$(WDK_DIR)'] = self.wdk_dir if self.wdk_dir else ''
      return replacements
function_tokens: def GetVSMacroEnv ( self , base_to_build = None , config = None ) : target_platform = self . GetTargetPlatform ( config ) target_platform = { 'x86' : 'Win32' } . get ( target_platform , target_platform ) replacements = { '$(VSInstallDir)' : self . vs_version . Path ( ) , '$(VCInstallDir)' : os . path . join ( self . vs_version . Path ( ) , 'VC' ) + '\\' , '$(OutDir)\\' : base_to_build + '\\' if base_to_build else '' , '$(IntDir)' : '$!INTERMEDIATE_DIR' , '$(InputPath)' : '${source}' , '$(InputName)' : '${root}' , '$(ProjectName)' : self . spec [ 'target_name' ] , '$(PlatformName)' : target_platform , '$(ProjectDir)\\' : '' , } # Chromium uses DXSDK_DIR in include/lib paths, but it may or may not be # set. This happens when the SDK is sync'd via src-internal, rather than # by typical end-user installation of the SDK. If it's not set, we don't # want to leave the unexpanded variable in the path, so simply strip it. replacements [ '$(DXSDK_DIR)' ] = self . dxsdk_dir if self . dxsdk_dir else '' replacements [ '$(WDK_DIR)' ] = self . wdk_dir if self . wdk_dir else '' return replacements