o
    b˰                     @   sB  d Z ddlmZ ddlZddlZze W n ey   eZY nw i Zi Z	i Z
i ZG dd deZdd Zdd	 ZG d
d deZG dd deZG dd deZG dd deZG dd deZG dd deZe Ze Ze Ze Ze Ze Ze Ze Zeg dZdd Zdd Z dd Z!dd Z"dd  Z#d!d" Z$d#d$ Z%d%d& Z&d'Z'e(d(d))e' Z*e(d*Z+ej,fd+d,Z-d-d. Z.d/d0 Z/ej,fd1d2Z0ej,fd3d4Z1ej,fd5d6Z2d7d8 Z3ed9d:Z4ed;d<Z5ed=d>Z6ed?d@Z7edAdBZ8edCdDZ9edEdEZ:ee4 ee5 ee6 ee7 ee8 ee9 ee: i e	dF< i e	dG< i e	dH< ee4dIe ee4dJe ee4dKe ee4dLe ee4dMe ee4dNe ee4dOe ee4dPe ee4dQe ee4dRe ee4dSe ee4dTe ee4dUe ee4dVe ee4dWe ee4dXe ee4dYe ee4dZe ee4d[e ee4d\e ee4d]e ee4d^e ee4d_e ee4d`e ee4dae ee4dbe ee4dce ee4dde ee4dee ee4dfe ee4dge ee4dhe ee4die ee4dje ee4dkeg dl ee4dmeg dn ee4doeg dp ee4dqeg dr ee4dseg dt ee4dueg dv ee4dweg dx ee4dyeg dzd{gd| ee4d}eg d~dgd| ee4deg d ee4deg d ee4deg ddgd| ee4deg d ee4deg d ee4deg d ee4deg ddgd| e e4dde e e4dde e e4dde e e4dde e e4dde e e4dde e e4dde e e4ddeg d e e4dde e%e4dd e#e4de e#e4de e$e4de e$e4deg ddgd| e$e4de e$e4de e$e4de e$e4de e$e4de e$e4de e$e4de e&e4d ee5de ee5de ee5de ee5dJe ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5dce ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de ee5de eg ddgd|Z;eg dZ<ee5deg d ee5deg d ee5deg d ee5deg d ee5deg d ee5deg d ee5deg dg dd| ee5de; ee5de< ee5deg d ee5de ee5de e e5dydeg d dgd| e e5dde e e5dde e e5dde e!e5ddFe e!e5d	dFe e!e5d
dFe e!e5ddGe e!e5ddGe e#e5de e#e5de e$e5de e$e5de e$e5de e$e5de e$e5de e$e5de e$e5de e$e5de e$e5de e$e5de e$e5deg g dd| e$e5deg g dd| e$e5deg g dd| ee7dJe ee7dIe ee7dedd ee7dYe ee7d]e ee7de ee7de ee7dce ee7dfe e$e7d e e$e7de ee6dIe ee6dJe ee6d!e ee6d"e ee6d#e ee6d$e ee6d%e ee6d&e ee6d'e ee6d(e ee6d)e ee6dYe ee6d*e ee6d+e ee6d,e ee6d]e ee6d-e ee6d.e ee6dce ee6d/e ee6dfe ee6de ee6d0eg d1 ee6d2eg d3 ee6d4eg d5 ee6deg d6 ee6deg d7 e e6d8d9e e e6d:d;e e$e6d<e e$e6d=e e$e6d>eg d?d@gd| e$e6dAeg d?d@gd| e$e6dBe e$e6dCe e$e6dDe e$e6de e$e6dEeg dFdGgd| ee8de ee8de ee8dJe ee8dHe ee8de ee8de ee8de ee8de ee8de ee8dce ee8de ee8de ee8de< e!e8ddGe e$e8dIe e$e8dyeg g dJd| e$e8de e$e8dKe e$e8dLe e$e8de; e$e8de e$e8dMe e$e8dNe ee9dOe ee9dJe ee9dPe ee9dQe ee9dRe ee9dSe ee9dTe ee9dUe ee9dVe ee9dce ee9de ee9dWe ee9dXe ee9dYe e"e9dZdHde e!e9d[dFe e#e9d\e e#e9d]e e#e9de e$e9d^e e$e9d_e e$e9d`e e$e9dae e$e9dbe e$e9de ee:dce dS (d  a9  Code to validate and convert settings of the Microsoft build tools.

