관리-도구
편집 파일: MSVSNew.cpython-36.pyc
3 w�pe'3 � @ s� d Z ddlZddlZddlZddlmZ ddlZdd� Zej � ddd�Z dd d�ZG dd � d �ZG dd� de�Z G dd� de�ZG dd� d�ZdS )z7New implementation of Visual Studio project generation.� N)� attrgetterc C s | |k| |k S )N� )�x�yr r �/MSVSNew.py�cmp s r z&{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}z&{2150E333-8FDC-42A3-9474-1A3956D46DE8})�project�folder�msvs_newc C s| t jt|�t| � jd��j� j� }d|dd� d |dd� d |dd� d |dd� d |dd � d }|S )a# 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. zutf-8�{N� �-� � � � �})�hashlibZmd5�str�encodeZ hexdigest�upper)�name�seed�d�guidr r r �MakeGuid s $ Tr c @ s e Zd Zdd� ZdS )�MSVSSolutionEntryc C s t | j| j� f|j|j� f�S )N)r r �get_guid)�self�otherr r r �__cmp__F s zMSVSSolutionEntry.__cmp__N)�__name__� __module__�__qualname__r r r r r r E s r c @ s"