�
�"Kb|R � � � d Z ddlZddlZddlZddlZddlZddlZddlZd� Zd� Z G d� de
� � Zd� Zdd�Z
d � Zd
� Zdd�Zd
� Zd� Zdd�ZdS )z3Handle version information related to Visual Stuio.� Nc �b � t j � t j j | � � � S �N��os�path�normpath�join)�argss �1/usr/lib/python3/dist-packages/gyp/MSVSVersion.py�JoinPathr s! � � �� � �"�'�,��-� .� .�.� c �Z � t d� | � d� � D � � � � S )Nc 3 �4 K � | ]}t |� � V � �d S r )�int)�.0�xs r � <genexpr>z#version_to_tuple.<locals>.<genexpr> s( � � � �6�6�!�s�1�v�v�6�6�6�6�6�6r
�.)�tuple�split)�version_strs r �version_to_tupler s- � � �6�6�{�0�0��5�5�6�6�6� 6� 6�6r
c �d � e Zd ZdZ dd�Zd� Zd� Zd� Zd� Zd� Z d � Z
d
� Zd� Zd� Z
d
� Zd� Zd� ZdS )�VisualStudioVersionz1Information regarding a version of Visual Studio.Nc �� � || _ || _ || _ || _ || _ || _ || _ || _ | | _ |
pg }
|
� d� d�� � |
| _
d S )Nc �H � t | � dd� � � � S )N�v� )�float�replace)r s r �<lambda>z.VisualStudioVersion.__init__.<locals>.<lambda>( s � �u�Q�Y�Y�s�B�-?�-?�'@�'@� r
T)�key�reverse)�
short_name�description�solution_version�project_version�flat_sln�uses_vcxprojr � sdk_based�default_toolset�sort�compatible_sdks)�selfr$ r% r& |