This file contains code to validate and convert settings of the Microsoft
build tools.  The function ConvertToMSBuildSettings(), ValidateMSVSSettings(),
and ValidateMSBuildSettings() are the entry points.

This file was created by comparing the projects created by Visual Studio 2008
and Visual Studio 2010 for all available settings through the user interface.
The MSBuild schemas were also considered.  They are typically found in the
MSBuild install directory, e.g. c:\Program Files (x86)\MSBuild
    )print_functionNc                   @   s   e Zd ZdZdd ZdS )_ToolzRepresents a tool used by MSVS or MSBuild.

  Attributes:
      msvs_name: The name of the tool in MSVS.
      msbuild_name: The name of the tool in MSBuild.
  c                 C   s   || _ || _d S N)	msvs_namemsbuild_name)selfr   r    r   2/usr/lib/python3/dist-packages/gyp/MSVSSettings.py__init__3   s   
z_Tool.__init__N)__name__
__module____qualname____doc__r
   r   r   r   r	   r   +   s    r   c                 C   s.   i t | j< i t| j< i t| j< | jt| j< dS )zAdds a tool to the four dictionaries used to process settings.

  This only defines the tool.  Each setting also needs to be added.

  Args:
    tool: The _Tool object to be added.
  N)_msvs_validatorsr   _msbuild_validatorsr   _msvs_to_msbuild_converters_msbuild_name_of_tooltoolr   r   r	   _AddTool8   s   


r   c                 C   s   |  |ji S )z:Returns an MSBuild tool dictionary.  Creates it if needed.
setdefaultr   )msbuild_settingsr   r   r   r	   _GetMSBuildToolSettingsF      r   c                   @   (   e Zd ZdZdd Zdd Zdd ZdS )	_TypezType of settings (Base class).c                 C      dS )zVerifies that the value is legal for MSVS.

    Args:
      value: the value to check for this type.

    Raises:
      ValueError if value is not valid for MSVS.
    Nr   r   valuer   r   r	   ValidateMSVSN       z_Type.ValidateMSVSc                 C   r   )zVerifies that the value is legal for MSBuild.

    Args:
      value: the value to check for this type.

    Raises:
      ValueError if value is not valid for MSBuild.
    Nr   r   r   r   r	   ValidateMSBuildX   r!   z_Type.ValidateMSBuildc                 C   s   |S )zReturns the MSBuild equivalent of the MSVS value given.

    Args:
      value: the MSVS value to convert.

    Returns:
      the MSBuild equivalent.

    Raises:
      ValueError if value is not valid.
    r   r   r   r   r	   ConvertToMSBuildb   s   z_Type.ConvertToMSBuildNr   r   r   r   r    r"   r#   r   r   r   r	   r   K   s
    

r   c                   @   r   )	_StringzA setting that's just a string.c                 C      t |tstd| d S Nzexpected string; got %r
isinstance
basestring
ValueErrorr   r   r   r	   r    t      
z_String.ValidateMSVSc                 C   r&   r'   r(   r   r   r   r	   r"   x   r,   z_String.ValidateMSBuildc                 C   s   t |S r   ConvertVCMacrosToMSBuildr   r   r   r	   r#   |   s   z_String.ConvertToMSBuildNr$   r   r   r   r	   r%   q   
    r%   c                   @   r   )	_StringListz$A settings that's a list of strings.c                 C   (   t |tst |tstd| d S d S Nzexpected string list; got %rr)   r*   listr+   r   r   r   r	   r          z_StringList.ValidateMSVSc                 C   r1   r2   r3   r   r   r   r	   r"      r5   z_StringList.ValidateMSBuildc                 C   s    t |trdd |D S t|S )Nc                 S   s   g | ]}t |qS r   r-   ).0ir   r   r	   
<listcomp>   s    z0_StringList.ConvertToMSBuild.<locals>.<listcomp>)r)   r4   r.   r   r   r   r	   r#      s   
z_StringList.ConvertToMSBuildNr$   r   r   r   r	   r0      r/   r0   c                   @   s0   e Zd ZdZdd Zdd Zdd Zdd	 Zd
S )_Booleanz8Boolean settings, can have the values 'false' or 'true'.c                 C   s$   |dkr|dkrt d| d S d S )Ntruefalsezexpected bool; got %r)r+   r   r   r   r	   	_Validate   s   z_Boolean._Validatec                 C      |  | d S r   r<   r   r   r   r	   r          z_Boolean.ValidateMSVSc                 C   r=   r   r>   r   r   r   r	   r"      r?   z_Boolean.ValidateMSBuildc                 C   s   |  | |S r   r>   r   r   r   r	   r#      s   
z_Boolean.ConvertToMSBuildN)r   r   r   r   r<   r    r"   r#   r   r   r   r	   r9      s    r9   c                   @   s2   e Zd ZdZdddZdd Zdd Zd	d
 ZdS )_IntegerzInteger settings.
   c                 C   s   t |  || _d S r   )r   r
   _msbuild_base)r   msbuild_baser   r   r	   r
      s   

