Current File : //proc/3/cwd/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSSettings.pyo
�
vפ\c@s�dZddlZddlZiZiZiZiZdefd��YZd�Z d�Z
defd��YZd efd
��YZdefd��YZ
d
efd��YZdefd��YZdefd��YZe�Ze�Ze�Ze�Ze�Ze
�Ze
�Ze
�Zedddg�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Z d�Z!d�Z"ej#d d!j$e"��Z%ej#d"�Z&ej'd#�Z(d$�Z)d%�Z*ej'd&�Z+ej'd'�Z,ej'd(�Z-d)�Z.ed*d+�Z/ed,d-�Z0ed.d/�Z1ed0d1�Z2ed2d3�Z3ed4d5�Z4ed6d6�Z5e e/�e e0�e e1�e e2�e e3�e e4�e e5�ied<ied7<ied8<ee/d9e�ee/d:e�ee/d;e�ee/d<e�ee/d=e�ee/d>e�ee/d?e�ee/d@e�ee/dAe�ee/dBe�ee/dCe�ee/dDe�ee/dEe�ee/dFe�ee/dGe�ee/dHe�ee/dIe�ee/dJe�ee/dKe�ee/dLe�ee/dMe�ee/dNe�ee/dOe�ee/dPe�ee/dQe�ee/dRe�ee/dSe�ee/dTe�ee/dUe�ee/dVe�ee/dWe�ee/dXe�ee/dYe�ee/dZed[d\d]d^d_g��ee/d`edadbdcddg��ee/deedddg��ee/dfedgdhdidjg��ee/dkedadldmg��ee/dneddoddpdqg��ee/dredsdtdudvdwdxg��ee/dyedzd{d|gd}d~g��ee/dedd�d�gd}d�g��ee/d�ed�d�d�g��ee/d�ed�d�d�g��ee/d�edad�d�gd}d�g��ee/d�ed�d�d�d�g��ee/d�ed�d�d�d�g��ee/d�edad�d�d�d�d�g��ee/d�ed�d�d�d�d�gd}d�g��ee/d�d�e�ee/d�d�e�ee/d�d�e�ee/d�d�e�ee/d�d�e�ee/d�d�e�ee/d�d�e�ee/d�d�ed�d�d�g��ee/d�d�e�e e/d�d��ee/d�e�ee/d�e�ee/d�e�ee/d�egd}ddg��ee/d�e�ee/d�e�ee/d�e�ee/d�e�ee/d�e�ee/d�e�ee/d�e�e!e/d��ee0d�e�ee0d�e�ee0d�e�ee0d:e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0dSe�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�ee0d�e�edsd�d�d�dddddg d}dg�Z7edsddddd dd
ddd
dddddddg�Z8ee0dedddg��ee0dedadddg��ee0dedddg��ee0dedddg��ee0dedsdddg��ee0dedadd d!d"g��ee0d#edsd$d%gd}d&d'd(d)g��ee0d*e7�ee0d+e8�ee0d,ed-d.d/g��ee0d0e�ee0d1e�ee0dyd2ed3d4d5gd}d6g��ee0d7d8e�ee0d9d:e�ee0d;d<e�ee0d=de�ee0d>de�ee0d?de�ee0d@d7e�ee0dAd7e�ee0dBe�ee0d�e�ee0d�e�ee0dCe�ee0dDe�ee0dEe�ee0dFe�ee0dGe�ee0d�e�ee0dHe�ee0dIe�ee0dJe�ee0dKegd}dLdMdNg��ee0dOegd}dLdPdQdRg��ee0dSegd}dLd�dTg��ee2d:e�ee2d9e�ee2dUedVdW��ee2dIe�ee2dMe�ee2dXe�ee2d#e�ee2dSe�ee2dVe�ee2dYe�ee2d�e�ee1d9e�ee1d:e�ee1dZe�ee1d[e�ee1d\e�ee1d]e�ee1d^e�ee1d_e�ee1d`e�ee1dae�ee1dbe�ee1dIe�ee1dce�ee1dde�ee1dee�ee1dMe�ee1dfe�ee1dge�ee1dSe�ee1dhe�ee1dVe�ee1d�e�ee1diedjdkdlg��ee1dmedsdndodpg��ee1dqedrdzd]g��ee1d�edsdsdtdudvg��ee1d�edwdsdtdxdug��ee1dydze�ee1d{d|e�ee1d}e�ee1d~e�ee1degd}d�dzg��ee1d�egd}d�dzg��ee1d�e�ee1d�e�ee1d�e�ee1d�e�ee1d�egd}d�d�g��ee3d�e�ee3d�e�ee3d:e�ee3d�e�ee3d�e�ee3d�e�ee3d8e�ee3d�e�ee3d�e�ee3dSe�ee3d�e�ee3de�ee3d+e8�ee3d@d7e�ee3d�e�ee3dyegd}d4d5d6d3g��ee3d0e�ee3d�e�ee3d�e�ee3d*e7�ee3d�e�ee3d�e�ee3d�e�ee4d�e�ee4d:e�ee4d�e�ee4d�e�ee4d�e�ee4d�e�ee4d�e�ee4d�e�ee4d�e�ee4dSe�ee4d�e�ee4d�e�ee4d�e�ee4d�e�ee4d�d8dXe�ee4d�de�ee4d�e�ee4d�e�ee4d�e�ee4d�e�ee4d�e�ee4d�e�ee4d�e�ee4d�e�ee4d�e�ee5d�e�dS(�s9Code 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
i����Nt_ToolcBseZdZd�ZRS(s�Represents 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.
cCs||_||_dS(N(t msvs_nametmsbuild_name(tselfRR((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyt__init__+s (t__name__t
__module__t__doc__R(((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyR#scCs;it|j<it|j<it|j<|jt|j<dS(s�Adds 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(t_msvs_validatorsRt_msbuild_validatorsRt_msvs_to_msbuild_converterst_msbuild_name_of_tool(ttool((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyt_AddTool0s
cCs|j|ji�S(s:Returns an MSBuild tool dictionary. Creates it if needed.(t
setdefaultR(tmsbuild_settingsR((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyt_GetMSBuildToolSettings>st_TypecBs)eZdZd�Zd�Zd�ZRS(sType of settings (Base class).cCsdS(s�Verifies 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.
N((Rtvalue((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pytValidateMSVSFscCsdS(s�Verifies 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.
N((RR((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pytValidateMSBuildPscCs|S(s�Returns 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.
((RR((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pytConvertToMSBuildZs(RRRRRR(((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyRCs
t_StringcBs)eZdZd�Zd�Zd�ZRS(sA setting that's just a string.cCs&t|t�s"td|��ndS(Nsexpected string; got %r(t
isinstancet
basestringt
ValueError(RR((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyRlscCs&t|t�s"td|��ndS(Nsexpected string; got %r(RRR(RR((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyRpscCs
t|�S(N(tConvertVCMacrosToMSBuild(RR((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyRts(RRRRRR(((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyRis t_StringListcBs)eZdZd�Zd�Zd�ZRS(s$A settings that's a list of strings.cCs7t|t�r3t|t�r3td|��ndS(Nsexpected string list; got %r(RRtlistR(RR((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyR|s cCs7t|t�r3t|t�r3td|��ndS(Nsexpected string list; got %r(RRRR(RR((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyR�s cCs:t|t�r,g|D]}t|�^qSt|�SdS(N(RRR(RRti((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyR�s(RRRRRR(((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyRys t_BooleancBs2eZdZd�Zd�Zd�Zd�ZRS(s8Boolean settings, can have the values 'false' or 'true'.cCs/|dkr+|dkr+td|��ndS(Nttruetfalsesexpected bool; got %r(R(RR((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyt _Validate�scCs|j|�dS(N(R!(RR((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyR�scCs|j|�dS(N(R!(RR((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyR�scCs|j|�|S(N(R!(RR((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyR�s
(RRRR!RRR(((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyR�s
t_IntegercBs5eZdZdd�Zd�Zd�Zd�ZRS(sInteger settings.i
cCstj|�||_dS(N(RRt
_msbuild_base(Rtmsbuild_base((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyR�s
cCs|j|�dS(N(R(RR((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyR�scCst||j�dS(N(tintR#(RR((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyR�scCs)|jdkrdpd}|t|�S(Ni
s%ds0x%04x(R#R%(RRtmsbuild_format((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyR�s(RRRRRRR(((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyR"�s
t_EnumerationcBs5eZdZdd�Zd�Zd�Zd�ZRS(s�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.
cCsRtj|�||_td�|D��|_|dk rN|jj|�ndS(Ncss!|]}|dk r|VqdS(N(tNone(t.0R((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pys <genexpr>�s(RRt_label_listtsett_msbuild_valuesR(tupdate(Rt
label_listtnew((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyR�s
cCs|j|�dS(N(R(RR((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyR�scCs&||jkr"td|��ndS(Ns unrecognized enumerated value %s(R,R(RR((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyR�scCst|�}|dks-|t|j�krOtd|t|j�f��n|j|}|dkr{td|��n|S(Nis.index value (%d) not in expected range [0, %d)s%converted value for %s not specified.(R%tlenR*RR((RRtindextlabel((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyR�s!
N(RRRR(RRRR(((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyR'�s
tR RcCst||||�dS(s�Defines 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(t_Renamed(Rtnametsetting_type((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyt_Same�scsR���fd�}�jt�j|<�jt�j�<|t�j|<dS(sDefines 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.
cs&t|��}�j|�|�<dS(N(RR(RRtmsbuild_tool_settings(RR6R(sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyt
_Translate�sN(RRRRR RR
(RRRR6R9((RR6RsU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyR4�s
cCst|||||�dS(N(t_MovedAndRenamed(Rt
settings_nametmsbuild_tool_nameR6((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyt_MovedscsU���fd�}�jt|j|<�j}|t��<|t|j|<dS(sDefines 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.
cs)|j�i�}�j|�|�<dS(N(RR(RRt
tool_settings(tmsbuild_settings_nameR<R6(sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyR9sN(RRRRR R
(Rtmsvs_settings_nameR<R?R6R9t validator((R?R<R6sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyR:
s
cCs2d�}|jt|j|<|t|j|<dS(s�Defines 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.
cSsdS(N((tunused_valuetunused_msbuild_settings((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyR9-sN(RRRR
(RR5R6R9((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyt _MSVSOnly$s cs;��fd�}|jt�j�<|t�j�<dS(s�Defines 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.
cs#|j�ji�}||�<dS(N(RR(RRR>(R5R(sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyR9>sN(RR RR
R(RR5R6R9((R5RsU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyt_MSBuildOnly5s cs;��fd�}tjt�j|<|t�j|<dS(s+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
csU|dkrQt|��}d|kr>d|d�f}n�}||d<ndS(NRtAdditionalOptionss%s %s(R(RRR>t new_flags(tflagR(sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyR9PsN(t_booleanRRRR
(RRRHR9((RHRsU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyt_ConvertedToAdditionalOptionGs csw�fd�}tdddg�j}|t�j|<tj}t�j}||d<||d<|t�j|<dS(Ncs�t|��}|dkr2d|d<d|d<nV|dkrUd|d<d|d<n3|dkrxd|d<d|d<ntd|��dS( Nt0R tPreprocessToFiletPreprocessSuppressLineNumberst1Rt2s&value must be one of [0, 1, 2]; got %s(RR(RRR>(R(sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyR9]s
tatbtcRLRM( R'RRRRIRR RR
(RRR9tmsvs_validatortmsbuild_validatortmsbuild_tool_validators((RsU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyt_CustomGeneratePreprocessedFile\s
tIntDirtOutDirs(\$\((?:%s)\))(?:[\\/]+)t|s^(.*)_excluded$cCsSt}tjt|�}|r<|jd�}||k}n|rO||IJndS(s�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.
iN(tTruetretmatcht_EXCLUDED_SUFFIX_REtgroup(tsettingtsettingst error_msgtstderrtunrecognizedtmtroot_setting((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyt_ValidateExclusionSetting}scCs%d|kr!tjd|�}n|S(sReplace 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.
t$s\1(tfix_vc_macro_slashes_regextsub(ts((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pytFixVCMacroSlashes�scCs�d|kr�i dd6dd6dd6dd 6d
d6dd
6dd6dd6d
d6}x,|j�D]\}}|j||�}q^Wt|�}n|S(s�Convert the the MSVS macros found in the string to the MSBuild equivalent.
This list is probably not exhaustive. Add as needed.
Rgs$(Configuration)s$(ConfigurationName)s%(RelativeDir)s$(InputDir)s%(Extension)s$(InputExt)s%(Filename)%(Extension)s$(InputFileName)s%(Filename)s$(InputName)s%(Identity)s$(InputPath)s$(ProjectFileName)s
$(ParentName)s$(Platform)s$(PlatformName)s$(SafeInputName)(t iteritemstreplaceRk(Rjtreplace_maptoldR/((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyR�s
c Cs�i}x�|j�D]�\}}|tkr�t|}x�|j�D]z\}}||kr�y||||�Wq�tk
r�}|d|||fIJq�XqBt||d||f|�qBWq|d|IJqW|S(s�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.
s.Warning: while converting %s/%s to MSBuild, %ss@Warning: unrecognized setting %s/%s while converting to MSBuild.s:Warning: unrecognized tool %s while converting to MSBuild.(RlR
RRf( t
msvs_settingsRbRtmsvs_tool_nametmsvs_tool_settingst msvs_tooltmsvs_settingt
msvs_valuete((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pytConvertToMSBuildSettings�s&
cCstt||�dS(sValidates 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(t_ValidateSettingsR(R`Rb((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pytValidateMSVSSettings�scCstt||�dS(sValidates 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(RxR (R`Rb((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pytValidateMSBuildSettings�scCs�x�|D]�}||kr�||}x�||j�D]w\}}||kr�y|||�Wq�tk
r�}|d|||fIJq�Xq4t||d||f|�q4Wq|d|IJqWdS(s�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.
sWarning: for %s/%s, %ss#Warning: unrecognized setting %s/%ssWarning: unrecognized tool %sN(RlRRf(t
validatorsR`Rbt tool_namettool_validatorsR_RRv((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyRx�s
tVCCLCompilerToolt ClCompiletVCLinkerTooltLinkt
VCMIDLTooltMidltVCResourceCompilerTooltResourceCompiletVCLibrarianTooltLibtVCManifestTooltManifesttMASMtProjectReferencetManifestResourceCompiletAdditionalIncludeDirectoriesRFtAdditionalUsingDirectoriestAssemblerListingLocationtBrowseInformationFiletBufferSecurityChecktDisableLanguageExtensionstDisableSpecificWarningstEnableFiberSafeOptimizationst
EnablePREfasttExpandAttributedSourcetFloatingPointExceptionstForceConformanceInForLoopScopetForcedIncludeFilestForcedUsingFilestGenerateXMLDocumentationFilestIgnoreStandardIncludePathtMinimalRebuildtOmitDefaultLibNametOmitFramePointerstPreprocessorDefinitionstProgramDataBaseFileNametRuntimeTypeInfotShowIncludestSmallerTypeCheckt
StringPoolingtSuppressStartupBannertTreatWChar_tAsBuiltInTypet"UndefineAllPreprocessorDefinitionstUndefinePreprocessorDefinitionstUseFullPathstWholeProgramOptimizationtXMLDocumentationFileNametAssemblerOutputt NoListingtAssemblyCodetAlltAssemblyAndMachineCodetAssemblyAndSourceCodetBasicRuntimeCheckstDefaulttStackFrameRuntimeChecktUninitializedLocalUsageChecktEnableFastCheckstBrowseInformationtCallingConventiontCdecltFastCalltStdCallt
VectorCallt CompileAst
CompileAsCtCompileAsCpptDebugInformationFormattOldStyletProgramDatabasetEditAndContinuetEnableEnhancedInstructionSettNotSettStreamingSIMDExtensionstStreamingSIMDExtensions2tAdvancedVectorExtensionstNoExtensionstAdvancedVectorExtensions2tErrorReportingR(tPrompttQueueR/tSendtExceptionHandlingtSynctAsynct
SyncCThrowtFavorSizeOrSpeedtNeithertSpeedtSizetFloatingPointModeltPrecisetStricttFasttInlineFunctionExpansiontOnlyExplicitInlinetAnySuitabletDisabledtOptimizationtMinSpacetMaxSpeedtFulltRuntimeLibraryt
MultiThreadedtMultiThreadedDebugtMultiThreadedDLLtMultiThreadedDebugDLLtStructMemberAlignmentt1Bytet2Bytest4Bytest8Bytest16BytestWarningLeveltTurnOffAllWarningstLevel1tLevel2tLevel3tLevel4tEnableAllWarningstEnableFunctionLevelLinkingtFunctionLevelLinkingtEnableIntrinsicFunctionstIntrinsicFunctionstKeepCommentstPreprocessKeepCommentst
ObjectFiletObjectFileNametOpenMPt
OpenMPSupporttPrecompiledHeaderThroughtPrecompiledHeaderFiletPrecompiledHeaderOutputFiletUsePrecompiledHeadertPrecompiledHeadertNotUsingtCreatetUsetWarnAsErrortTreatWarningAsErrortDefaultCharIsUnsigneds/JtDetect64BitPortabilityProblemstUseUnicodeResponseFilest
BuildingInIDEtCompileAsManagedtCreateHotpatchableImagetMultiProcessorCompilationtPreprocessOutputPathtProcessorNumbertTrackerLogDirectorytTreatSpecificWarningsAsErrorstUseUnicodeForAssemblerListingtGeneratePreprocessedFiletAdditionalDependenciestAdditionalLibraryDirectoriestAdditionalManifestDependenciestAddModuleNamesToAssemblytAllowIsolationtAssemblyLinkResourcetBaseAddresstCLRUnmanagedCodeCheckt
DelayLoadDLLst DelaySigntEmbedManagedResourceFilet EnableUACtEntryPointSymboltForceSymbolReferencest
FunctionOrdertGenerateDebugInformationtGenerateMapFiletHeapCommitSizetHeapReserveSizetIgnoreAllDefaultLibrariestIgnoreEmbeddedIDLt
ImportLibrarytKeyContainertKeyFiletManifestFilet
MapExportstMapFileNametMergedIDLBaseFileNamet
MergeSectionstMidlCommandFiletModuleDefinitionFilet
OutputFiletPerUserRedirectiontProfiletProfileGuidedDatabasetProgramDatabaseFiletRegisterOutputtSetChecksumtStackCommitSizetStackReserveSizetStripPrivateSymbolstSupportUnloadOfDelayLoadedDLLt
SwapRunFromCDtTurnOffAssemblyGenerationtTypeLibraryFiletTypeLibraryResourceIDtUACUIAccesstVersiontEnableCOMDATFoldingtFixedBaseAddresstLargeAddressAwaretOptimizeReferencestRandomizedBaseAddresstTerminalServerAwaretConsoletWindowstNativesEFI ApplicationsEFI Boot Service DriversEFI ROMsEFI Runtimet WindowsCEtPOSIXt
MachineX86t
MachineARMt
MachineEBCtMachineIA64tMachineMIPSt
MachineMIPS16tMachineMIPSFPUtMachineMIPSFPU16t
MachineSH4tMachineTHUMBt
MachineX64t
AssemblyDebugtCLRImageTypet
ForceIJWImagetForcePureILImagetForceSafeILImagetCLRThreadAttributetDefaultThreadingAttributetMTAThreadingAttributetSTAThreadingAttributetDataExecutionPreventiontDrivertUpOnlytWDMtLinkTimeCodeGenerationtUseLinkTimeCodeGenerationtPGInstrumenttPGOptimizationtPGUpdatetShowProgresstLinkVerbosetLinkVerboseLibtLinkVerboseICFtLinkVerboseREFtLinkVerboseSAFESEHtLinkVerboseCLRt SubSystemt
TargetMachinetUACExecutionLevelt AsInvokertHighestAvailabletRequireAdministratortMinimumRequiredVersiontTreatLinkerWarningAsErrorstLinkErrorReportingt
NoErrorReporttPromptImmediatelytQueueForNextLogintSendErrorReporttIgnoreDefaultLibraryNamestIgnoreSpecificDefaultLibrariestResourceOnlyDLLtNoEntryPointtSwapRunFromNettSwapRunFromNETtGenerateManifesttIgnoreImportLibrarytLinkIncrementaltLinkLibraryDependenciestUseLibraryDependencyInputstOptimizeForWindows98tImageHasSafeExceptionHandlerstLinkDLLt
LinkStatustPreventDllBindingtSupportNobindOfDelayLoadedDLLtMSDOSStubFileNametSectionAlignmenttSpecifySectionAttributestForceFileOutputtEnabledtMultiplyDefinedSymbolOnlytUndefinedSymbolOnlytCreateHotPatchableImagetX86ImagetX64ImagetItaniumImagetCLRSupportLastErrort
SystemDllstCultureR$itResourceOutputFileNametNullTerminateStringstCPreprocessOptionstErrorCheckAllocationstErrorCheckBoundstErrorCheckEnumRangetErrorCheckRefPointerstErrorCheckStubDatatGenerateStublessProxiestGenerateTypeLibrarytHeaderFileNametInterfaceIdentifierFileNametMkTypLibCompatibletOutputDirectoryt
ProxyFileNametRedirectOutputAndErrorstTypeLibraryNametDefaultCharTypetUnsignedtSignedtAsciitTargetEnvironmenttWin32tItaniumtX64tEnableErrorCheckstEnableCustomRNROt4t8RKt3tDLLDataFileNametDllDataFileNametValidateParameterstValidateAllParameterstApplicationConfigurationModetClientStubFiletGenerateClientFilestStubtGenerateServerFilestLocaleIDtServerStubFiletSuppressCompilerWarningst
TypeLibFormatt NewFormatt OldFormattExportNamedFunctionstDisplayLibrarytNamet
RemoveObjectstTreatLibWarningAsErrorstVerbosetAdditionalManifestFilestAssemblyIdentitytComponentFileNametGenerateCatalogFilestInputResourceManifeststOutputManifestFiletRegistrarScriptFiletReplacementsFiletUpdateFileHashestUpdateFileHashesSearchPatht
VerboseOutputtManifestResourceFilet
EmbedManifesttDependencyInformationFiletUseFAT32WorkaroundtEnableDPIAwarenesstGenerateCategoryTagstManifestFromManagedAssemblytOutputResourceManifeststSuppressDependencyElementtUseSafeExceptionHandlers(RWRX(9RtsysR[RR R
RtobjectRR
RRRRRR"R'RIt_integert_stringt
_file_namet_folder_namet
_file_listt_folder_listt_string_listt_newly_booleanR7R4R=R:RDRERJRVtfix_vc_macro_slashes_regex_listtcompiletjoinRhR]RbRfRkRRwRyRzRxt_compilet_linkt_midlt_rct_libt _manifestt_masmR(t_subsystem_enumerationt_target_machine_enumeration(((sU/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSSettings.pyt<module>s�
&)
& !