Your IP : 18.117.11.13


Current Path : /opt/alt/alt-nodejs9/root/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/
Upload File :
Current File : //opt/alt/alt-nodejs9/root/usr/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSNew.pyo

�
o�Rac@s�dZddlZddlZddlZyddlZejZWn&ek
rkddlZej	ZnXej
�idd6dd6Zdd�Zd	e
fd
��YZdefd��YZd
efd��YZde
fd��YZdS(s7New implementation of Visual Studio project generation.i����Ns&{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}tprojects&{2150E333-8FDC-42A3-9474-1A3956D46DE8}tfoldertmsvs_newcCsztt|�t|��j�j�}d|d d|dd!d|dd!d|dd!d|dd!d}|S(	s#Returns a GUID for the specified target name.

  Args:
    name: Target name.
    seed: Seed for MD5 hash.
  Returns:
    A GUID-line string calculated from the name and seed.

  This generates something which looks like a GUID, but depends only on the
  name and seed.  This means the same name/seed will always generate the same
  GUID, so that projects and solutions which refer to each other can explicitly
  determine the GUID to refer to explicitly.  It also means that the GUID will
  not change when the project for a target is rebuilt.
  t{it-iiii t}(t_new_md5tstrt	hexdigesttupper(tnametseedtdtguid((si/opt/alt/alt-nodejs9/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSNew.pytMakeGuid%s(NtMSVSSolutionEntrycBseZd�ZRS(cCs+t|j|j�f|j|j�f�S(N(tcmpR
tget_guid(tselftother((si/opt/alt/alt-nodejs9/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSNew.pyt__cmp__?s(t__name__t
__module__R(((si/opt/alt/alt-nodejs9/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSNew.pyR>st
MSVSFoldercBs,eZdZddddd�Zd�ZRS(s.Folder in a Visual Studio project or solution.cCsz|r||_ntjj|�|_||_||_tt|pHg��|_t|p`g�|_t	d|_
dS(s�Initializes the folder.

    Args:
      path: Full path to the folder.
      name: Name of the folder.
      entries: List of folder entries to nest inside this folder.  May contain
          Folder or Project objects.  May be None, if the folder is empty.
      guid: GUID to use for folder, if not None.
      items: List of solution items to include in the folder project.  May be
          None, if the folder does not directly contain items.
    RN(R
tostpathtbasenameR
tsortedtlisttentriestitemstENTRY_TYPE_GUIDStentry_type_guid(RRR
RR
R((si/opt/alt/alt-nodejs9/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSNew.pyt__init__Gs
		cCs1|jdkr*t|jdd�|_n|jS(NRtmsvs_folder(R
tNoneRR(R((si/opt/alt/alt-nodejs9/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSNew.pyRcsN(RRt__doc__R#R!R(((si/opt/alt/alt-nodejs9/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSNew.pyRDstMSVSProjectcBsGeZdZdddddddd�Zd�Zd�Zd�ZRS(sVisual Studio project.c		Cs�||_||_||_||_|pItjjtjj|��d|_t|p[g�|_	t
d|_|r�||_n	i|_||_
d|_dS(s�Initializes the project.

    Args:
      path: Absolute path to the project file.
      name: Name of project.  If None, the name will be the same as the base
          name of the project file.
      dependencies: List of other Project objects this project is dependent
          upon, if not None.
      guid: GUID to use for project, if not None.
      spec: Dictionary specifying how to build this project.
      build_file: Filename of the .gyp file that the vcproj file comes from.
      config_platform_overrides: optional dict of configuration platforms to
          used in place of the default for this target.
      fixpath_prefix: the path used to adjust the behavior of _fixpath
    iRN(RR
tspect
build_fileRtsplitextRR
RtdependenciesRR tconfig_platform_overridestfixpath_prefixR#tmsbuild_toolset(	RRR
R)R
R&R'R*R+((si/opt/alt/alt-nodejs9/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSNew.pyR!ps				+
		cCst|pg�|_dS(N(RR)(RR)((si/opt/alt/alt-nodejs9/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSNew.pytset_dependencies�scCs+|jdkr$t|j�|_n|jS(N(R
R#RR
(R((si/opt/alt/alt-nodejs9/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSNew.pyR�s
cCs
||_dS(N(R,(RR,((si/opt/alt/alt-nodejs9/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSNew.pytset_msbuild_toolset�sN(RRR$R#R!R-RR.(((si/opt/alt/alt-nodejs9/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSNew.pyR%ms		#		tMSVSSolutioncBs2eZdZdded�Zejjd�Z	RS(sVisual Studio solution.cCs`||_||_||_t|p'g�|_|rC||_nddg|_|j�dS(s�Initializes the solution.

    Args:
      path: Path to solution file.
      version: Format version to emit.
      entries: List of entries in solution.  May contain Folder or Project
          objects.  May be None, if the folder is empty.
      variants: List of build variant strings.  If none, a default list will
          be used.
      websiteProperties: Flag to decide if the website properties section
          is generated.
    sDebug|Win32s
Release|Win32N(RtwebsitePropertiestversionRRtvariantstWrite(RRR1RR2R0((si/opt/alt/alt-nodejs9/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSNew.pyR!�s			
	cCs^t�}|j}xW|rl|jd�}||kr=qn|j|�t|t�r||j7}qqWt|�}||j�}|jd|j	j
��|jd|j	j��tjj
|j�d}x_|D]W}tjj|j|�}|jdd�pd}|jd|j|j||j�f�|jrT|jd�nt|t�r�|jr�|jd	�x(|jD]}	|jd
|	|	f�q�W|jd�q�nt|t�r&|jr&|jd�x4|jD])}
|jd
|
j�|
j�f�q�W|jd�q&n|jd
�q�W|jd�|jd�x(|jD]}|jd
||f�q[W|jd�g}i}
xF|D]>}t|t�r�|j|j��|j|
|j�<q�q�W|j�|jd�xl|D]d}x[|jD]P}|
|j||�}|jd|||f�|jd|||f�qWq�W|jd�|jd�|jd�|jd�tg|D]}t|t�r�|j^q��rC|jd�xZ|D]R}t|t�s�q�nx4|jD])}|jd
|j�|j�f�qWq�W|jd�n|jd�|j�dS(sfWrites the solution file to disk.

    Raises:
      IndexError: An entry appears multiple times.
    is:Microsoft Visual Studio Solution File, Format Version %s
s# %s
t/s\t.s"Project("%s") = "%s", "%s", "%s"
s�	ProjectSection(WebsiteProperties) = preProject
		Debug.AspNetCompiler.Debug = "True"
		Release.AspNetCompiler.Debug = "False"
	EndProjectSection
s-	ProjectSection(SolutionItems) = preProject
s		%s = %s
s	EndProjectSection
s4	ProjectSection(ProjectDependencies) = postProject
sEndProject
sGlobal
s>	GlobalSection(SolutionConfigurationPlatforms) = preSolution
s	EndGlobalSection
s>	GlobalSection(ProjectConfigurationPlatforms) = postSolution
s		%s.%s.ActiveCfg = %s
s		%s.%s.Build.0 = %s
s2	GlobalSection(SolutionProperties) = preSolution
s		HideSolutionNode = FALSE
s.	GlobalSection(NestedProjects) = preSolution
sEndGlobal
N( tsetRtpoptaddt
isinstanceRRRtwriteR1tSolutionVersiontDescriptionRtsplittgyptcommontRelativePathtreplaceR R
RR0RR%R)R2tappendR*tsorttgettanytclose(Rtwritertall_entriestentries_to_checktetftsln_roott
relative_pathtfolder_nametiRtvtconfig_guidstconfig_guids_overridestgtnvtsubentry((si/opt/alt/alt-nodejs9/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSNew.pyR3�s�	
	
	
			
	
'






		



1

+
N(
RRR$R#tTrueR!R>R?tWriteOnDiffR3(((si/opt/alt/alt-nodejs9/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSNew.pyR/�s%(R$Rtrandomt
gyp.commonR>thashlibtmd5RtImportErrortnewRRRtobjectRRR%R/(((si/opt/alt/alt-nodejs9/root/usr/lib/node_modules/npm/node_modules.bundled/node-gyp/gyp/pylib/gyp/MSVSNew.pyt<module>s$




)B

?>