z_Integer.__init__c                 C   r=   r   r#   r   r   r   r	   r       r   z_Integer.ValidateMSVSc                 C   s   t || j d S r   )intrB   r   r   r   r	   r"      s   z_Integer.ValidateMSBuildc                 C   s   | j dkrdpd}|t| S )NrA   z%dz0x%04x)rB   rE   )r   r   Zmsbuild_formatr   r   r	   r#      s   z_Integer.ConvertToMSBuildN)rA   r   r   r   r   r
   r    r"   r#   r   r   r   r	   r@      s    
r@   c                   @   s2   e Zd ZdZdddZdd Zdd Zd	d
 ZdS )_Enumerationa  Type of settings that is an enumeration.

  In MSVS, the values are indexes like '0', '1', and '2'.
  MSBuild uses text labels that are more representative, like 'Win32'.

  Constructor args:
    label_list: an array of MSBuild labels that correspond to the MSVS index.
        In the rare cases where MSVS has skipped an index value, None is
        used in the array to indicate the unused spot.
    new: an array of labels that are new to MSBuild.
  Nc                 C   s@   t |  || _tdd |D | _|d ur| j| d S d S )Nc                 s   s    | ]	}|d ur|V  qd S r   r   )r6   r   r   r   r	   	<genexpr>   s    z(_Enumeration.__init__.<locals>.<genexpr>)r   r
   _label_listset_msbuild_valuesupdate)r   Z
label_listnewr   r   r	   r
      s   
z_Enumeration.__init__c                 C   r=   r   rD   r   r   r   r	   r       r   z_Enumeration.ValidateMSVSc                 C   s   || j vrtd| d S )Nz unrecognized enumerated value %s)rK   r+   r   r   r   r	   r"      r,   z_Enumeration.ValidateMSBuildc                 C   sV   t |}|dk s|t| jkrtd|t| jf | j| }|d u r)td| |S )Nr   z.index value (%d) not in expected range [0, %d)z%converted value for %s not specified.)rE   lenrI   r+   )r   r   indexZlabelr   r   r	   r#      s   
z_Enumeration.ConvertToMSBuildr   rF   r   r   r   r	   rG      s    
rG   ) r;   r:   c                 C   s   t | ||| dS )zDefines a setting that has the same name in MSVS and MSBuild.

  Args:
    tool: a dictionary that gives the names of the tool for MSVS and MSBuild.
    name: the name of the setting.
    setting_type: the type of this setting.
  N)_Renamed)r   namesetting_typer   r   r	   _Same   s   rT   c                    sB    fdd}j tj |< jtj  < |tj |< dS )a  Defines a setting for which the name has changed.

  Args:
    tool: a dictionary that gives the names of the tool for MSVS and MSBuild.
    msvs_name: the name of the MSVS setting.
    msbuild_name: the name of the MSBuild setting.
    setting_type: the type of this setting.
  c                    s   t |}| | < d S r   )r   r#   )r   r   Zmsbuild_tool_settingsr   rS   r   r   r	   
_Translate  s   
z_Renamed.<locals>._TranslateN)r    r   r   r"   r   r   r   )r   r   r   rS   rV   r   rU   r	   rQ      s
   
