�
�"Kb;5 � �\ � d Z ddlmZ ddlZddlZddlZddlZddlZddlZddl Z ej
� ej
� e
� � � � Z ej dej � � Zd� Z G d� de� � Zedk r( e j ee j d d� � � � � dS dS )
zuUtility functions for Windows builds.
These functions are executed via gyp-win-tool when using the ninja generator.
� )�print_functionNz/OUT:(?P<out>.+)$c �| � t � � }|� | � � }|�t j |� � d S d S �N)�WinTool�Dispatch�sys�exit)�args�executor� exit_codes �./usr/lib/python3/dist-packages/gyp/win_tool.py�mainr sB � �
�Y�Y�(�����%�%�)����H�Y������ �� c �l � e Zd ZdZd� Zd� Zd� Zd� Zd� Zd� Z d� Z
d � Zd
� Zd� Z
d� Zd
� Zd� Zd� Zd� ZdS )r z�This class performs all the Windows tooling steps. The methods can either
be executed directly, or dispatched from an argument list.c �@ � t |� � dk rt d� � �|d dk rdS d}|D ]_}t � |� � }|rAt j ddd|� d � � t j � � fz � � } n�`|�dS ||d
< |