rQ   c                 C   s   t | |||| d S r   )_MovedAndRenamed)r   Zsettings_namemsbuild_tool_namerS   r   r   r	   _Moved  s   
rY   c                    sD    fdd}j t| j |< j}|t  < |t| j |< dS )a  Defines a setting that may have moved to a new section.

  Args:
    tool: a dictionary that gives the names of the tool for MSVS and MSBuild.
    msvs_settings_name: the MSVS name of the setting.
    msbuild_tool_name: the name of the MSBuild tool to place the setting under.
    msbuild_settings_name: the MSBuild name of the setting.
    setting_type: the type of this setting.
  c                    s   | i }| | < d S r   )r   r#   r   r   tool_settingsmsbuild_settings_namerX   rS   r   r	   rV   !  s   z$_MovedAndRenamed.<locals>._TranslateN)r    r   r   r"   r   r   )r   Zmsvs_settings_namerX   r]   rS   rV   Z	validatorr   r\   r	   rW     s   rW   c                 C   s*   dd }|j t| j |< |t| j |< dS )zDefines a setting that is only found in MSVS.

  Args:
    tool: a dictionary that gives the names of the tool for MSVS and MSBuild.
    name: the name of the setting.
    setting_type: the type of this setting.
  c                 S   s   d S r   r   )Zunused_valueZunused_msbuild_settingsr   r   r	   rV   5  s   z_MSVSOnly.<locals>._TranslateN)r    r   r   r   r   rR   rS   rV   r   r   r	   	_MSVSOnly,  s   	r_   c                    s0    fdd}|j tj  < |tj  < dS )zDefines a setting that is only found in MSBuild.

  Args:
    tool: a dictionary that gives the names of the tool for MSVS and MSBuild.
    name: the name of the setting.
    setting_type: the type of this setting.
  c                    s   | ji }| | < d S r   r   rZ   rR   r   r   r	   rV   F  s   z _MSBuildOnly.<locals>._TranslateN)r"   r   r   r   r   r^   r   r`   r	   _MSBuildOnly=  s   	ra   c                    s0    fdd}t jtj |< |tj |< dS )a+  Defines a setting that's handled via a command line option in MSBuild.

  Args:
    tool: a dictionary that gives the names of the tool for MSVS and MSBuild.
    msvs_name: the name of the MSVS setting that if 'true' becomes a flag
    flag: the flag to insert at the end of the AdditionalOptions
  c                    s@   | dkrt |}d|v rd|d  f }n }||d< d S d S )Nr:   AdditionalOptionsz%s %s)r   )r   r   r[   Z	new_flagsflagr   r   r	   rV   X  s   
z0_ConvertedToAdditionalOption.<locals>._TranslateN)_booleanr    r   r   r   )r   r   rd   rV   r   rc   r	   _ConvertedToAdditionalOptionO  s   	rf   c                    sZ    fdd}t g dj}|t j |< tj}t j }||d< ||d< |t j |< d S )Nc                    sj   t | }| dkrd|d< d|d< d S | dkr!d|d< d|d< d S | dkr/d|d< d|d< d S td|  )	N0r;   PreprocessToFilePreprocessSuppressLineNumbers1r:   2z&value must be one of [0, 1, 2]; got %s)r   r+   rZ   r   r   r	   rV   e  s   
z3_CustomGeneratePreprocessedFile.<locals>._Translate)abcrh   ri   )	rG   r    r   r   re   r"   r   r   r   )r   r   rV   Zmsvs_validatorZmsbuild_validatorZmsbuild_tool_validatorsr   r   r	   _CustomGeneratePreprocessedFiled  s   
ro   )ZIntDirZOutDirz(\$\((?:%s)\))(?:[\\/]+)|z^(.*)_excluded$c                 C   s>   d}t t| }|r|d}||v}|rt||d dS dS )a  Verify that 'setting' is valid if it is generated from an exclusion list.

  If the setting appears to be generated from an exclusion list, the root name
  is checked.

  Args:
      setting:   A string that is the setting name to validate
      settings:  A dictionary where the keys are valid settings
      error_msg: The message to emit in the event of error
      stderr:    The stream receiving the error messages.
  T   fileN)rematch_EXCLUDED_SUFFIX_REgroupprint)settingsettingsZ	error_msgstderrZunrecognizedmZroot_settingr   r   r	   _ValidateExclusionSetting  s   
r}   c                 C   s   d| v r
t d| } | S )a  Replace macros which have excessive following slashes.

  These macros are known to have a built-in trailing slash. Furthermore, many
  scripts hiccup on processing paths with extra slashes in the middle.

  This list is probably not exhaustive.  Add as needed.
  $z\1)fix_vc_macro_slashes_regexsub)sr   r   r	   FixVCMacroSlashes  s   r   c              
   C   sJ   d| v r#dddddddd	dd
	}|  D ]
\}}| ||} qt| } | S )zConvert the MSVS macros found in the string to the MSBuild equivalent.

  This list is probably not exhaustive.  Add as needed.
  r~   z$(Configuration)z%(RelativeDir)z%(Extension)z%(Filename)%(Extension)z%(Filename)z%(Identity)z$(ProjectFileName)z$(Platform))	z$(ConfigurationName)z$(InputDir)z$(InputExt)z$(InputFileName)z$(InputName)z$(InputPath)z$(ParentName)z$(PlatformName)z$(SafeInputName))itemsreplacer   )r   Zreplace_mapoldrM   r   r   r	   r.     s   r.   c           	      C   s   i }|   D ]T\}}|tv rRt| }|  D ]:\}}||v rEz	|| || W q tyD } ztd|||f |d W Y d}~qd}~ww t||d||f | qqtd| |d q|S )a  Converts MSVS settings (VS2008 and earlier) to MSBuild settings (VS2010+).

  Args:
      msvs_settings: A dictionary.  The key is the tool name.  The values are
          themselves dictionaries of settings and their values.
      stderr: The stream receiving the error messages.

  Returns:
      A dictionary of MSBuild settings.  The key is either the MSBuild tool name
      or the empty string (for the global settings).  The values are themselves
      dictionaries of settings and their values.
  z.Warning: while converting %s/%s to MSBuild, %srr   Nz@Warning: unrecognized setting %s/%s while converting to MSBuild.z:Warning: unrecognized tool %s while converting to MSBuild.)r   r   r+   rx   r}   )	Zmsvs_settingsr{   r   Zmsvs_tool_nameZmsvs_tool_settingsZ	msvs_toolZmsvs_settingZ
msvs_valueer   r   r	   ConvertToMSBuildSettings  s<   r   c                 C      t t| | dS )a  Validates that the names of the settings are valid for MSVS.

  Args:
      settings: A dictionary.  The key is the tool name.  The values are
          themselves dictionaries of settings and their values.
      stderr: The stream receiving the error messages.
  N)_ValidateSettingsr   rz   r{   r   r   r	   ValidateMSVSSettings     r   c                 C   r   )a  Validates that the names of the settings are valid for MSBuild.

  Args:
      settings: A dictionary.  The key is the tool name.  The values are
          themselves dictionaries of settings and their values.
      stderr: The stream receiving the error messages.
  N)r   r   r   r   r   r	   ValidateMSBuildSettings  r   r   c                 C   s   |D ]S}|| v rM| | }||   D ]9\}}||v r@z|| | W q ty? } ztd|||f |d W Y d}~qd}~ww t||d||f | qqtd| |d qdS )a  Validates that the settings are valid for MSBuild or MSVS.

  We currently only validate the names of the settings, not their values.

  Args:
      validators: A dictionary of tools and their validators.
      settings: A dictionary.  The key is the tool name.  The values are
          themselves dictionaries of settings and their values.
      stderr: The stream receiving the error messages.
  zWarning: for %s/%s, %srr   Nz#Warning: unrecognized setting %s/%szWarning: unrecognized tool %s)r   r+   rx   r}   )Z
validatorsrz   r{   Z	tool_nameZtool_validatorsry   r   r   r   r   r	   r     s2   r   ZVCCLCompilerToolZ	ClCompileZVCLinkerToolZLinkZ
VCMIDLToolZMidlZVCResourceCompilerToolZResourceCompileZVCLibrarianToolZLibZVCManifestToolZManifestZMASMrP   ZProjectReferenceZManifestResourceCompileZAdditionalIncludeDirectoriesrb   ZAdditionalUsingDirectoriesZAssemblerListingLocationZBrowseInformationFileZBufferSecurityCheckZDisableLanguageExtensionsZDisableSpecificWarningsZEnableFiberSafeOptimizationsZEnablePREfastZExpandAttributedSourceZFloatingPointExceptionsZForceConformanceInForLoopScopeZForcedIncludeFilesZForcedUsingFilesZGenerateXMLDocumentationFilesZIgnoreStandardIncludePathZMinimalRebuildZOmitDefaultLibNameZOmitFramePointersZPreprocessorDefinitionsZProgramDataBaseFileNameZRuntimeTypeInfoZShowIncludesZSmallerTypeCheckZStringPoolingZSuppressStartupBannerZTreatWChar_tAsBuiltInTypeZ"UndefineAllPreprocessorDefinitionsZUndefinePreprocessorDefinitionsZUseFullPathsZWholeProgramOptimizationZXMLDocumentationFileNameZCompileAsWinRTZAssemblerOutput)Z	NoListingZAssemblyCodeAllZAssemblyAndMachineCodeZAssemblyAndSourceCodeZBasicRuntimeChecks)DefaultZStackFrameRuntimeCheckZUninitializedLocalUsageCheckZEnableFastChecksZBrowseInformation)r;   r:   r:   ZCallingConvention)ZCdeclZFastCallZStdCallZ
VectorCallZ	CompileAs)r   Z
CompileAsCZCompileAsCppZDebugInformationFormat)rP   ZOldStyleNZProgramDatabaseZEditAndContinueZEnableEnhancedInstructionSet)NotSetZStreamingSIMDExtensionsZStreamingSIMDExtensions2ZAdvancedVectorExtensionsZNoExtensionsZAdvancedVectorExtensions2ZErrorReporting)NoneZPromptZQueueZSend)rM   ZExceptionHandling)r;   ZSyncZAsyncZ
SyncCThrowZFavorSizeOrSpeed)ZNeitherZSpeedZSizeZFloatingPointModel)ZPreciseZStrictZFastZInlineFunctionExpansion)r   ZOnlyExplicitInlineZAnySuitableDisabledZOptimization)r   ZMinSpaceZMaxSpeedZFullZRuntimeLibrary)ZMultiThreadedZMultiThreadedDebugZMultiThreadedDLLZMultiThreadedDebugDLLZStructMemberAlignment)r   Z1ByteZ2BytesZ4BytesZ8BytesZ16BytesZWarningLevel)ZTurnOffAllWarningsZLevel1ZLevel2ZLevel3ZLevel4ZEnableAllWarningsZEnableFunctionLevelLinkingZFunctionLevelLinkingZEnableIntrinsicFunctionsZIntrinsicFunctionsZKeepCommentsZPreprocessKeepCommentsZ
ObjectFileZObjectFileNameZOpenMPZOpenMPSupportZPrecompiledHeaderThroughZPrecompiledHeaderFileZPrecompiledHeaderOutputFileZUsePrecompiledHeaderZPrecompiledHeader)ZNotUsingZCreateZUseZWarnAsErrorZTreatWarningAsErrorZDefaultCharIsUnsignedz/JZDetect64BitPortabilityProblemsZUseUnicodeResponseFilesZBuildingInIDEZCompileAsManagedr;   r:   ZCreateHotpatchableImageZMultiProcessorCompilationZPreprocessOutputPathZProcessorNumberZTrackerLogDirectoryZTreatSpecificWarningsAsErrorsZUseUnicodeForAssemblerListingZGeneratePreprocessedFileZAdditionalDependenciesZAdditionalLibraryDirectoriesZAdditionalManifestDependenciesZAddModuleNamesToAssemblyZAllowIsolationZAssemblyLinkResourceZBaseAddressZCLRUnmanagedCodeCheckZDelayLoadDLLsZ	DelaySignZEmbedManagedResourceFileZ	EnableUACZEntryPointSymbolZForceSymbolReferencesZFunctionOrderZGenerateDebugInformationZGenerateMapFileZHeapCommitSizeZHeapReserveSizeZIgnoreAllDefaultLibrariesZIgnoreEmbeddedIDLZImportLibraryZKeyContainerZKeyFileZManifestFileZ
MapExportsZMapFileNameZMergedIDLBaseFileNameZMergeSectionsZMidlCommandFileZModuleDefinitionFileZ
OutputFileZPerUserRedirectionZProfileZProfileGuidedDatabaseZProgramDatabaseFileZRegisterOutputZSetChecksumZStackCommitSizeZStackReserveSizeZStripPrivateSymbolsZSupportUnloadOfDelayLoadedDLLZSwapRunFromCDZTurnOffAssemblyGenerationZTypeLibraryFileZTypeLibraryResourceIDZUACUIAccessZVersionZEnableCOMDATFoldingZFixedBaseAddressZLargeAddressAwareZOptimizeReferencesZRandomizedBaseAddressZTerminalServerAware)	r   ZConsoleZWindowsZNativezEFI ApplicationzEFI Boot Service DriverzEFI ROMzEFI RuntimeZ	WindowsCEZPOSIX)r   Z
MachineX86NZ
MachineARMZ
MachineEBCZMachineIA64NZMachineMIPSZMachineMIPS16ZMachineMIPSFPUZMachineMIPSFPU16NNNZ
MachineSH4NZMachineTHUMBZ
MachineX64ZAssemblyDebug)rP   r:   r;   ZCLRImageType)r   ZForceIJWImageZForcePureILImageZForceSafeILImageZCLRThreadAttribute)ZDefaultThreadingAttributeZMTAThreadingAttributeZSTAThreadingAttributeZDataExecutionPreventionDriver)r   r   ZUpOnlyZWDMZLinkTimeCodeGeneration)r   ZUseLinkTimeCodeGenerationZPGInstrumentZPGOptimizationZPGUpdateZShowProgress)r   ZLinkVerboseZLinkVerboseLib)ZLinkVerboseICFZLinkVerboseREFZLinkVerboseSAFESEHZLinkVerboseCLRZ	SubSystemZTargetMachineZUACExecutionLevel)Z	AsInvokerZHighestAvailableZRequireAdministratorZMinimumRequiredVersionZTreatLinkerWarningAsErrorsZLinkErrorReporting)NoErrorReportPromptImmediatelyQueueForNextLoginSendErrorReportZIgnoreDefaultLibraryNamesZIgnoreSpecificDefaultLibrariesZResourceOnlyDLLZNoEntryPointZSwapRunFromNetZSwapRunFromNETZGenerateManifestZIgnoreImportLibraryZLinkIncrementalZLinkLibraryDependenciesZUseLibraryDependencyInputsZOptimizeForWindows98ZImageHasSafeExceptionHandlersZLinkDLLZ
LinkStatusZPreventDllBindingZSupportNobindOfDelayLoadedDLLZMSDOSStubFileNameZSectionAlignmentZSpecifySectionAttributesZForceFileOutput)EnabledZMultiplyDefinedSymbolOnlyZUndefinedSymbolOnlyZCreateHotPatchableImage)r   ZX86ImageZX64ImageZItaniumImageZCLRSupportLastError)r   r   Z
SystemDllsZCulture   )rC   ZResourceOutputFileNameZNullTerminateStringsZCPreprocessOptionsZErrorCheckAllocationsZErrorCheckBoundsZErrorCheckEnumRangeZErrorCheckRefPointersZErrorCheckStubDataZGenerateStublessProxiesZGenerateTypeLibraryZHeaderFileNameZInterfaceIdentifierFileNameZMkTypLibCompatibleZOutputDirectoryZProxyFileNameZRedirectOutputAndErrorsZTypeLibraryNameZDefaultCharType)ZUnsignedZSignedZAsciiZTargetEnvironment)r   ZWin32ZItaniumZX64ZEnableErrorChecks)ZEnableCustomr   r   )r   rj   rk   48)rg   rj   rk   3r   ZDLLDataFileNameZDllDataFileNameZValidateParametersZValidateAllParametersZApplicationConfigurationModeZClientStubFileZGenerateClientFilesZStubr   ZGenerateServerFilesZLocaleIDZServerStubFileZSuppressCompilerWarningsZTypeLibFormatZ	NewFormatZ	OldFormatZExportNamedFunctionsZDisplayLibrary)r   r   r   r   NameZRemoveObjectsZTreatLibWarningAsErrorsVerboseZAdditionalManifestFilesZAssemblyIdentityZComponentFileNameZGenerateCatalogFilesZInputResourceManifestsZOutputManifestFileZRegistrarScriptFileZReplacementsFileZUpdateFileHashesZUpdateFileHashesSearchPathZVerboseOutputZManifestResourceFileZEmbedManifestZDependencyInformationFileZUseFAT32WorkaroundZEnableDPIAwarenessZGenerateCategoryTagsZManifestFromManagedAssemblyZOutputResourceManifestsZSuppressDependencyElementZUseSafeExceptionHandlers)=r   Z
__future__r   sysrt   r*   	NameErrorstrr   r   r   r   objectr   r   r   r   r%   r0   r9   r@   rG   re   Z_integerZ_stringZ
_file_nameZ_folder_nameZ
_file_listZ_folder_listZ_string_listZ_newly_booleanrT   rQ   rY   rW   r_   ra   rf   ro   Zfix_vc_macro_slashes_regex_listcompilejoinr   rv   r{   r}   r   r.   r   r   r   r   _compileZ_linkZ_midlZ_rcZ_libZ	_manifestZ_masmZ_subsystem_enumerationZ_target_machine_enumerationr   r   r   r	   <module>   s  &)
'
!












	




	

	







	